[horizon] Can not get info about stack operation events

Bug #1479803 reported by Anastasia Kuznetsova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Timur Sufiev

Bug Description

Steps to reproduce:
1. Log in web UI
2. Navigate to "Project" > "Orchestration" > "Stacks"
3. Click on "+ Launch Stack"
4. Create some stack
5. After stack creation, go to "Events" tab
6. Here there is a list of stack events: events related to stack resources (value in Stack Resource column = name of resource from template) and events related to stack operation (value in Stack Resource column = name of stack)
7. Click on Stack Resource that equal to stack name

Observed result:
Following error message in UI: Error: Unable to retrieve resource.

horizon.log
2015-07-30 13:30:40,379 6112 DEBUG heatclient.common.http curl -g -i -X GET -H 'X-Auth-Token: {SHA1}f5237ee7eb625c6ede2c1f862461905e80f76019' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' http://172.18.92.101:8004/v1/2de9c834aa134ca98113f572626a67bd/stacks/server_with_volumes%2F821d7944-ec80-466c-842d-321337d7ab00/resources/server_with_volumes
2015-07-30 13:30:40,531 6112 DEBUG heatclient.common.http
HTTP/1.1 404 Not Found
date: Thu, 30 Jul 2015 13:30:40 GMT
connection: close
content-type: application/json; charset=UTF-8
content-length: 655
x-openstack-request-id: req-040e7cc2-aba4-4c48-8e1d-b988eb916a6d

{"explanation": "The resource could not be found.", "code": 404, "error": {"message": "The Resource (server_with_volumes) could not be found in Stack server_with_volumes.", "traceback": "Traceback (most recent call last):\n\n File \"/usr/lib/python2.7/dist-packages/heat/common/context.py\", line 300, in wrapped\n return func(self, ctx, *args, **kwargs)\n\n File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 1107, in describe_stack_resource\n stack_name=stack.name)\n\nResourceNotFound: The Resource (server_with_volumes) could not be found in Stack server_with_volumes.\n", "type": "ResourceNotFound"}, "title": "Not Found"}

2015-07-30 13:30:40,531 6112 ERROR horizon.exceptions Not Found: ERROR: The Resource (server_with_volumes) could not be found in Stack server_with_volumes.
Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/stacks/views.py", line 329, in get_data
    kwargs['resource_name'])
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/heat.py", line 122, in resource_get
    return heatclient(request).resources.get(stack_id, resource_name)
  File "/usr/lib/python2.7/dist-packages/heatclient/v1/resources.py", line 61, in get
    resp, body = self.client.json_request('GET', url_str)
  File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 265, in json_request
    resp = self._http_request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 220, in _http_request
    raise exc.from_response(resp)
HTTPNotFound: ERROR: The Resource (server_with_volumes) could not be found in Stack server_with_volumes.
2015-07-30 13:30:40,553 6113 DEBUG heatclient.common.http curl -g -i -X GET -H 'X-Auth-Token: {SHA1}f5237ee7eb625c6ede2c1f862461905e80f76019' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' http://172.18.92.101:8004/v1/2de9c834aa134ca98113f572626a67bd/stacks?sort_dir=desc&sort_key=created_at&limit=21
2015-07-30 13:30:40,663 6113 DEBUG heatclient.common.http
HTTP/1.1 200 OK
date: Thu, 30 Jul 2015 13:30:40 GMT
connection: close
content-type: application/json; charset=UTF-8
content-length: 1894
x-openstack-request-id: req-b79bdd22-be7e-4cff-988f-fd4ec889059f

Problem is that stack itself is not a resource, so it is incorrect to try to redirect to Resource Details page.

Tags: horizon
Changed in mos:
status: New → Confirmed
importance: Undecided → High
Timur Sufiev (tsufiev-x)
Changed in mos:
assignee: MOS Horizon (mos-horizon) → Timur Sufiev (tsufiev-x)
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/10142

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/horizon (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/10142
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: afac07dcc4f5820ccbd164a3176160a0e84187c0
Author: Timur Sufiev <email address hidden>
Date: Thu Aug 6 10:09:44 2015

In Stack Details do not display as links events leading to nowhere

Events that correspond to stack operations have the name equal the
stack name itself, so the link which is meant to point to some
resource description, points to nowhere for them. Better not render
the link at all.

Change-Id: I2d25af7082d677061724d9b81c6583458fed483f
Closes-Bug: #1479803

Timur Sufiev (tsufiev-x)
Changed in mos:
status: Confirmed → Fix Committed
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/10691

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/horizon (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/10691
Submitter: mos-infra-ci <>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: 7882e3161b0d6f569f2f5ce549fdc90d0430127d
Author: Timur Sufiev <email address hidden>
Date: Mon Aug 24 13:48:22 2015

In Stack Details do not display as links events leading to nowhere

Events that correspond to stack operations have the same physical id
as the stack has itself (and the same name), so the link which is
meant to point to some resource description, points to nowhere for
them. Better not render such links at all.

Change-Id: Ia584404fa93d5bc4d55a1393a7b988ab05b9a012
Related-Bug: #1488083
Closes-Bug: #1479803

tags: added: on-verification
Revision history for this message
Alexander Bochkarev (abochkarev) wrote :

Verified with fuel-7.0-257-2015-08-30_17-23-00.iso

tags: removed: on-verification
Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (openstack-ci/fuel-8.0/liberty)

Fix proposed to branch: openstack-ci/fuel-8.0/liberty
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/13365

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote :

Fix proposed to branch: openstack-ci/fuel-8.0/liberty
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/13378

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/horizon (openstack-ci/fuel-8.0/liberty)

Change abandoned by Timur Sufiev <email address hidden> on branch: openstack-ci/fuel-8.0/liberty
Review: https://review.fuel-infra.org/13378
Reason: Superseded with https://review.fuel-infra.org/#/c/13697/

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote :

Change abandoned by Timur Sufiev <email address hidden> on branch: openstack-ci/fuel-8.0/liberty
Review: https://review.fuel-infra.org/13365
Reason: Superseded with https://review.fuel-infra.org/#/c/13697/

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/horizon (openstack-ci/fuel-8.0/liberty)

Reviewed: https://review.fuel-infra.org/13697
Submitter: Pkgs Jenkins <email address hidden>
Branch: openstack-ci/fuel-8.0/liberty

Commit: b382378beed5205475fb6503b1b53d4e4f7dadbf
Author: Timur Sufiev <email address hidden>
Date: Tue Nov 24 12:24:32 2015

In Stack Details do not display as links events leading to nowhere

Events that correspond to stack operations have the same physical id
as the stack has itself (and the same name), so the link which is
meant to point to some resource description, points to nowhere for
them. Better not render such links at all.

Change-Id: I2cff8efacbc00bed2989e5d4afee0690e712ad66
Closes-Bug: #1479803

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.