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
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
Under Python2 dict.keys() returns a list, under Python 3 it returns an
iterator. Some places assumed that if they called keys() then it was
safe to modify the dict in a loop. Corrected this by calling list().
Change-Id: I7638263f288dd20590bd751d09194a919b921545
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
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
This reverts commit e8b665edbf.
The previous commit created an incompatibility in using new nova
client with older nova server. Nova client needs to be always
releasable, and work with all nova server API versions out there.
Fixes bug #1173353
Change-Id: I2c07d109af4a35bc3b98dedaf991d5d3cc6fdd3b
ManagerWithFind requires list() method in its descendants.
Make it abstract and fix its improper descendants that do
not implement list() (SecurityGroupRuleManager and many others).
Fixes: bug #1180393
Change-Id: Ic8b466a57554018092c31c6d6b3ea62f181d7000
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'.
Fix bug 1160749
DocImpact
Change-Id: Ib8d94d4eaa846f620abad5fb55017ac3fb0b322a
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
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
Updates novaclient's quota and quota_class handlers to support
the key_pairs quota that is now in Nova.
Fixes LP Bug #1084674.
Change-Id: I0eb357a5f7d5dba73f002066ea381cec818f1492
Updates novaclient's quota and quota_class handlers to support
the injected_file_path_bytes quota that is now in Nova.
Fixes LP Bug #1084672.
Change-Id: I2156816fd09bdd388e3acb8143b041e927f33511
Fixes bug #911552
The None, True, and False values are singletons.
All variable *comparisons* to singletons should use 'is' or 'is not'.
All variable *evaluations* to boolean should use 'if' or 'if not'.
All Object type comparisons should use isinstance()
instead of comparing types directly
Change-Id: Ia5571e58e2662c652f0e996d8c1a1acb4531623d
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