Merge branch 'release-0.10'
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Fri, 13 Sep 2013 10:59:12 +0000 (13:59 +0300)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Fri, 13 Sep 2013 10:59:12 +0000 (13:59 +0300)
Conflicts:
Changelog
README.Upgrade
docs/collection_of_examples/configuration.rst
docs/collection_of_examples/imageregister.rst
docs/collection_of_examples/server.rst
docs/commands.rst
docs/conf.py
docs/developers/clients-api.rst
docs/setup.rst
docs/usage.rst
kamaki/cli/__init__.py
kamaki/cli/command_shell.py
kamaki/cli/commands/__init__.py
kamaki/cli/commands/astakos.py
kamaki/cli/commands/config.py
kamaki/cli/commands/cyclades.py
kamaki/cli/commands/history.py
kamaki/cli/commands/image.py
kamaki/cli/config.py
kamaki/cli/one_command.py
kamaki/cli/utils.py
kamaki/clients/__init__.py
kamaki/clients/astakos/test.py
kamaki/clients/compute/__init__.py
kamaki/clients/compute/test.py
kamaki/clients/cyclades/__init__.py
kamaki/clients/cyclades/test.py
kamaki/clients/livetest/astakos.py
kamaki/clients/livetest/cyclades.py
version

Changelog
README.Upgrade
docs/conf.py
docs/installation.rst
kamaki/cli/errors.py
kamaki/clients/livetest/astakos.py
kamaki/clients/livetest/cyclades.py
setup.py
version

