yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #64223
[Bug 1693168] [NEW] Different APIs 'os-quota-class-sets' Response between v2 and v2.1
Public bug reported:
'os-quota-class-sets' GET and PUT APIs response is different between v2(all extensions) and v2.1
There is no 'server_groups' and 'server_group_members' in quota class set APIs response where these were present in v2 (with all extension).
'os-server-group-quotas' extension was introduced in this -
I78974602d4be04deaf173b3e43f2dab92e8f4171 in v2 API.
and if extension 'os-server-group-quotas' was enabled in v2, then 'server_groups' and 'server_group_members' were present in APIs response.
This behavior was till we had the legacy_v2 code where this extensions class and way to enable/disable extensions was available.
In v2.1 API, there was never such extensions. v2.1 should behave same as
v2 with all extensions. But we forgot to merge the if/else extension
code[1] which caused 'server_groups' and 'server_group_members' never
showed up in quota class set APIs (GET and PUT) response.
.. 1
http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/quota_classes.py#n47
This issue did not get caught on tests as legacy_v2 code got removed
before functional tests with all extensions were enabled. And somehow
sample file with 'server_groups' and 'server_group_members' attributes
in response got disappeared while changing the directory structure
v3->v2.1>/compute etc.
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1693168
Title:
Different APIs 'os-quota-class-sets' Response between v2 and v2.1
Status in OpenStack Compute (nova):
New
Bug description:
'os-quota-class-sets' GET and PUT APIs response is different between v2(all extensions) and v2.1
There is no 'server_groups' and 'server_group_members' in quota class set APIs response where these were present in v2 (with all extension).
'os-server-group-quotas' extension was introduced in this -
I78974602d4be04deaf173b3e43f2dab92e8f4171 in v2 API.
and if extension 'os-server-group-quotas' was enabled in v2, then 'server_groups' and 'server_group_members' were present in APIs response.
This behavior was till we had the legacy_v2 code where this extensions class and way to enable/disable extensions was available.
In v2.1 API, there was never such extensions. v2.1 should behave same
as v2 with all extensions. But we forgot to merge the if/else
extension code[1] which caused 'server_groups' and
'server_group_members' never showed up in quota class set APIs (GET
and PUT) response.
.. 1
http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/quota_classes.py#n47
This issue did not get caught on tests as legacy_v2 code got removed
before functional tests with all extensions were enabled. And somehow
sample file with 'server_groups' and 'server_group_members' attributes
in response got disappeared while changing the directory structure
v3->v2.1>/compute etc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1693168/+subscriptions
Follow ups