Bug 1209242
nova-api has supported pagination for long. A marker and limit
option could be passed to nova-api to get a slice of instances.
It makes sense to enable this feature in novaclient, so that
horizon could use it for pagination supporting. Modification to
shell.py would be submitted in a separate patch.
Further change will also pass 'sort_key' and 'sort_dir' to
nova-api, as long as nova supports this.
This is part of blueprint support-pagination-for-instance-list
Change-Id: Ieb5f2c1eb31b9f7e95b62b51ea7dc338e3970d04
This is already available in nova but not exposed via client.
* novaclient/v1_1/servers.py:
New interface to list security groups of an instance.
* novaclient/v1_1/shell.py:
New sub command list-secgroup.
* novaclient/tests/v1_1/fakes.py,
novaclient/tests/v1_1/test_servers.py,
novaclient/tests/v1_1/test_shell.py:
Add corresponding tests.
Implements: blueprint servers-list-secgroup
Change-Id: I505bcffdbb15b84bfd73cae5ef5a8fb9c69bd7b9
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>
There was a bug in hacking 0.6 that broke H202, assertRaises Exception
too broad, so switch to Hacking 0.7 and fix the one H202 bug.
Change-Id: I0ec9532ffbb6b3c8dbd775e6da7bc879b0a6737a
Python3 reorganized the standard library and moved several
functions to different modules and combined modules. Six
provides a consistent interface to the module through
six.moves
However urllib/urlparse is not covered by six.moves so
py3kcompat adds python2/python3 compatibility layer for
urllib/urlparse.
Change-Id: If1436d2260f1c8b6df8c514c8730e7bcf0e648b8
Signed-off-by: Chuck Short <chuck.short@canonical.com>
This command lets Admin's list migrations by applying filters
Implements: blueprint list-resizes-through-admin-api
Change-Id: I587c62dab537186cfc8b387fbc46cdb56fb9976c
Update gettext, striutils, timeutils and install_venv_common
from oslo.
Change-Id: Ibd9067e3e2be335ef75f0e4a5e4000d143030ab7
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Administrator cannot use the flavor name in arguments of
"nova flavor-access-add" and "nova flavor-access-remove"
in following conditions.
1. The flavor is non-public.
2. The falvor doesn't belong administrator's tenant.
This patch fixes this problem.
Change-Id: Ic5e3222d0ff62667e003a61e6a94e85833da5d11
Fixes: bug #1205298
Fix:
TypeError: Unicode-objects must be encoded before hashing
while running tests. This is due to the fact in python3 hashlib.md5
works with bytes and we are passing unicode strings.
Change-Id: I27a57d6afb2412e11bc2802e4559d56c5b5592a9
Signed-off-by: Chuck Short <chuck.short@canonical.com>
User can specify flavor/image name as the arguments of "nova boot"
command instead of their ids, but the help messages does not explain
that. This fixes the help messages.
Fixes: bug #1211156
Change-Id: I47813c8ebbe5fc83d627f016e3751918b3ab11cb
The v3 code references v1_1 code because it's a straight-across
copy. Remove those in preparation for adding the actual v3
versions.
bp v3-api
Change-Id: I359c6c5fc70dd91fa418802cc8048e186f5d09a4
Create the v3 directory and populate it with some of the basic
files from v2 that will be needed. These files are straight
copies so that v3-specific changes will be easier to see in
subsequent changes.
Extensions will be added individually in future changes.
bp v3-api
Change-Id: I9538c70ccc6fb001ce2fd43ccfd41870f247c67e
The function __repr__ of Host class which is located in hosts.py try to
access 'host' attribute, source code is "self.host",But in fact, Host object
don't has this attribute, it should be 'host_name'! We can find this attribute
from nova/api/openstack/compute/contrib/hosts.py file.
So I simply change 'self.host' to 'self.host_name'.
Change-Id: Ie76ba04da7592a596ab728fec981e9a1dbcc6a5f
Fixes: bug 1210043
This change removes the max version specified for requests since the
requirements project no longer limits it to 1.2.2.
Change-Id: I96d14b4a84d975e8b08e9271db8d5e13d78019ae
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
Allow servers to be created, resized, and rebuilt with the disk_config
option:
http://api.openstack.org/api-ref.html#ext-os-disk-config
There is a separate extension that exists for disk config already, but
it only works via the novaclient CLI interface, not via programmatic use
of python-novaclient as a library.
assert changes in tests/v1_1/fakes allow for other data in rebuild
and resize requests.
Change-Id: I8051ffb8747cf5c67b0199d22fbbe80306b01499