Fixes Bug 1103557.
novaclient abstracts out http request from user/client
making it unknown to user what root cause behind nova client
exceptions being raised. By including url and method in exception
handling, this allows user to handle accordingly.
Change-Id: I1a509bb932b3fd029bd0870ab699a39e21da19bb
Add the new get_spice_console API mirroring the impl of
the existing get_vnc_console support.
Blueprint: libvirt-spice
Change-Id: Id549de57ebbed95dc01749838ed539b3b47efc8b
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This will download and decrypt a base64 encoded encrypted password
from the os-server-password extension. It depends on the user
having openssl installed, but if there is an error of any kind it
will print out the encoded and encrypted password instead.
It also implements clear_password which will delete the password
so it can no longer be retrieved.
Change-Id: I2c4e6c3f03b70dc98d6d339381648a6058f46e21
Modifies novaclient, changing the existing networks implementation to a
more appropriate os-admin-networks namespace, and supplements with a
tenant-base network extenion that lives under the os-networks namespace
as a Nova API extension. Also removes from the duplicately named network
test methods.
Implements: blueprint tenant-networks
Change-Id: I54c9f017b86fc413f1646c7bded8cebd94f6a287
Change If1aa25fc7237e9bb5100d2a4a8e560f0a68eba61 adds additional
functionality to the coverage extension. Mainly returning the
data file path for the 'stop' action and adding support for
generating html reports. This commit adds support for this new
functionality.
Change-Id: Icd147350d5c038f6b9c8063e77a75370eb8422e9
Pyflakes picked up a couple of duplicated names. Rename the one
that is correct and delete the incorrect one.
Change-Id: Id4af1269a030be5a725bbbbcf3400341b09fddc3
When the --debug flag is used it should print out the body of a POST
request. It did that previously but the kwargs dict used for the
request stopped using 'body' which is what the logging relied on. This
changes it to use 'data' which is a string representation of what was in
'body'.
Bug 1098241
Change-Id: I82f36e59b459706d9d5a3a38563a45c80e84c6e2
This adds support for server evacuation from failed host.
Adds CLI command:
nova evacuate <server> <host> [--password pwd] [--on-shared-storage]
Depends on the approval of change:
https://review.openstack.org/#change,17991
Change-Id: Icd91c0484b2db532861e23163d043737ad04117a
Makes the help text of the add-fixed-ip less confusing by pointing out
that the IP address is taken from the given network and assigned to the
server.
Change-Id: Iaf4641f65a5872ee70273d5b972ff5da0ddd7b1d
Use testtools as the base testclass. Use fixtures library for managing
fixtures.
Part of blueprint grizzly-testtools
Change-Id: Iac5af286b988787acf7049344641aadf140b9398
Update the README to remove PENDING links to non-existent docs, and
to remove Rackspace-specific references.
Change-Id: I08311e0da3d181c3817573be93f6eed6e15e3812
Now _update call usually returns an instance of self.resource_class.
This simplifies the code and makes novaclient closer to keystoneclient.
Also, update hosts and services API according to changes on nova.
(If50a6b6e20f9b3fe66d486bb9b15d3eb4b62daf9).
Change-Id: I447e49e5fce0afba8a9c1a5df6dfa7200cc93e18
'nova volume-show', 'nova volume-delete', 'nova volume-snapshot-show'
and 'nova volume-snapshot-delete' can be specified by ID or name as
the argument.
But that is not described on the usage messages.
This patch fixes the usage messages.
Fixes bug 1093172
Change-Id: I3dcdd2aca923e9304efd9ea7b467d5b81cd642a7
* Implement correct certificate verification
* Add --os-cacert
* Rework tests for requests
Pinned requests module to < 1.0 as 1.0.2 is now current in pipi
as of 17Dec2012.
Blueprint: tls-verify
Change-Id: I9a25a94c8dfcaf483c4c8328439809d65cf10b38
Fixes LP 1088519
Previously, novaclient was incorrectly defaulting to the tenant name
as the tenant ID when retrieving quota thresholds via the os-quota-sets
API extension, in an apparent attempt to default to the current tenant
if no specific tenant is explicitly requested.
As a result, the default quotas were always returned, regardless of
whether there were specific overridden quotas for this tenant.
We now require that the --tenant option is always specified for the
quota-show verb, as a sensible default isn't always possible
(because the tenant ID may be opaque to the client, for example when
the auth token is cached in the keyring from a previous call out to
keystone - now the tenant ID is of course generally embedded in the
nova publicURL retrieved from the service catalog, but that is not
guaranteed to be the case, i.e. I don't think we can safely make
assumptions about that URL format).
This change also makes the quota-show verb more consistent with the
quota-update verb, which currently requires that the tenant is
always explicitly specified.
Change-Id: I1706ad993059e70ca0e2f3bcf7b1d06cbcc39f2d
This adds support for the coverage extension and also adds 3
CLI commands to interact with coverage:
nova coverage-start
nova coverage-stop
nova coverage-report
'nova coverage-report' has a required '--filename' argument
which gives the filename for the generated report files.
Change-Id: I9cb002b0e32cfe5572878d2c8436270663c0ae96
'nova boot', 'nova flavor-key', 'nova flavor-show' and the other subcommands
can be specified by a flavor name also.
But 'nova flavor-delete' and 'nova list --flavor' cannot, also 'nova list
--image' cannot be specified by a image name.
I feel it is user-friendly that a user can specify arguments by name.
By this patch, a user can do it like the following.
Before appying this patch:
$ nova flavor-delete m1.tiny
ERROR: Flavor m1.tiny could not be found. (HTTP 404) (Request-ID: req-af2c049f-1b77-42cf-a9ed-a3914626bc83)
$
$ nova list --flavor m1.tiny
ERROR: Flavor could not be found (HTTP 422) (Request-ID: req-dbfd5df2-77d7-4a71-a3e6-b1f7fd25b96c)
$
$ nova list --image cirros-0.3.0-x86_64-uec
$
After appying this patch:
$ nova flavor-delete m1.tiny
$
$ nova list --flavor m1.tiny
+--------------------------------------+--------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+--------+--------+------------------+
| 2f003e0e-bfdf-4f56-bdf9-276732e640a0 | test01 | ACTIVE | private=10.0.0.2 |
+--------------------------------------+--------+--------+------------------+
$
$ nova list --image cirros-0.3.0-x86_64-uec
+--------------------------------------+--------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+--------+--------+------------------+
| 2f003e0e-bfdf-4f56-bdf9-276732e640a0 | test01 | ACTIVE | private=10.0.0.2 |
+--------------------------------------+--------+--------+------------------+
$
Fixes bug 1091814
Change-Id: Ic7f6ce76608a448dea3c151bc349391fbf3fa456
The commit to replace --os-no-cache with --os-no-cache works fine
with the cli options, but the env variable is stored in os_cache
which has the opposite of the intended effect. This patch converts
the variable to a bool and then inverts it before it stores it
in os_cache. This makes it work properly again.
Fixes bug 1089696
Change-Id: Iea12806603ecdc39c6475ad4d6f867ebb1e01633
This add four CLI (agent-list/agent-create/agent-delete/agent-modify)
in nova-client
so we can use:
'nova agent-list' like 'nova-manage agent list' with one optional
parameter. Show a list of all agent-builds. Filter by hypervisor.
The difference between the two commands is that 'nova agent-list'
will display the id of the agent build, 'nova-manage agent list'
will not.
'nova agent-create' like 'nova-manage agent create'. It will create
a agent build.
'nova agent-delete id' will delete the agent-build with specific id.
'nova agent-modfiy' will update the version, url, md5hash of the agent
build with specific id.
This patch depends on https://review.openstack.org/#/c/15831/
Implements one workitem of blueprint apis-for-nova-manage
Change-Id: Ic7589077d130efa5abc77252bd79addcaea483c8
Deprecates the old --no-cache option in favor of --os-cache.
The old CLI args (--no_cache and --no-cache) and ENV option
(OS_NO_CACHE) are still supported but no longer show up
in help.
The new option for --os-cache can also be set via the OS_CACHE ENV
variable... which now defaults to False. This should be much more user friendly.
Fixes LP Bug #1087776.
Change-Id: I3cea089c7e11ce75f22c2d7f3242b02b80441323
Updates novaclient's quota and quota_class handlers to support
the security_groups and security_group_rules quotas that are now in
Nova.
Fixes LP Bug #1084682.
Change-Id: I04d90681d535124d7d497e06e8c1ea4f2cb8f4f4