Commit Graph

15 Commits

Author SHA1 Message Date
Andrey Kurilin 0a60aae852 Rename v1_1 to v2
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
2015-02-04 17:40:46 +02:00
Sergio Cazzolato d05da4e985 Revert "Remove quota-class subcommand"
This reverts commit 7c11b06bd4.

The quota_class subcommand was used to set default quota values
so it shouldn't have been removed.

Related mailing list thread on the topic:
http://lists.openstack.org/pipermail/openstack-dev/2014-May/035383.html

Change-Id: I8f392f8e54bef52c1c950f75377e6bb93a41996d
Partial-Bug: #1299517
2014-05-29 16:50:31 -03:00
Masayuki Igawa 7c11b06bd4 Remove quota-class subcommand
quota-classes API was already removed.
  Change-Id: I1110022d6f628d03aaf363da707f2d2ef1600437
This patch removed quota-class subcommand from nova client.

Change-Id: I18bf7c255fabdb52c8ce8159f68c3e5c70e54993
2014-03-03 14:30:56 +09:00
Masayuki Igawa ee0401585d Fix QuotaClassSet and their tests
Some parameters of quota_class_set are not used in Nova v1.1/v2 API. And
some items have wrong type and key name.
QuotaClassSet class has id property originally. But 'id' comes from Nova
API currently. So we can just use it as its id.

This commit fixes and cleanups them.

Change-Id: Ib963ff82e3107d7b78a3a63a2fc1cd6b6bbe47b0
2014-01-15 18:58:11 +09:00
Ken'ichi Ohmichi d664f0f672 Remove class_name parameter from quota_class
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
2014-01-07 03:52:42 +09:00
Chris Yeoh 6a9c81843f Adds second part of quotas support for Nova V3 API
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
2013-12-19 23:36:35 +10:30
Sushil Kumar 953734d727 Enables H403 pep8 rules
Updates tox.ini to reduce ignored rules.

Updates code for H403 violation.

Change-Id: Iee7b34a27c62ce8cb0f26166b3c16e3386e2fecd
2013-12-14 15:16:20 +00:00
Alex Gaynor 35e03a92e2 Corrected several usage of keys() for Python 3
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
2013-09-22 09:04:20 -07:00
Alessio Ababilov c9fc9b5b8f Make ManagerWithFind abstract and fix its descendants
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
2013-05-15 21:47:05 +03:00
Davanum Srinivas c5b579926f Fix Copyright Headers from LLC to Foundation
follow the lead from nova and oslo projects

Change-Id: I270c5f1e4eefa4b72e292bfb4a4c60de0c3f6e4a
2013-03-13 20:12:23 -04:00
Alessio Ababilov 6307310466 Unify Manager._update behaviour
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
2012-12-23 14:50:38 +02:00
Dan Prince cf70a2d6f6 Adds support for security group/rules quotas.
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
2012-12-11 12:18:56 -05:00
Dan Prince f279433e53 Adds support for key_pairs quota.
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
2012-12-04 09:57:03 -05:00
Dan Prince 955b94c1f7 Adds support for injected_file_path_bytes quota.
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
2012-12-04 09:57:03 -05:00
Kevin L. Mitchell c444900d31 Implement quota classes.
Nova's quota class support allows entire classes of quotas to be
associated with projects, which makes it easier to set specific
quotas across multiple projects.  This change adds client-side
support for manipulating quota classes.

Change-Id: I7ee14d16aa51957dcdc1ea5c7a9d5b6bd1656f33
2012-03-20 10:42:49 -05:00