R2.1 build 27: UI :Not able to create a svc instance

Bug #1420628 reported by Ankit Jain on 2015-02-11
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Critical
Rahul
R2.1
Undecided
Rahul

Bug Description

Issue : Not able to create a svc instance through the webui.
steps to reproduce:
1) create a svc template
1)Click on + icon ( create svc instance) on svc instance page.
pop up window appears but stuck in loading state as shown in the attached screenshot.

Ankit Jain (ankitja) wrote :
information type: Proprietary → Public
Rahul (rahuls) on 2015-02-11
Changed in juniperopenstack:
importance: Undecided → Critical
status: New → In Progress
Nachi Ueno (nati-ueno) wrote :

I've tried cli but I got no luck.
It looks like nova starts booting VM but it fails.
I checked compute node log, but it looks like nova-compute get 500 from neutron.

Nachi Ueno (nati-ueno) wrote :

I could successfully apply service chaing when I specify left and right network explicitly.
However, when I specify "auto" mode for left and right network, nova failed to boot VM with neutron error.

Nachi Ueno (nati-ueno) wrote :
Download full text (6.5 KiB)

This is neutron error

5-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] return self.greenlet.switch()
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] result = function(*args, **kwargs)
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1530, in _allocate_network_async
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] dhcp_options=dhcp_options)
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 364, in allocate_for_instance
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] port_ids=ports_in_requested_order)
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 482, in get_instance_nw_info
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] port_ids)
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 496, in _get_instance_nw_info
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] port_ids)
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1161, in _build_network_info_model
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] network_IPs)
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1064, in _nw_info_get_subnets
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] subnets = self._get_subnets_from_port(context, port)
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1194, in _get_subnets_from_port
2015-02-11 04:27:47.751 27771 TRACE nova.compute.manager [instance: e79c6fc6-2a48-453f-86d0-e5eb27169eb1] data = neutronv2.get_client(context).list_subnets(**search_opts)
2015-02-11 04:27:47.751 27771 ...

Read more...

Nachi Ueno (nati-ueno) wrote :

This is error in neutron.log

2015-02-11 04:27:19.898 ERROR [neutron.notifiers.nova] Failed to notify nova on events: [{'name': 'network-changed', 'server_uuid': u'09e3d60e-4250-4e3d-9ca1-251c145c02df'}]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/neutron/notifiers/nova.py", line 221, in send_events
    batched_events)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/contrib/server_external_events.py", line 39, in create
    return_raw=True)
  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 249, in _cs_request
    self.authenticate()
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 382, in authenticate
    auth_url = self._v2_auth(auth_url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 469, in _v2_auth
    return self._authenticate(url, body)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 482, in _authenticate
    **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: object of type 'NoneType' has no len() (HTTP 400)
2015-02-11 04:27:46.587 ERROR [neutron.api.v2.resource] index failed

Reviewed: https://review.opencontrail.org/7308
Committed: http://github.org/Juniper/contrail-web-controller/commit/2453339d13389ec65f292f05240fe757f4c2c1b7
Submitter: Zuul
Branch: R2.1

commit 2453339d13389ec65f292f05240fe757f4c2c1b7
Author: Naga Kiran <email address hidden>
Date: Wed Feb 11 16:50:25 2015 +0530

Closes-Bug: #1420628

Typo in an unrelated file caused a global variable "authApi" to become local
scope and making "authApi" unavailable in service instance page.

Change-Id: I3acd7967a9d86bceb8e4350213a109a0700dc28b

OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/7350
Committed: http://github.org/Juniper/contrail-web-controller/commit/aec85b8cfabc08e30a76f380c6cc95fc9df480e0
Submitter: Zuul
Branch: master

commit aec85b8cfabc08e30a76f380c6cc95fc9df480e0
Author: Naga Kiran <email address hidden>
Date: Wed Feb 11 16:50:25 2015 +0530

Closes-Bug: #1420628

Typo in an unrelated file caused a global variable "authApi" to become local
scope and making "authApi" unavailable in service instance page.

Change-Id: I3acd7967a9d86bceb8e4350213a109a0700dc28b
(cherry picked from commit 2453339d13389ec65f292f05240fe757f4c2c1b7)

Changed in juniperopenstack:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers