AttributeError when deploment is in progress

Bug #1334697 reported by Ana Krivokapić
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tuskar-ui
Fix Committed
High
Tzu-Mainn Chen

Bug Description

After initiating an overcloud deployment, the user gets redirected to /infrastructure/1/, but instead of displaying the deployment in progress page, an error occurs with the following traceback:

Traceback:
File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  113. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/horizon/decorators.py" in dec
  36. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py" in dec
  84. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py" in dec
  52. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/decorators.py" in dec
  36. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py" in view
  68. return self.dispatch(request, *args, **kwargs)
File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  86. return handler(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/tabs/views.py" in get
  71. context = self.get_context_data(**kwargs)
File "/opt/stack/tuskar-ui/tuskar_ui/infrastructure/overcloud/views.py" in get_context_data
  102. context = super(DetailView, self).get_context_data(**kwargs)
File "/opt/stack/horizon/horizon/tabs/views.py" in get_context_data
  56. exceptions.handle(self.request)
File "/opt/stack/horizon/horizon/tabs/views.py" in get_context_data
  54. context["tab_group"].load_tab_data()
File "/opt/stack/horizon/horizon/tabs/base.py" in load_tab_data
  120. exceptions.handle(self.request)
File "/opt/stack/horizon/horizon/tabs/base.py" in load_tab_data
  117. tab._data = tab.get_context_data(self.request)
File "/opt/stack/tuskar-ui/tuskar_ui/infrastructure/overcloud/tabs.py" in get_context_data
  99. 'dashboard_urls': plan.stack.dashboard_urls,
File "/opt/stack/horizon/openstack_dashboard/api/base.py" in __getattribute__
  81. return object.__getattribute__(self, attr)
File "/opt/stack/tuskar-ui/tuskar_ui/cached_property.py" in __get__
  60. res = instance.__dict__[self.func.__name__] = self.func(instance)
File "/opt/stack/tuskar-ui/tuskar_ui/api/heat.py" in dashboard_urls
  259. client = self.overcloud_keystone
File "/opt/stack/horizon/openstack_dashboard/api/base.py" in __getattribute__
  81. return object.__getattribute__(self, attr)
File "/opt/stack/tuskar-ui/tuskar_ui/cached_property.py" in __get__
  60. res = instance.__dict__[self.func.__name__] = self.func(instance)
File "/opt/stack/tuskar-ui/tuskar_ui/api/heat.py" in overcloud_keystone
  243. for output in self.outputs:
File "/opt/stack/horizon/openstack_dashboard/api/base.py" in __getattribute__
  86. return getattr(self._apiresource, attr)
File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/heatclient/openstack/common/apiclient/base.py" in __getattr__
  462. return self.__getattr__(k)
File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/heatclient/openstack/common/apiclient/base.py" in __getattr__
  464. raise AttributeError(k)

The error goes away after the stack creation completes, and the UI is after that functional again. It seems that trying to access the `overcloud_keystone` of `OvercloudStack` while the stack creation is in progress fails.

Changed in tuskar-ui:
assignee: nobody → Tzu-Mainn Chen (tzumainn)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tuskar-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/102928

Changed in tuskar-ui:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tuskar-ui (master)

Reviewed: https://review.openstack.org/102928
Committed: https://git.openstack.org/cgit/openstack/tuskar-ui/commit/?id=e108f6bbb55e0b2f557213e4c54c4a58ffd5f5fe
Submitter: Jenkins
Branch: master

commit e108f6bbb55e0b2f557213e4c54c4a58ffd5f5fe
Author: Tzu-Mainn Chen <email address hidden>
Date: Thu Jun 26 21:36:46 2014 +0200

    No longer assumes a stack has outputs

    A stack does not have outputs until its create finishes; however,
    some code assumed that the outputs existed during creation.

    Change-Id: I1e2941da39310f8c2fcad9c720093f52df239fa5
    Closes-Bug: #1334697

Changed in tuskar-ui:
status: In Progress → Fix Committed
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.