Public bug reported:

According to Compute API document, only security group name can use when create 
server.

https://docs.openstack.org/api-ref/compute/
"One or more security groups. Specify the name of the security group in the 
name attribute. If you omit this attribute, the API creates the server in the 
default security group. Requested security groups are not applied to 
pre-existing ports."

But actually, SG uuid can use to create server as api.
So I wonder it is intended logic or just a bug. if it is intended, document 
should be modified like below.

"One or more security groups. Specify the name 'or uuid' of the security
group in the name attribute. If you omit this attribute, the API creates
the server in the default security group. Requested security groups are
not applied to pre-existing ports."

----------------------------------
[TEST]

I request create server api body like this

"security_groups":[{
            "name": "a9b687dd-59d7-4cd0-9de3-67383380cbe5"
        }],

and expect it occurs error, but actually it works.

** 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/2090976

Title:
  Security group uuid can use when create VM by api

Status in OpenStack Compute (nova):
  New

Bug description:
  
  According to Compute API document, only security group name can use when 
create server.

  https://docs.openstack.org/api-ref/compute/
  "One or more security groups. Specify the name of the security group in the 
name attribute. If you omit this attribute, the API creates the server in the 
default security group. Requested security groups are not applied to 
pre-existing ports."

  But actually, SG uuid can use to create server as api.
  So I wonder it is intended logic or just a bug. if it is intended, document 
should be modified like below.

  "One or more security groups. Specify the name 'or uuid' of the
  security group in the name attribute. If you omit this attribute, the
  API creates the server in the default security group. Requested
  security groups are not applied to pre-existing ports."

  ----------------------------------
  [TEST]

  I request create server api body like this

  "security_groups":[{
              "name": "a9b687dd-59d7-4cd0-9de3-67383380cbe5"
          }],

  and expect it occurs error, but actually it works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2090976/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to