index 3dbfbb7..0b0c171 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,14 @@
-CHANGELOG for version 0.10
+Hotfix 0.9.1
+
+BugFix:
+
+- Restore history-run functionality
+
+Feature:
+
+- Accept ~ as a character for a cloud name [#4126]
+
+CHANGELOG for version 0.9
 
 Bug Fixes:
 - Avoid loading optional cmd groups specified in same pkg with mantatory
@@ -6,9 +16,60 @@ Bug Fixes:
 - Ignore subdir output in container_get with prefix+delimiter [#4134]
 - Fix the split-input bug in repeatable k=v args [#4232]
 
+- Stop shell from destroying the config instance
+- Shell can manage all valid command line arguments [#3716]
+- Restore 2nd level command syntax in shell [#3736]
+- Allow copy of deleted objects by refering to older version [#3737]
+- Add image.add_member missing content-length header
+- Do not unpublish by default in all pithos low level requests [#3780]
+- Unquote http respons headers
+
 Changes:
 
-- Adjust astakos authenticate to the new url scheme of synnefo >= 0.14 [#3832, #3874]
+- Change context: kamaki-image-addproperty --> kamaki-image-compute-property
+- http logger names: clients.recv/send --> kamaki.clients.recv/send
+- Move logger creation and control (except of the actuall logging) to cli
+- These PithosClient methods return the metadata of created object [#3656]:
+    upload_object, upload_object_unchunked, create_object_by_manifestation
+- Cache container info per upload session [#3735]
+- Disallow moving deleted objects by version [#3737]
+    This operation was implemented by accident, due to the symetry between
+    move and copy
+- Rename file/server-meta commands to file/server-metadata
+- Rename image-[add|del]member commands to members-[add|delete]
+- Remove update option from image-register
+- In image-compute split properties to properties-list and properties-get
+- Add optional output to methods[#3756, #3732]:
+    - file:
+    mkdir, touch, create, move, copy, move, append, truncate, overwrite,
+    manifest, upload, delete, purge, unpublish, permissions set/delete, info,
+    metadata set/delete, containerlimit set, versioning set, group set/delete,
+    upload, overwrite
+    - image:
+    unregister, members add/delete/set
+    -image compute:
+    delete, properties delete
+    - server: rename, delete, reboot, start, shutdown, firewall-set
+    - network: rename, delete, connect
+- Add optional json for methods with output [#3732]
+    - file:
+    list, hashmap, permissions-get, info, metadata-get, quota,
+    containerlimit-get, group-list, sharers, versions
+    - server: list, info, create, console, addr, metadata-list/set, stats
+    - image: list, meta, register, shared, list
+    - image compute: list, info, properties-list/get/add/set
+    - flavor: list, info
+    - network: info, list, create
+    - astakos: authenticate
+- Transliterate methods to list-get-set-delete command groups:
+    - file: permissions, versioning, group and metadata
+    - image: members, member
+    - image compute: properties
+    - server: firewall, metadata
+- Add a _format_image_headers method and use it in image_register and get_meta
+    for uniform image meta output [#3797]
+- Rename meta-->metadata and remove values @lib [#3633]
+- Adjust authenticate to new url schema of synnefo>=0.14 [#3832, #3874]
   as a side effect, some renamings in astakos.AstakosClient:
    info --> user_info, user --> list_users
 - Simplify listings (kamaki.cli.utils: print methods)
@@ -26,7 +87,8 @@ Features:
     command_tree, argument, history, logger, utils
 - Implement an optional astakosclient cli exposed as "astakos", with the following methods:
     authenticate, uuid, username, quotas, service uuid/username/quotas
-- Add some astakos/keystone kamaki-lib api calls [#3874], used to access astakos-calls cache:
+- Add some astakos/keystone kamaki-lib api calls [#3874], used to access
+  astakos-calls cache:
   get_services, get_service_details, get_service_endpoints
 - Implement floating ip methods for compute and cyclades clients [#3862]
  ComputeRestClient: floating_ip_pools_get, floating_ips_get/post/delete
index 1b2d990..9c28181 100644 (file)
@@ -1,3 +1,43 @@
 This document describes changes and steps to upgrade from kamaki 0.9.X to
 kamaki 0.10
 
+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.
index 74c265f..01ab8b5 100644 (file)
@@ -92,7 +92,6 @@ master_doc = 'index'
 # General information about the project.
 project = u'Kamaki'
 copyright = u'2013, GRNET'
-
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
@@ -100,6 +99,7 @@ copyright = u'2013, GRNET'
 # The short X.Y version.
 version = '0.10'
 # The full version, including alpha/beta/rc tags.
+
 try:
     import kamaki
     release = kamaki.__version__
index 339971e..29e73eb 100644 (file)
@@ -221,15 +221,15 @@ The full process is detailed in the following:
 Requirements
 ^^^^^^^^^^^^
 
-* Python 2.7 or better (`Official versions <http://www.python.org/getit>`_)
+* Python 2.7 (`Official versions <http://www.python.org/getit>`_)
 
 * Setuptools (`Official versions and workarounds <http://pypi.python.org/pypi/setuptools>`_)
 
 Users who have already set up and wokring python and setuptools (e.g. for
 another project) may skip python and / or setup tools installation.
 
-Install python
-^^^^^^^^^^^^^^
+Install python 2.7
+^^^^^^^^^^^^^^^^^^
 
 Download and run the Windows installer from
 `here <http://www.python.org/getit>`_
index 6843ab9..70c40c7 100644 (file)
@@ -78,6 +78,7 @@ class CLIBaseUrlError(CLIError):
             'Two options to resolve this:',
             '(Use the correct cloud name, instead of "default")',
             'A. (recommended) Let kamaki discover the endpoint URLs for all',
+
             'services by setting a single Authentication URL and token:',
             '  /config set cloud.default.url <AUTH_URL>',
             '  /config set cloud.default.token <t0k3n>',
index 150c844..0a42510 100644 (file)
@@ -42,7 +42,6 @@ class Astakos(livetest.Generic):
         self.cloud = 'cloud.%s' % self['testcloud']
         self.client = AstakosClient(
             self[self.cloud, 'url'], self[self.cloud, 'token'])
-        print 'WHA?', self['astakos', 'details']
         with open(self['astakos', 'details']) as f:
             self._astakos_details = eval(f.read())
 
index aeffe50..3fa0f94 100644 (file)
@@ -369,9 +369,9 @@ class Cyclades(livetest.Generic):
         r = self.client.get_flavor_details(self.flavorid)
         self.assert_dicts_are_equal(self._flavor_details, r)
 
-    def test_list_images(self):
-        """Test list_images"""
-        self._test_0140_list_images()
+    #def test_list_images(self):
+    #    """Test list_images"""
+    #    self._test_0140_list_images()
 
     def _test_0140_list_images(self):
         r = self.client.list_images()
index 47023b7..e733e44 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,6 @@
 
 from setuptools import setup
 from sys import version_info
-import collections
 
 import kamaki
 
diff --git a/version b/version
index 7eece67..68c123c 100644 (file)
--- a/version
+++ b/version
@@ -1 +1 @@
-0.10rc5
+0.10