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>
This command lets Admin's list migrations by applying filters
Implements: blueprint list-resizes-through-admin-api
Change-Id: I587c62dab537186cfc8b387fbc46cdb56fb9976c
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
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
Changed host-actions to GET from POST for reboot, startup
and shutdown, as per nova-api reference documentation.
Change-Id: I863b75960b2e427fd9384a336727132ca3c130c6
Fixes: bug #1206425
Implements blueprint user-quota-related-client-api
This patch adds user arguments to the following subcommands:
* quota-show
* quota-update
* quota-delete
Change-Id: I6556de366a758f7550e9b26357f231666caae419
Use /resources instead of /resources/detail to resolve
the resource ID by the name and load the details of the
resource in a separate step. This reduces the overhead
to resolve the resource ID and results in a better runtime
performance.
This patch does not solve the issue that the name resolving
takes place on the client side. For solving this issue new
Nova API methods are necessary.
fixes bug #1202179
Change-Id: Ib753b1d090cb74b2d137c68f6899dad4ae2ec1ca
Bug 1195670
Nova supports force_delete or restore instance in the API level,
thus it makes sense to support this feature in novaclient.
Change-Id: I7cc3d2d2a7ab8dfe043176a3ea97c10deae683c9
Fixes #Bug 1202920
This patch adds name arguments to the following subcommands:
* hypervisor-show
* hypervisor-uptime
Change-Id: I9adfb699775d2d8f8ca45a7a28621e634bc03055
utils.find_resource() uses manager.get() as part of converting Resource
names to IDs. AggregatesManager had get_details() instead of get().
Add AggregatesManager.get(), leaving .get_details() in place for backward
API compatibility.
Bug: 1200341
Change-Id: I7d238bbe43e1760e31f1a9ba783c668246f20844
When the block-device parameters skip volume_size,
don't set it. Setting to an empty volume_size
would be invalid as it has to be an integer,
and Nova API will reject the request if api validation
is implemented. (proposed e.g. at
https://review.openstack.org/#/c/34749/)
Fixes bug LP #1199539
Change-Id: I7ab518886abf8d449caf1c70563a79a990d7765e
'nova start' and 'nova stop' actually send request with 'os-start'
and 'os-stop', instead of 'start' and 'stop'.
Change-Id: I1472e1b648dae8f3b281a113adb60421a00e5a48
In cases where the respective authentication methods return
non-NoneTypes, (e.g., HTTP 305 redirects) they would get dropped
on the floor previously.
This patch set splits the test_auth_redirect unit test into two
nearly-identical unit tests to exercise the different code paths.
Without the patch, the test_v2_auth_redirect unit test fails with
an HTTP 401 error
Change-Id: I2018bc5b73ce86d6d5383958375d5dbbde2e763c
Fixes: Bug 1197191
Adds cli option to allow users to give reason
for service-disable. Also adds disabled reason
as a column in service list, so any disabled service
can be seen with reason.
A recent nova change that allows disable-log-reason
allows users to provide reason for disabling service.
This just adds the cli option for the method.
Blueprint record-reason-for-disabling-service
Change-Id: If263788c34279d6b4c568d5e0320448d2ff67a12
Tenant names are not necessarily unique for a User, so the client
should also allow authentication by tenant_id
If both ID and Name are specificed then use the ID
Fixes bug 1195454
Change-Id: Ib62aabc3702db88f02259cd721f9efb31404bcb7
In .testr.conf, we reference OS_STDOUT_CAPTURE / OS_STDERR_CAPTURE
while in novaclient/tests/utils.py we reference OS_STDOUT_NOCAPTURE
and OS_STDERR_NOCAPTURE. This change brings things more in line
with nova project by referencing OS_STDOUT_CAPTURE / OS_STDERR_CAPTURE
in both locations.
Change-Id: I22efdec84bef78e99d1d95303cadade6011d76a2
Fixes: bug #1192997
The currently proposed Hacking check H103
compares the license boilerplate header in
source files with a known good version.
Fix up the syntactical-only mismatches with
that check.
Change-Id: Ie8861b9ded858aabb4cebbe9db656e8cccc9efed
Python3 enforces the distinction between byte strings and text strings
more rigorously than python2. So use six.text_type/six.u()
where appropriate
Change-Id: I890e19cb857e10f0292aabdaebaa8e7a7bd8db23
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Modified the used limits API for Admin to retrieve
the used limits for a customer. Changes done to the
nova client to fetch limits for a given tenant.
This is related to changes made in nova,
https://review.openstack.org/#/c/27468/
Change-Id: Id53576eb35d6dab7cb655f8427091e95a6f75a6d
Implements: blueprint customer-quota-through-admin-api
Fixes bug 1192656
Previously, the attempt to re-authenticate on possible token
expiry actually re-used the expired token, which was clearly
bound to fail in the expired case.
Now the old authentication state is discarded before attempting
re-authentication.
Change-Id: I3fd125702061f7ac84eb501d2a488aab5b2385b9
Once we have additional check when update quota in
https://review.openstack.org/#/c/25887/, we need provide --force option
when run 'nova quota-update'.
Since the change in nova server has been merged, we need re-enable the
changes in nova client side.
Fix bug 1160749
Change-Id: Iceb67c5816312fafed8a68e48a8a136c03d0bb5b
Commit updates help string for --nic option to reflect that specifying
net-id and port-id keys are optional but that at least one is
required. Additionally, we change _boot in novaclient/v1_1/shell.py
to raise an exception if random keys are added to --nic string and if
--nic string does not contain net-id or port-id keys.
Change-Id: Icf94c395bd09160aa6a1b849eb464d72e410e1ae
Fixes: bug #1052356
Fixes: bug #1191139
Allow a floating IP to be associated to a specific fixed IP
This is the client side of:
https://review.openstack.org/#/c/26113/15
Change-Id: I05f8a0dc60268535231b95a6664719015f67a318