Ask Your Question

How to know which security group started the server instance

asked 2012-01-11 21:27:22 -0500

ravikumar-venkatesan gravatar image

1) I created security group (OS API extension for security group) nova secgroup-create ravi_sec test_sec 2) start nova instance with security group nova boot ravitest1 --flavor 101 -- image 227 --security_groups ravi_sec 3) Run nova list nova list - does not show the security group with which it is created.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2012-01-12 17:36:30 -0500

It appears that this feature is part of diablo final, see _server_to_xml_detailed in nova/api/openstack/ around line 931: (

    if 'security_groups' in server: 
        security_groups_node = self._create_security_groups_node(xml_doc, 

For some reason it doesn't seem to work, though. When I call the API I get image, flavor and addresses, but no security groups. They do show up when you call the EC2 api for details on the same server.

edit flag offensive delete link more

answered 2012-01-12 18:11:35 -0500

vishvananda gravatar image

This sounds like a bug. Does it happen with trunk as well?

edit flag offensive delete link more

answered 2012-01-12 18:39:09 -0500

ravikumar-venkatesan gravatar image

yes . It is in trunk. 1) euca-describe-instances return security group , but NOT nova list . I am logging bug

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-01-11 21:27:22 -0500

Seen: 25 times

Last updated: Jan 12 '12