Merge branch 'release-0.12' 0.12
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Mon, 16 Dec 2013 11:13:08 +0000 (13:13 +0200)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Mon, 16 Dec 2013 11:13:08 +0000 (13:13 +0200)
Conflicts:
Changelog
docs/conf.py
kamaki/cli/commands/cyclades.py
kamaki/cli/commands/image.py
kamaki/cli/commands/pithos.py
setup.py
version

1  2 
README.Upgrade
docs/conf.py
docs/examplesdir/imageregister.rst
setup.py
version

diff --cc README.Upgrade
@@@ -1,43 -1,15 +1,55 @@@
- This document describes changes and steps to upgrade from kamaki 0.10 to
- kamaki 0.11
+ This document describes changes and steps to upgrade from kamaki 0.11 to
+ kamaki 0.12
+ 1. Update the kamaki configuration with these commands:
+   $ kamaki config delete network_cli
+   $ kamaki config delete ip_cli
+ 2. Upgrade shell scripts to use the new syntax:
+     positional arguments are removed, except if refering to the objects
+     e.g., kamaki server info SERVER_ID
+     but not kamaki server create NAME IMAGE FLAVOR
+     Use mandatory non-positional arguments
+     e.g., kamaki server create --name=NAME --image-id=IMAGE_ID --flavor-id=FLAVOR_ID
+           kamaki image register --name=NAME --location=IMAGE_LOCATION
  
 +Config file
 +-----------
 +
 +Kamaki v0.9 will have a new config file with the following format:
 +
 +  [global]
 +  default_cloud = some_cloud
 +  ... more kamaki-related settings ...
 +
 +  [cloud "some_cloud"]
 +  url = https://some/cloud/single/authentication/url
 +  token = user_token==
 +
 +For more information on the exact format of the kamaki global variables, see
 +the respective documentation page:
 +http://www.synnefo.org/docs/kamaki/latest/setup.html#available-options
 +
 +How to convert the config file
 +------------------------------
 +
 +To convert an old config file, backup the old one and then run:
 +
 +  kamaki -c <config file path> user authenticate
 +
 +Kamaki will automatically inspect the file and suggest a list of convertions,
 +namely renamings and discards. Take a look at the list of discarded values,
 +write down the ones that might be usefull.
 +
 +If you are sure about the changes, press 'y'.
 +
 +Kamaki should raise an error, demanding an authentication URL and/or token.
 +
 +First, you need to go to the clouds UI and find the authentication URL and
 +token. Then you should think of a name for your cloud, e.g. "mycloud". Now,
 +feed kamaki with this information:
 +
 +kamaki -c <config file path> config set cloud.mycloud.url <URL>
 +kamaki -c <config file path> config set cloud.mycloud.token <token>
 +
 +Now the configuration file should be kamaki 0.9 ready.
diff --cc docs/conf.py
@@@ -112,9 -130,8 +129,9 @@@ copyright = u'2013, GRNET
  # built documents.
  #
  # The short X.Y version.
- version = '0.11'
+ version = '0.12'
  # The full version, including alpha/beta/rc tags.
 +
  try:
      import kamaki
      release = kamaki.__version__
@@@ -8,22 -8,16 +8,17 @@@ the image
  
  The image location format at user level::
  
-     <container>:<object path>
+     pithos://<user_uuid>/<container>/<object path>
  
-     e.g.,:
+     e.g., pithos://my-u53r-1d/images/debian_base3.diskdump
  
-     pithos:debian_base3.diskdump
+ In **file** and **container** contexts, users may also use the shortcut:
  
- .. note:: The image API requires the image location in the form
-     *pithos://<user uuid>/<container>/<object path>*
-     The translation between
-     the two formats is handled internally by kamaki. The latest format is still
-     acceptable by kamaki due to backward compatibility but it is going to be deprecated from kamaki 0.12 and on.
+     /<container>/<object path>
  
+     e.g., /images/debian_base3.diskdump
  
 +
  Register an image
  -----------------
  
@@@ -65,17 -60,12 +61,17 @@@ Register the image object with the nam
      uploads it to the same location as the image. The meta file can be
      downloaded and reused for more image registrations.
  
- Another way to perform the two operations above is to call **/image register**
+ Here is another way to perform the two operations above: **/image register**
  with the **\- -upload-image-file** argument. This single operation will upload
- the image file and then register it as an image, and is equivalent to manually
- calling **/file upload** and **/image register**.
+ the image file and then register it as an image, and is equivalent to
+ sequentially calling **/file upload** and **/image register**.
  
 +<<<<<<< HEAD:docs/collection_of_examples/imageregister.rst
 +In other words, the example that follows is equivalent to calling the two
 +operations above.
 +=======
  In other words, the preceding and following command sequences are equivalent.
 +>>>>>>> release-0.11:docs/examplesdir/imageregister.rst
  
  .. code-block:: console
  
diff --cc setup.py
Simple merge
diff --cc version
+++ b/version
@@@ -1,1 -1,1 +1,1 @@@
- 0.11.7
 -0.12rc6
++0.12