Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

security groups support in openstacksdk?

I am experimenting with the openstacksdk and have managed to get most things working. However it looks as if there is no support currently for creating VMs with anything other than the default security group? Can someone confirm? Is there any workaround / fix planned?

I use compute.create_server to get a valid Server object and use the server id to get the appropriate port by searching for the one with the correct device_id. However any attempt to update the security_group_ids of the port leads to a "bad request" - it seems to be fixed using the default group.

Creating the port in advance would seem more logical, but there is no port attribute in the Server class, so no way of specifying the port at server creation time.

What am I missing?