libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1210188 - in /libcloud/site/trunk/content: upgrade-notes-0-6.mdtext upgrade-notes-0-7.mdtext upgrade-notes.mdtext
Date Sun, 04 Dec 2011 19:38:04 GMT
Author: tomaz
Date: Sun Dec  4 19:38:03 2011
New Revision: 1210188

URL: http://svn.apache.org/viewvc?rev=1210188&view=rev
Log:
Add 0.7 upgrade notes.

Added:
    libcloud/site/trunk/content/upgrade-notes-0-7.mdtext
Modified:
    libcloud/site/trunk/content/upgrade-notes-0-6.mdtext
    libcloud/site/trunk/content/upgrade-notes.mdtext

Modified: libcloud/site/trunk/content/upgrade-notes-0-6.mdtext
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/content/upgrade-notes-0-6.mdtext?rev=1210188&r1=1210187&r2=1210188&view=diff
==============================================================================
--- libcloud/site/trunk/content/upgrade-notes-0-6.mdtext (original)
+++ libcloud/site/trunk/content/upgrade-notes-0-6.mdtext Sun Dec  4 19:38:03 2011
@@ -2,7 +2,6 @@ title: Upgrade Notes - Libcloud 0.6
 
 ## Upgrading from 0.5.x
 
-
 ### Changes
 
 * SSL certificate verification is now enabled by default and an exception is
@@ -40,4 +39,4 @@ For example:
     Cls = get_provider(Provider.OPENNEBULA)
     driver = Cls('key', 'secret', api_version='1.4')
 
-For a whole list of the changes, please refer to the [Changelog](https://svn.apache.org/viewvc/libcloud/trunk/CHANGES?revision=1198753&view=markup).
\ No newline at end of file
+For a whole list of the changes, please refer to the [Changelog](https://svn.apache.org/viewvc/libcloud/trunk/CHANGES?revision=1198753&view=markup).

Added: libcloud/site/trunk/content/upgrade-notes-0-7.mdtext
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/content/upgrade-notes-0-7.mdtext?rev=1210188&view=auto
==============================================================================
--- libcloud/site/trunk/content/upgrade-notes-0-7.mdtext (added)
+++ libcloud/site/trunk/content/upgrade-notes-0-7.mdtext Sun Dec  4 19:38:03 2011
@@ -0,0 +1,43 @@
+title: Upgrade Notes - Libcloud 0.7
+
+## Upgrading from 0.6.x
+
+### Changes
+
+* For consistency, `public_ip` and `private_ip` attribute on the `Node` object
+have been renamed to `public_ips` and `private_ips` respectively.
+
+In 0.7 you can still access those attributes using the old way, but this option
+will be removed in the next major release.
+
+Note: If you have places in your code where you directly instantiate a `Node`
+class, you need to update it.
+
+Old code:
+
+    ::python
+    node = Node(id='1', name='test node', state=NodeState.PENDING,
+                private_ip=['10.0.0.1'], public_ip=['88.77.66.77'],
+                driver=driver)
+
+Updated code:
+
+    ::python
+    node = Node(id='1', name='test node', state=NodeState.PENDING,
+                private_ips=['10.0.0.1'], public_ips=['88.77.66.77'],
+                driver=driver)
+
+* Old deprecated paths have been removed. If you still haven't updated your
+code you need to do it now, otherwise it won't work with 0.7 and future releases.
+
+Bellow is a list of old paths and their new locations:
+
+* `libcloud.base` -> `libcloud.compute.base`
+* `libcloud.deployment` -> `libcloud.compute.deployment`
+* `libcloud.drivers.*` -> `libcloud.compute.drivers.*`
+* `libcloud.ssh` -> `libcloud.compute.ssh`
+* `libcloud.types` -> `libcloud.compute.types`
+* `libcloud.providers` -> `libcloud.compute.providers`
+
+In the contrib directory you can also find a simple bash script which can perform
+a search and replace for you - [migrate_paths.py](https://svn.apache.org/repos/asf/libcloud/trunk/contrib/migrate_paths.sh).

Modified: libcloud/site/trunk/content/upgrade-notes.mdtext
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/content/upgrade-notes.mdtext?rev=1210188&r1=1210187&r2=1210188&view=diff
==============================================================================
--- libcloud/site/trunk/content/upgrade-notes.mdtext (original)
+++ libcloud/site/trunk/content/upgrade-notes.mdtext Sun Dec  4 19:38:03 2011
@@ -6,4 +6,5 @@ This page describes a process of upgradi
 one. It also describes backward incompatible or semi-incompatible changes
 and how to preserve the old behavior when this is possible.
 
+* [Libcloud 0.7](/upgrade-notes-0-7.html)
 * [Libcloud 0.6](/upgrade-notes-0-6.html)



Mime
View raw message