← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1187679] Re: server create API returns only one server with min/max_count

 

This is tracking as a blueprint now, I don't think we need the bug any
more.

** Changed in: nova
       Status: In Progress => Opinion

** Changed in: nova
     Assignee: melanie witt (melwitt) => (unassigned)

-- 
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/1187679

Title:
  server create API returns only one server with min/max_count

Status in OpenStack Compute (Nova):
  Opinion

Bug description:
  Spawning multiple VMs at once using min_count / max_count, only the
  first server is returned:

  $ curl https://[api]/v2/[tenantid]/servers -X POST -H "Content-Type:
  application/json" -H "Accept: application/json" -H "X-Auth-Token:
  [token]" -d '{"server": {"name": "multivm", "imageRef": "[image-
  uuid]", "key_name": "kp", "flavorRef": "1", "max_count": 3,
  "min_count": 1}}' | python -mjson.tool

  {
      "server": {
          "adminPass": "6FxtQxsskpXV", 
          "id": "1c63d2e2-8a82-4b28-b5ba-798850e9e06c", 
          "links": [
              {
                  "href": " https://[api]/v2/[tenantid]/servers/1c63d2e2-8a82-4b28-b5ba-798850e9e06c";, 
                  "rel": "self"
              }, 
              {
                  "href": "https://[api]/[tenantid]/servers/1c63d2e2-8a82-4b28-b5ba-798850e9e06c";, 
                  "rel": "bookmark"
              }
          ], 
          "security_groups": [
              {
                  "name": "default"
              }
          ]
      }
  }

  Because of this the only way to discover created servers is by name
  matching (see https://review.openstack.org/#/c/29395/ for related
  tempest tests).

  The reply could contain a link to all created servers.

  The create API allows to request a reservation ID to be returned instead of the server.
  However there is no mechanism to filter the servers based on the reservation ID when using the OS api.

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