Unable to view the details of the volume snapshot

Bug #1005806 reported by Vincent Hou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Gabriel Hurley

Bug Description

When I click a volume snapshot created from a volume, it directs me to a page with error message. Please refer to the picture.

Revision history for this message
Vincent Hou (houshengbo) wrote :
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

This indicates that an error occurred in novaclient/cinderclient while trying to fetch the volume in the view. Without the error logs there's no way to debug this issue.

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
status: New → Incomplete
Revision history for this message
Vincent Hou (houshengbo) wrote :

Hi Gabriel. I am using devstack and the code is from the master. I have been aware of what you say, but there is no error message from the logs provided by devstack script. Could you tell me how to check the log of novaclient/cinderclient in devstack environment?

Revision history for this message
Jay Pipes (jaypipes) wrote :

Hi Vincent,

By default devstack does not log to files ... instead, it logs to the screen session's window for the project. So, if you do:

screen -x

You should be able to see all the OpenStack services in different screen windows... though you will only be able to see the last screen of information and not able to scroll back.

To enable file-based logging with devstack, you can set the:

SCREEN_LOGDIR = /path/to/some/dir

option in your localrc file and then run stack.sh again. The services will then also get logged to files in that directory.

Best,
-jay

Revision history for this message
Vincent Hou (houshengbo) wrote :

Thank you so much, Jay. I will try it.

Revision history for this message
Vincent Hou (houshengbo) wrote :
Download full text (7.0 KiB)

This is the log I received for clicking a snapshot. Horizon was supposed to look for the snapshot, but it tried to get the volume. Please take a look at it.

[Thu May 31 10:54:32 2012] [error] DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = 2a89d9bde872447b6e6f9df1ddbdd7a6 AND "django_session"."expire_date" > 2012-05-31 10:54:32.353306 ); args=('2a89d9bde872447b6e6f9df1ddbdd7a6', u'2012-05-31 10:54:32.353306')
[Thu May 31 10:54:32 2012] [error] DEBUG:horizon.api.nova:cinderclient connection created using token "69484923020349a5b12eb456dcd94a10" and url "http://9.119.148.215:8776/v1/8c0a91efa24d4f3c839d8297f9385206"
[Thu May 31 10:54:32 2012] [error] DEBUG:novaclient.client:REQ: curl -i http://9.119.148.215:8776/v1/8c0a91efa24d4f3c839d8297f9385206/volumes/63ef3a87-173e-411d-85ff-ef76f983c887 -X GET -H "X-Auth-Project-Id: 8c0a91efa24d4f3c839d8297f9385206" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 69484923020349a5b12eb456dcd94a10"
[Thu May 31 10:54:32 2012] [error]
[Thu May 31 10:54:32 2012] [error] DEBUG:novaclient.client:RESP:{'date': 'Thu, 31 May 2012 02:54:32 GMT', 'status': '404', 'content-length': '78', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-2ea2265a-656f-4456-ba5d-413aaebaa528'} {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}
[Thu May 31 10:54:32 2012] [error]
[Thu May 31 10:54:32 2012] [error] ERROR:horizon.exceptions:\x1b[31;1mNot Found: The resource could not be found. (HTTP 404) (Request-ID: req-2ea2265a-656f-4456-ba5d-413aaebaa528)\x1b[0m
[Thu May 31 10:54:32 2012] [error] Traceback (most recent call last):
[Thu May 31 10:54:32 2012] [error] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/dashboards/nova/instances_and_volumes/volumes/tabs.py", line 34, in get_context_data
[Thu May 31 10:54:32 2012] [error] volume = api.nova.volume_get(request, volume_id)
[Thu May 31 10:54:32 2012] [error] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/api/nova.py", line 485, in volume_get
[Thu May 31 10:54:32 2012] [error] return cinderclient(request).volumes.get(volume_id)
[Thu May 31 10:54:32 2012] [error] File "/opt/stack/python-novaclient/novaclient/v1_1/volumes.py", line 70, in get
[Thu May 31 10:54:32 2012] [error] return self._get("/volumes/%s" % volume_id, "volume")
[Thu May 31 10:54:32 2012] [error] File "/opt/stack/python-novaclient/novaclient/base.py", line 141, in _get
[Thu May 31 10:54:32 2012] [error] resp, body = self.api.client.get(url)
[Thu May 31 10:54:32 2012] [error] File "/opt/stack/python-novaclient/novaclient/client.py", line 137, in get
[Thu May 31 10:54:32 2012] [error] return self._cs_request(url, 'GET', **kwargs)
[Thu May 31 10:54:32 2012] [error] File "/opt/stack/python-novaclient/novaclient/client.py", line 125, in _cs_request
[Thu May 31 10:54:32 2012] [error] **kwargs)
[Thu May 31 10:54:32 2012] [error] File "/opt/stack/python-novaclient/novaclient/client.py", line 108, in request
[Thu May...

Read more...

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

That's trying to link to a "detail" page for the volume snapshot, which is not implemented. It's a carryover from the base table it inherits from there.

Changed in horizon:
importance: Undecided → Medium
milestone: none → folsom-2
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/8432
Committed: http://github.com/openstack/horizon/commit/155bfb72c1b5f866236928f4ffd0c2567dc556f3
Submitter: Jenkins
Branch: master

commit 155bfb72c1b5f866236928f4ffd0c2567dc556f3
Author: Gabriel Hurley <email address hidden>
Date: Mon Jun 11 18:27:00 2012 -0700

    Rollup of volume fixes.

      * Standardizes volume attachment wording.
      * Defensive coding for missing values in attachment dict.
        Fixes bug 1004412 and bug 1004337.
      * Adds polling to Snapshots and Volume Snapshots tables.
        Fixes bug 1005805.
      * Removes an erroneous link on the Volume Snapshots table.
        Fixes bug 1005806.
      * Correts the "type" property on the Images and Snapshots tables.
        Fixes bug 1011910.

    This seems to restore all supported functionality related to volumes using
    devstack master.

    Change-Id: Ie9b7aec06fa1bb7628cd854fb49c02aab14451ea

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: folsom-2 → 2012.2
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.