Ask Your Question
0

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
0

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/servers.py around line 931:

https://github.com/openstack/nova/blob/stable/diablo/nova/api/openstack/servers.py (https://github.com/openstack/nova/blo...)

    if 'security_groups' in server: 
        security_groups_node = self._create_security_groups_node(xml_doc, 
                                                server['security_groups']) 
        server_node.appendChild(security_groups_node)

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
0

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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 4 times

Last updated: Jan 12 '12