Module novaclient.v1_1 is used as implementation of V1.1, V2 and V3.
Since future development(microversioning) will be done across V2,
implementation should be done in appropriate module(to prevent misleading).
Despite the fact that implementation for all versions are equal, discover
method for contrib path worked only for v1.1. This patch fixes this bug and
modifies shell tests to check all versions.
Change-Id: Ib6798f4dfe177586302141f522dc593560ce6a5b
The get() command gets a volume based on an id. It does not have
anything to do with deleting a volume, and thus should not be documented
as such.
Change-Id: Id62fb07ddd9024ee02090201ce1b679d4968b168
Module py3kcompat was removed from oslo-incubator. We need remove its
usage in client side firstly. This make us move smoothly when sync
oslo-incubator code.
Change-Id: I8b07c32c9852e747579a23685f3c8a07ac13ec01
Partial-Bug: #1280033
Python3 reorganized the standard library and moved several functions
to different modules. Six provides a consistent interface
to them through the fake six.moves module.
However, the urlparse, urllib2, etc modules have been combined
into one module which Six does not support so we do it via
py3kcompat.
Modules such as StringIO and CStringIO have been removed
completely so we use the io module.
Change-Id: I53adac11b634de2c710fc39def36bcec96366710
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Add client support for swap_volume, which allows swapping a volume
currently attached to an instance with a different volume which is not
attached. The contents of the old volume will be copied onto the new
volume. This was added in nova commit
8f51b120b430c7c21399256f37e1d8f75d030484.
Change-Id: I98323d594617c1c435e403d9f3ddc4ff4fa74da6
In python3 dict.iteritems(), dict.iterkeys(), and
dict.itervalues() are no longer supported. So use
six.iteritems() where it is appropriate.
Change-Id: I8b07dc2a89d790ec275d45f859e1644e9b00c837
Signed-off-by: Chuck Short <chuck.short@canonical.com>
The list and secgroup-list commands have this option, and
nova-volume/cinder respect this search option too nowadays.
Change-Id: Ie95432727dec9702e09a0ce314bf418f6a36b799
This fixes bug 1042158 and is a port of
Josh Durgin's fix to python-cinderclient
Patch set 2, remove unnecessary secondary option for
image_id
Change-Id: If028f784f1c6de9b47705cb580711849d1c00060
Add '--availability_zone' flag to 'create' sub command in order to allow
user to speicify target availability zone for volume.
Change-Id: Ie20760cdbf6a8fa5869ed5e79dc0ac56d2741cb2
The 'name' field for some resources is called something different,
for example 'display_name' for volumes. There was a hack in our
find method to search for display_name as well.
This change adds a new class variable to a Resource to tell it
which attribute to use for searching by name. Volumes and snapshots
were switched to use 'display_name' and hypervisors were switched
to use 'hypervisor_hostname'.
Tests fixed and added.
Fixes bug 1034536
Change-Id: I1b4fb969d42c59d1ab8e3e275a563bbe158e9264
* Depends on https://review.openstack.org/#change,4479
* Adds support to change service type including tests
* Adds decorator for methods that need to use another service type
* Changes volume and snapshots to use the volume endpoint
* These extensions will move into the volume client once it exists
* Fixes bug 940017
Change-Id: I683e4ca6c67e278d8aa8a9acec3dc0f1872f43f2
Some methods which should have returned objects dit not return and some
methods which don't return anything used return ... Fixed all that and
added tests to detect two returns which were missing.
Fixes bug 892058
Change-Id: If59468cfe1c7b1ab74ed0bfc6f81590dfd5dd668