mainline: Liberty-vm launch through horizon failed

Bug #1550589 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Jeya ganesh babu J
Trunk
Fix Committed
High
Jeya ganesh babu J

Bug Description

Vm creation through horizon UI failed with below trace. But through cli it works.

similar issue reported in bug: https://bugs.launchpad.net/nova/+bug/1550449

Trace
====

Fri Feb 26 22:45:58.243475 2016] [:error] [pid 3693:tid 140450561328896] Recoverable error: 'NoneType' object has no attribute 'find'
[Fri Feb 26 22:46:26.192888 2016] [:error] [pid 3693:tid 140450594932480] Cinder v2 requested but no 'volumev2' service type available in Keystone catalog.
[Fri Feb 26 22:46:26.193392 2016] [:error] [pid 3693:tid 140450594932480] Recoverable error: 'NoneType' object has no attribute 'find'
[Fri Feb 26 22:46:26.193766 2016] [:error] [pid 3693:tid 140450594932480] Recoverable error: 'NoneType' object has no attribute 'find'
[Fri Feb 26 22:46:26.260419 2016] [:error] [pid 3693:tid 140450594932480] Internal Server Error: /horizon/project/instances/launch
[Fri Feb 26 22:46:26.260454 2016] [:error] [pid 3693:tid 140450594932480] Traceback (most recent call last):
[Fri Feb 26 22:46:26.260461 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
[Fri Feb 26 22:46:26.260467 2016] [:error] [pid 3693:tid 140450594932480] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Fri Feb 26 22:46:26.260472 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec

[Fri Feb 26 22:46:26.260472 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec
[Fri Feb 26 22:46:26.260478 2016] [:error] [pid 3693:tid 140450594932480] return view_func(request, *args, **kwargs)
[Fri Feb 26 22:46:26.260483 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/decorators.py", line 52, in dec
[Fri Feb 26 22:46:26.260488 2016] [:error] [pid 3693:tid 140450594932480] return view_func(request, *args, **kwargs)
[Fri Feb 26 22:46:26.260494 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec
[Fri Feb 26 22:46:26.260499 2016] [:error] [pid 3693:tid 140450594932480] return view_func(request, *args, **kwargs)
[Fri Feb 26 22:46:26.260505 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/decorators.py", line 84, in dec
[Fri Feb 26 22:46:26.260510 2016] [:error] [pid 3693:tid 140450594932480] return view_func(request, *args, **kwargs)
[Fri Feb 26 22:46:26.260515 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
[Fri Feb 26 22:46:26.260521 2016] [:error] [pid 3693:tid 140450594932480] return self.dispatch(request, *args, **kwargs)
[Fri Feb 26 22:46:26.260538 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
[Fri Feb 26 22:46:26.260543 2016] [:error] [pid 3693:tid 140450594932480] return handler(request, *args, **kwargs)
[Fri Feb 26 22:46:26.260547 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/workflows/views.py", line 167, in post
[Fri Feb 26 22:46:26.260552 2016] [:error] [pid 3693:tid 140450594932480] context = self.get_context_data(**kwargs)
[Fri Feb 26 22:46:26.260557 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/workflows/views.py", line 91, in get_context_data
[Fri Feb 26 22:46:26.260563 2016] [:error] [pid 3693:tid 140450594932480] workflow = self.get_workflow()
[Fri Feb 26 22:46:26.260567 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/workflows/views.py", line 81, in get_workflow
[Fri Feb 26 22:46:26.260572 2016] [:error] [pid 3693:tid 140450594932480] entry_point=entry_point)
[Fri Feb 26 22:46:26.260577 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/workflows/base.py", line 651, in __init__
[Fri Feb 26 22:46:26.260585 2016] [:error] [pid 3693:tid 140450594932480] valid = step.action.is_valid()
[Fri Feb 26 22:46:26.260610 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/django/forms/forms.py", line 162, in is_valid
[Fri Feb 26 22:46:26.260615 2016] [:error] [pid 3693:tid 140450594932480] return self.is_bound and not bool(self.errors)
[Fri Feb 26 22:46:26.260619 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/django/forms/forms.py", line 154, in errors
[Fri Feb 26 22:46:26.260624 2016] [:error] [pid 3693:tid 140450594932480] self.full_clean()
[Fri Feb 26 22:46:26.260628 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/django/forms/forms.py", line 354, in full_clean
[Fri Feb 26 22:46:26.260632 2016] [:error] [pid 3693:tid 140450594932480] self._clean_form()

[Fri Feb 26 22:46:26.260636 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/django/forms/forms.py", line 378, in _clean_form
[Fri Feb 26 22:46:26.260640 2016] [:error] [pid 3693:tid 140450594932480] cleaned_data = self.clean()
[Fri Feb 26 22:46:26.260644 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/workflows/create_instance.py", line 367, in clean
[Fri Feb 26 22:46:26.260648 2016] [:error] [pid 3693:tid 140450594932480] self._check_quotas(cleaned_data)
[Fri Feb 26 22:46:26.260653 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/instances/workflows/create_instance.py", line 209, in _check_quotas
[Fri Feb 26 22:46:26.260657 2016] [:error] [pid 3693:tid 140450594932480] usages = quotas.tenant_quota_usages(self.request)
[Fri Feb 26 22:46:26.260662 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/utils/memoized.py", line 90, in wrapped
[Fri Feb 26 22:46:26.260666 2016] [:error] [pid 3693:tid 140450594932480] value = cache[key] = func(*args, **kwargs)
[Fri Feb 26 22:46:26.260671 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 365, in tenant_quota_usages
[Fri Feb 26 22:46:26.260676 2016] [:error] [pid 3693:tid 140450594932480] tenant_id=tenant_id):
[Fri Feb 26 22:46:26.260679 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 171, in get_tenant_quota_data
[Fri Feb 26 22:46:26.260687 2016] [:error] [pid 3693:tid 140450594932480] tenant_id=tenant_id)
[Fri Feb 26 22:46:26.260690 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 149, in _get_quota_data
[Fri Feb 26 22:46:26.260693 2016] [:error] [pid 3693:tid 140450594932480] quotasets.append(getattr(cinder, method_name)(request, tenant_id))
[Fri Feb 26 22:46:26.260695 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 419, in tenant_quota_get
[Fri Feb 26 22:46:26.260698 2016] [:error] [pid 3693:tid 140450594932480] return base.QuotaSet(c_client.quotas.get(tenant_id))
[Fri Feb 26 22:46:26.260700 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/cinderclient/v2/quotas.py", line 37, in get
[Fri Feb 26 22:46:26.260703 2016] [:error] [pid 3693:tid 140450594932480] "quota_set")
[Fri Feb 26 22:46:26.260705 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/cinderclient/base.py", line 173, in _get
[Fri Feb 26 22:46:26.260708 2016] [:error] [pid 3693:tid 140450594932480] resp, body = self.api.client.get(url)
[Fri Feb 26 22:46:26.260710 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 303, in get
[Fri Feb 26 22:46:26.260718 2016] [:error] [pid 3693:tid 140450594932480] return self._cs_request(url, 'GET', **kwargs)
[Fri Feb 26 22:46:26.260721 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 260, in _cs_request
[Fri Feb 26 22:46:26.260724 2016] [:error] [pid 3693:tid 140450594932480] self.authenticate()
[Fri Feb 26 22:46:26.260727 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 378, in authenticate
[Fri Feb 26 22:46:26.260733 2016] [:error] [pid 3693:tid 140450594932480] magic_tuple = urlparse.urlsplit(self.auth_url)
[Fri Feb 26 22:46:26.260735 2016] [:error] [pid 3693:tid 140450594932480] File "/usr/lib/python2.7/urlparse.py", line 182, in urlsplit
[Fri Feb 26 22:46:26.260738 2016] [:error] [pid 3693:tid 140450594932480] i = url.find(':')
[Fri Feb 26 22:46:26.260740 2016] [:error] [pid 3693:tid 140450594932480] AttributeError: 'NoneType' object has no attribute 'find

Tags: liberty
shajuvk (shajuvk)
information type: Proprietary → Public
tags: added: liberty
Revision history for this message
Rahul (rahuls) wrote :

Seems to be failing in cinder quota gets. Is a storage provisioning issue?

Revision history for this message
Rahul (rahuls) wrote :

Seems to be known provisioning issue that was fixed for Juno and kilo.

Revision history for this message
Ashish Ranjan (aranjan-n) wrote :

horizon expects cinder v2. If its already installed, it will work.

Revision history for this message
Jeya ganesh babu J (jjeya) wrote :

With openstack Kilo and >, horizon expects cinder v2 to be present or cinder v1 keystone service to be removed.

Current workaround - remove cinder from keystone endpoint and services.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/18002
Submitter: Jeya ganesh babu (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/18041
Submitter: Jeya ganesh babu (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/18041
Committed: http://github.org/Juniper/contrail-provisioning/commit/d5694dcf5c5a73adaad154964f8f5069e3d5a6d2
Submitter: Zuul
Branch: master

commit d5694dcf5c5a73adaad154964f8f5069e3d5a6d2
Author: Jeya ganesh babu J <email address hidden>
Date: Mon Feb 29 13:51:39 2016 -0800

Cinder/Storage provision issue fix in HA/kilo

Closes-Bug: #1547750
Closes-Bug: #1545774
Closes-Bug: #1550589

1. With Kilo, instead of v1 cinder, v2 cinder is created.
2. During upgrade storage, need to use the existing db password
instead of the new password.
3. Fixed issue related to lvm provisioning in storage for kilo
4. Fixed issue related to version check for cinder packages during
keystone service creation.

Change-Id: Iecb922d4f10a5feb300e481fb230f1f57fa97dd0

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/18236
Submitter: Jeya ganesh babu (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/18236
Committed: http://github.org/Juniper/contrail-provisioning/commit/0ab179cf815234e69bcdc5f1cae73d63817e757c
Submitter: Zuul
Branch: R3.0

commit 0ab179cf815234e69bcdc5f1cae73d63817e757c
Author: Jeya ganesh babu J <email address hidden>
Date: Mon Mar 7 17:00:17 2016 -0800

Cinder provision issue fix in liberty

Closes-Bug: #1550589

Fixed issue related to version check for cinder packages during
keystone service creation.

Change-Id: Ibe301f48fb564dd244f10ee63197dadafa7b21fb

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.