← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1553057] [NEW] Unable to launch an instance due to "ERROR nova.api.openstack.extensions

 

Public bug reported:

Creation of Instance fails

~# nova boot --flavor 1 --image cirros --nic net-id=8856e7be-bce7-42e4-84ff-58edd7b26b41 TestVM
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'requests.exceptions.MissingSchema'> (HTTP 500) (Request-ID: req-3d3303f9-b64a-4021-a674-4ba7f55fa030)

Here are the nova.api logs from controller node

2016-03-04 00:49:52.212 2848 INFO nova.osapi_compute.wsgi.server [req-1b295f62-f15b-45e1-99fe-a9e9af22795c 96376c21180244ca8266841b90b74275 e195f8abb6bb4e778f6afb73aeb8bb74 - - -] 10.140.33.254 "GET /v2/e195f8abb6bb4e778f6afb73aeb8bb74/flavors/1 HTTP/1.1" status: 200 len: 615 time: 0.2387350
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions [req-7763e88d-a861-4890-bd7e-7feccce4394e 96376c21180244ca8266841b90b74275 e195f8abb6bb4e778f6afb73aeb8bb74 - - -] Unexpected exception in API method
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 611, in create
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     **create_kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 149, in inner
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1581, in create
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1181, in _create_instance
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     auto_disk_config, reservation_id, max_count)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 923, in _validate_and_build_base_options
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     requested_networks, max_count)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 533, in _check_requested_networks
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     max_count)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1171, in validate_networks
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     context, neutron, requested_networks)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1143, in _ports_needed_per_instance
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     neutron=neutron)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 282, in _get_available_networks
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     nets = neutron.list_networks(**search_opts).get('networks', [])
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102, in with_params
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     ret = self.function(instance, *args, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 574, in list_networks
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     **_params)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 307, in list
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     for r in self._pagination(collection, path, **params):
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 320, in _pagination
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     res = self.get(path, params=params)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 293, in get
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     headers=headers, params=params)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 270, in retry_request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     headers=headers, params=params)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 200, in do_request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     content_type=self.content_type())
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 306, in do_request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return self.request(url, method, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 294, in request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     resp = super(SessionClient, self).request(*args, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 95, in request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return self.session.request(url, method, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 386, in request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     resp = send(**kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 420, in _send_request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     resp = self.session.request(method, url, **kwargs)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 451, in request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     prep = self.prepare_request(req)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 382, in prepare_request
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     hooks=merge_hooks(request.hooks, self.hooks),
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/requests/models.py", line 304, in prepare
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     self.prepare_url(url, params)
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/requests/models.py", line 362, in prepare_url
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     to_native_string(url, 'utf8')))
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions MissingSchema: Invalid URL 'http:/quasarcn10:9696/v2.0/networks.json?id=8856e7be-bce7-42e4-84ff-58edd7b26b41': No schema supplied. Perhaps you meant http://http:/quasarcn10:9696/v2.0/networks.json?id=8856e7be-bce7-42e4-84ff-58edd7b26b41?
2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions
2016-03-04 00:49:53.079 2848 INFO nova.api.openstack.wsgi [req-7763e88d-a861-4890-bd7e-7feccce4394e 96376c21180244ca8266841b90b74275 e195f8abb6bb4e778f6afb73aeb8bb74 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'requests.exceptions.MissingSchema'>

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1553057

Title:
  Unable to launch an instance due to "ERROR
  nova.api.openstack.extensions

Status in neutron:
  New

Bug description:
  Creation of Instance fails

  ~# nova boot --flavor 1 --image cirros --nic net-id=8856e7be-bce7-42e4-84ff-58edd7b26b41 TestVM
  ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'requests.exceptions.MissingSchema'> (HTTP 500) (Request-ID: req-3d3303f9-b64a-4021-a674-4ba7f55fa030)

  Here are the nova.api logs from controller node

  2016-03-04 00:49:52.212 2848 INFO nova.osapi_compute.wsgi.server [req-1b295f62-f15b-45e1-99fe-a9e9af22795c 96376c21180244ca8266841b90b74275 e195f8abb6bb4e778f6afb73aeb8bb74 - - -] 10.140.33.254 "GET /v2/e195f8abb6bb4e778f6afb73aeb8bb74/flavors/1 HTTP/1.1" status: 200 len: 615 time: 0.2387350
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions [req-7763e88d-a861-4890-bd7e-7feccce4394e 96376c21180244ca8266841b90b74275 e195f8abb6bb4e778f6afb73aeb8bb74 - - -] Unexpected exception in API method
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 611, in create
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     **create_kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 149, in inner
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1581, in create
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1181, in _create_instance
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     auto_disk_config, reservation_id, max_count)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 923, in _validate_and_build_base_options
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     requested_networks, max_count)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 533, in _check_requested_networks
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     max_count)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1171, in validate_networks
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     context, neutron, requested_networks)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1143, in _ports_needed_per_instance
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     neutron=neutron)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 282, in _get_available_networks
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     nets = neutron.list_networks(**search_opts).get('networks', [])
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102, in with_params
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     ret = self.function(instance, *args, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 574, in list_networks
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     **_params)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 307, in list
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     for r in self._pagination(collection, path, **params):
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 320, in _pagination
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     res = self.get(path, params=params)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 293, in get
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     headers=headers, params=params)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 270, in retry_request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     headers=headers, params=params)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 200, in do_request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     content_type=self.content_type())
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 306, in do_request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return self.request(url, method, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 294, in request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     resp = super(SessionClient, self).request(*args, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 95, in request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return self.session.request(url, method, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 386, in request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     resp = send(**kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 420, in _send_request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     resp = self.session.request(method, url, **kwargs)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 451, in request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     prep = self.prepare_request(req)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 382, in prepare_request
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     hooks=merge_hooks(request.hooks, self.hooks),
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/requests/models.py", line 304, in prepare
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     self.prepare_url(url, params)
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/requests/models.py", line 362, in prepare_url
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions     to_native_string(url, 'utf8')))
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions MissingSchema: Invalid URL 'http:/quasarcn10:9696/v2.0/networks.json?id=8856e7be-bce7-42e4-84ff-58edd7b26b41': No schema supplied. Perhaps you meant http://http:/quasarcn10:9696/v2.0/networks.json?id=8856e7be-bce7-42e4-84ff-58edd7b26b41?
  2016-03-04 00:49:53.075 2848 ERROR nova.api.openstack.extensions
  2016-03-04 00:49:53.079 2848 INFO nova.api.openstack.wsgi [req-7763e88d-a861-4890-bd7e-7feccce4394e 96376c21180244ca8266841b90b74275 e195f8abb6bb4e778f6afb73aeb8bb74 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'requests.exceptions.MissingSchema'>

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


Follow ups