← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1347104] Re: Horizon fails to create a database instance when tentant have two or more networks.

 

Horizon misses additional fields for network nics. This bug is related
to horizon, and has nothing common with Trove since python-troveclient
allows to pass NICs through the its API.

** Also affects: horizon
   Importance: Undecided
       Status: New

** Changed in: trove
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1347104

Title:
  Horizon fails to create a database instance when tentant have two or
  more networks.

Status in OpenStack Dashboard (Horizon):
  New
Status in Openstack Database (Trove):
  Invalid

Bug description:
  The scenario is where the user can use two or more networks. 
  There is no field to specify the network for the new instance through Horizon and trove does not pick one by default.

  In this case, the instance creation will fail and show no clue to the
  user, making impossible to create a database instance through Horizon.

  taskmanager.log:

  2014-07-22 15:40:03.083 19447 ERROR trove.taskmanager.models [req-017acd3f-54e0-4e4d-9739-b16c8a5f0224 2fafca585b6c4a2eab3429bfab81dfaf c460558413694a8e9055b492fedf8f71 - - -] Error creating server for instance 763de809-5f32-4503-8929-24639e8b017d
  2014-07-22 15:40:03.083 19447 ERROR trove.taskmanager.models [req-017acd3f-54e0-4e4d-9739-b16c8a5f0224 2fafca585b6c4a2eab3429bfab81dfaf c460558413694a8e9055b492fedf8f71 - - -] Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-562de1b2-dcb9-4222-b68f-5d6e25ec8509)
  2014-07-22 15:40:03.084 19447 ERROR trove.taskmanager.models [req-017acd3f-54e0-4e4d-9739-b16c8a5f0224 2fafca585b6c4a2eab3429bfab81dfaf c460558413694a8e9055b492fedf8f71 - - -] Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/trove/taskmanager/models.py", line 462, in _create_server_volume_individually
      availability_zone, nics)
    File "/usr/lib/python2.7/dist-packages/trove/taskmanager/models.py", line 574, in _create_server
      availability_zone=availability_zone, nics=nics)
    File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 871, in create
      **boot_kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 534, in _boot
      return_raw=return_raw, **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 152, in _create
      _resp, body = self.api.client.post(url, body=body)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 286, in post
      return self._cs_request(url, 'POST', **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 260, in _cs_request
      **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 242, in _time_request
      resp, body = self.request(url, method, **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in request
      raise exceptions.from_response(resp, body, url, method)
  BadRequest: Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-562de1b2-dcb9-4222-b68f-5d6e25ec8509)

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