Adds the ability to do a detailed query from the
os-quota-sets V3 API extension. This was an interface
added in V3 to allow for the querying of current quota
usage. Adds a shell command quota-usage which
uses this interface to show current quota usage as well
as the limit.
The absolute limits response was removed from
the limits extension in a9e29b7e9fbe14ab42f24802a6d2a457a6317ba3
and so the corresponding novaclient command is also removed.
The "quota-show-usage" command now shows the same information.
Differences between the V2 and V3 API are described here:
https://wiki.openstack.org/wiki/NovaAPIv2tov3
Partially implements blueprint v3-api
Change-Id: I5db72d42120f4ad7a86fbfce20382988f6bbf5d3
class_name parameter is not used in both Nova v1.1/v3 API.
Nova considers the part of url as class_name.
For example, bar is considered as class_name in the following case:
curl -i 'http://localhost:8774/v3/os-quota-class-sets/bar' -X PUT ..
This patch removes this unused paramter from quota_class.
Change-Id: Id4eba5b2a17506bc04ea23ef1097ef9cdb9caf8a
The bash completion code is the sole user of the slugify() function
in utils, which is substantially similar to to_slug() provided in
strutils from oslo.
Change-Id: Ib4eb7e4c0fa0e9bc5c4a0856f6391911d8f8fd3b
Closes-bug: #1266118
Instead of using novaclient.utils' bool_from_str, use bool_from_string
from the oslo incubating strutils
Notes:
0. utils.bool_from_str was strict, only accepted a small set of
values, while strutils.bool_from_string is not strict by default,
anything not true is false
1. bool_from_string accepts on/off, which bool_from_str did not
Change-Id: I04744844b55697819289def081d3c9117ed0713f
If a user runs 'nova service-list --binary something-weird', where
something-weird is a binary that is not listed the result is a confusing
IndexError. That is because the result is expected to always have at
least one result.
Part of the reason for that is that the fake client does not make it
easy to simulate an empty response in tests. That is why there is no
regression test associated with this bug-fix. That is also why I am
marking thas as Partial-Bug, as this corrects the symptom, but it does
not prevent it from regressing.
Change-Id: I3e6798d63a662c245196b3bf95bb7e1b0ea9c3a4
Partial-Bug: #1260504
'nova aggregate-details' shows Hosts, Availability Zone
and Metadata in the python unicode notation.
+ Adds some tests about aggregates ported from v1 to the
v3 shell
Change-Id: I69d80b2e76833d78248dee782ae5e53f42a4f4a9
Closes-Bug: #1132961
There's a few gaps in the testing regime for do_ssh, specifically
around IPv6, specifying identity files, and additional args. This
patch attempts to address these.
Change-Id: I590fd7ffe1e3470c8507d7f7fb2abcfdb6162561
Attach a volume to a server without device name, the client returned the
error msg: "error: too few arguments". But for server, we can attach a
volume to a server without the device name.
Change-Id: Ia2743c6e3956cae6591ecd414baf89b0dbcf532b
Closes-Bug: #1257137
Adds support and tests for the os-simple-tenant-usage
extension for the Nova V3 API. There are no
differences between the V2 and V3 API and this change
adds the client code to enable the usage command. Note
that with nomenclature change from tenant to project
occuring in Nova there will be a difference between
the V2 and V3 API in the future.
Differences between the V2 and V3 API are described here:
https://wiki.openstack.org/wiki/NovaAPIv2tov3
Partially implements blueprint v3-api
Change-Id: Iddf6211c9c87cbb191d9a5d5a65710b343c30e67
Adds support and tests for the keypairs extension for
the Nova V3 API. The V3 version of the keypair extension
has been made part of the core V3 API and as a result no longer
has the "os-" prefix in the url.
Differences between the V2 and V3 API are described here:
https://wiki.openstack.org/wiki/NovaAPIv2tov3
Partially implements blueprint v3-api
Change-Id: Id4a77e1e4565f63ecdf7753d3c224975519fc07c
Adds support and tests for the os-certificates extension
for the Nova V3 API
Partially implements blueprint v3-api
Change-Id: I9a75bf04a7047af6c501af2df72de4b8ce3462b0
Adds support and tests for the os-aggregates extension
for the Nova V3 API.
Partially implements blueprint v3-api
Change-Id: Ibe251f083ea444fb46aac9cc5cf08784b5826ad7
Adds support and tests for the os-hypervisors extension
for the Nova V3 API.
Note that compared to the V2 API it separates the search
function into search by hypervisor name and a new list
servers by hypervisor as this better first the changes
in the V3 API. The listing of servers by hypervisor command
is preserved, though reworked to use the new interfaces.
Partially implements blueprint v3-api
Change-Id: I472f9acad895dcf842e93d2de27530652f73867e
Adds support and tests for the os-services extension
for the Nova V3 API
Partially implements blueprint v3-api
Change-Id: Ic64e465e24a6e840c567677d4f2ea9d63b742ccd
Adds support and tests for the os-quota-class-sets
extension for the Nova V3 API. Note that compared to
the V2 version this removes the ability to set quotas
which are not relevant to the V3 API (eg injected file
quotas are not relevant because the os-personalities
extension has been removed).
Partially implements blueprint v3-api
Change-Id: I3e7f36407f2f59737ecbce2c8ce014cef623ecdc
Adds support and tests for the os-quotas extension
for the Nova V3 API. Note that compared to the V2
version this removes the ability to set quotas
which are not relevant to the V3 API (eg injected
file quotas are not relevant because the
os-personalities extension has been removed)
Partially implements blueprint v3-api
Change-Id: Ifa1c77428424bedf7fb88ef6d7b3843376799d24
Adds support and tests for the os-availability-zones
extension for the Nova V3 API. Also implements
sorting for zone host display which was applied
to the v1_1 version, but not the v3 version in
I9ab25ef52d6d19b45a39f04cbcde864ee225b4cc
Partially implements blueprint v3-api
Change-Id: I8daa2503a2dc8767e9157bdfa6c9adaedfc8f3c0
Ports servers support from the v1_1 directory omitting functionality
which is no longer supported directly in the V3 API such as:
- floating ip
- add/remove/list of security groups
- disk config related functionality
Makes the appropriate modifications required for parameter name
changes between the V2 and V3 API
Booting an instance is not yet supported as this will require more
extensive changes as image listing services are no longer proxied
through the Nova V3 API
Partially implements blueprint v3-api
Change-Id: I1116e8d8ebc73176223f4135168cc4ab5d904356
the nova ssh command is convenient, but it is lacking some basic
niceties that everyone is used to with ssh, for instance actually
doing user@host to connect to an environment. This adds support
for "nova ssh user@host" to work as one would expect.
The functionality is added to both v1.1 and v3 clients. Tests for
this, and other ssh behavior are added to the v1.1 tree (the v3
test_shell.py has not synced over yet).
Change-Id: Ic4081f85c848507ebdc5e228ac345faf19127168
apparently we had a duplicate import of six, noticed by pyflakes
in my buffer when loading up the file.
Change-Id: I2f5e03d1862711c7214c1e33b4500693aaabf567
The right module name should be `novaclient.v1_1.servers' instead of
`novaclient'. Similar fix on `images', `flavors' and `exceptions'.
Removed `ipgroups' and `backup_schedules' since they do not exist any
more.
Closes-Bug: #1056478
Change-Id: Id35f9c275fb36f3651a0bb2b0eb03c43f0aaeec1
This new extension permits preserving the ephemeral partition if the
Nova hypervisor supports that. This is primarily useful when Cinder is
not available to provide preservation of state while replacing the
image in use. One common situation for that is Nova Baremetal.
DocImpact
Blueprint: baremetal-preserve-ephemeral
Partial-Bug: #1174154
Co-Authored-By: Robert Collins <rbtcollins@hp.com>
Change-Id: Ib1511653904d4f95ab03fb471669175127004582
keyring.backend.* was deprecated in python-keyring 1.1 and we already
require keyring 1.6.1. This also makes novaclient compatible with python-keyring 3.0
which removes the deprecated paths.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728470#10.
Change-Id: I4919ac515e589fddc6044c0cd2f4cbc06c2ec91f
Co-Authored-By: Sebastian Ramacher <sramacher@debian.org>
Adds support for basic image querying from the image server
rather than the Nova API. The Nova V3 API no longer supports
image querying directly, but in order to support convenience
functions such as specifying images by name rather than ID,
it is necessary to have some basic image query support.
image delete and image meta manipulation is no longer supported
by the client as these features can be accessed directly through
the glance client
Partially implements blueprint v3-api
Change-Id: I9050845d631e9dfc2e110327221d154b8924cd65
Remove commands which are no longer supported by the Nova
V3 API and that we will definitely not be proxying to another
service. Removes:
- cloudpipe-list
- cloudpipe-create
- cloudpipe-configure
- coverage-start
- coverage-stop
- coverage-report
- coverage-reset
Partially implements blueprint v3-api
Change-Id: I366cd0233977c1b506d55de280188ecccda8188f
Adds support and tests for the os-agents extension
for the Nova V3 API
Partially implements blueprint v3-api
Change-Id: I53f8a1cbab6f4dee10fb823bc51ae90baa97fa7a