yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01806
[Bug 1159793] Re: /servers/<instance-id>/os-security-groups returns an empty list when quantum secgroup proxy is enabled
Reviewed: https://review.openstack.org/25468
Committed: http://github.com/openstack/nova/commit/34126d3ff335e3869317599f7cba691948db7a77
Submitter: Jenkins
Branch: milestone-proposed
commit 34126d3ff335e3869317599f7cba691948db7a77
Author: Aaron Rosen <arosen@xxxxxxxxxx>
Date: Mon Mar 25 10:17:17 2013 -0700
Fix /servers/<instance-id>os-security-groups using quantum
When using quantum security groups:
GET /servers/<instance-id>/os-security-groups
aways returns an empty list. This patch adds a call to
get_instance_security_groups in the api implemenation of security groups.
This method passes both the instance_id and instance_uuid so the api layer
does not need to be aware of which underlying implementation is being used.
The instance_id is needed when using nova and when using quantum the
instance_uuid is needed so both need to be passed.
Fixes bug 1159793
Change-Id: I372adcf93c55d4e6469ef08429ec260d3387f9fe
** Changed in: nova
Status: Fix Committed => Fix Released
--
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/1159793
Title:
/servers/<instance-id>/os-security-groups returns an empty list when
quantum secgroup proxy is enabled
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
When I enabled Quantum security group proxy in nova
(security_group_api = quantum),
GET /servers/<instance-id>/os-security-groups
returns an empty list of security_groups even when the instance is associated with a security group.
This method is used in Horizon to display security group list of an instance.
-----
>>> from novaclient.v1_1 import client
>>> nc = client.Client('demo', 'nomoresecrete', 'demo', 'http://127.0.0.1:5000/v2.0')
>>> s = nc.servers.list
>>> s = nc.servers.list()[0]
>>> s.security_groups
[{u'name': u'default'}]
>>> nc.client.get('/servers/%s/os-security-groups' % nc.servers.list()[0].id)
(<Response [200]>, {u'security_groups': []})
-----
Note that I have not tested with Nova without Quantum.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1159793/+subscriptions