← Back to team overview

openstack team mailing list archive

Re: Essex horizon dashboard - volume snapshot issue

 

Thanks for the reply.
I am using Essex released version (2012-1 that was released in april). Here are the outputs of  nova command
 
$ nova volume-snapshot-list
+----+-----------+-----------+----------------------+------+
| ID | Volume ID |   Status  |     Display Name     | Size |
+----+-----------+-----------+----------------------+------+
| 2  | 4         | available | test-volume-snapshot | 1    |
+----+-----------+-----------+----------------------+------+
$ nova volume-snapshot-show 2
+---------------------+----------------------+
|       Property      |        Value         |
+---------------------+----------------------+
| created_at          | 2012-05-19 01:22:57  |
| display_description |                      |
| display_name        | test-volume-snapshot |
| id                  | 2                    |
| size                | 1                    |
| status              | available            |
| volume_id           | 4                    |
+---------------------+----------------------+
 
However, when I try to attach the snapshot to a running instance , then I get resource could not be found error. May be volume snapshot create did not actually create a copy of the volume.
 
$ nova --debug volume-attach 7dd2e3cb-70c6-44aa-8976-967eef519752 2 /dev/vdb
 
send: u'POST /v2/6672d2141fe4454e87fad2ba19223327/servers/7dd2e3cb-70c6-44aa-8976-967eef519752/os-volume_attachments HTTP/1.1\r\nHost:                        16.77.8.231:8774\r\nContent-Length: 59\r\nx-auth-project-id: openstackDemo\r\naccept-encoding: gzip, deflate\r\naccept: application/j                       son\r\nx-auth-token: 9053bb1410a742b2aaa42a7ec1539180\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"volumeAttachment": {"device": "/dev/vdb", "volumeId": 2}}'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Content-Length: 78
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-Request-Id: req-8ac705cc-8531-4353-9d9f-1e4083570c20
header: Date: Sat, 19 May 2012 13:43:53 GMT
DEBUG (shell:416) The resource could not be found. (HTTP 404)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2012.1-py2.7.egg/novaclient/shell.py", line 413, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2012.1-py2.7.egg/novaclient/shell.py", line 364, in main
    args.func(self.cs, args)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2012.1-py2.7.egg/novaclient/v1_1/shell.py", line 927, in do_volume_at                       tach
    args.device)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2012.1-py2.7.egg/novaclient/v1_1/volumes.py", line 103, in create_ser                       ver_volume
    body, "volumeAttachment")
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2012.1-py2.7.egg/novaclient/base.py", line 157, in _create
    resp, body = self.api.client.post(url, body=body)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2012.1-py2.7.egg/novaclient/client.py", line 139, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2012.1-py2.7.egg/novaclient/client.py", line 124, in _cs_request
    **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2012.1-py2.7.egg/novaclient/client.py", line 107, in request
    raise exceptions.from_response(resp, body)
NotFound: The resource could not be found. (HTTP 404)
ERROR: The resource could not be found. (HTTP 404)

Thanks,
-vj
 
----- Forwarded Message -----
From: John Griffith <john.griffith@xxxxxxxxxxxxx>
To: vijayrg@xxxxxxxxx 
Cc: openstack@xxxxxxxxxxxxxxxxxxx 
Sent: Friday, May 18, 2012 10:31 PM
Subject: Re: [Openstack] Essex horizon dashboard - volume snapshot issue

On Fri, May 18, 2012 at 7:54 PM, Vijay <vijayrg@xxxxxxxxx> wrote:
> Hello,
> On Essex Dashboard, I am able to create a snapshot of a volume successfully. However, when I click on the volume snapshot to look at the details, I get "Error: Unable to retrieve volume details". This error occurs only when retrieving the details of volume snapshots only. The volume details of the volume created from the scratch shows up correctly.
>
> Also, on the horizon dashboard, there is no option to attach the volume snapshot to any running instance. I see only delete snapshot option. If it is by design, then, how is volume snapshot is going to be used?
>
> Any help is appreciated.
>
> Thanks,
> -vj
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp

Hi VJ,

I believe you may have discovered a bug in the current version of
code.  Are you using the latest Folsom version (ie devstack)?  Check
your Horizon logs and you'll notice a number of errors when trying to
perform this operation.  Perhaps some Horizon folks here have some
knowledge of this, otherwise I can look into it further next week and
file a bug if necessary.

Meanwhile, you can use python-novaclient to perform a 'nova
volume-snapshot-show' which is the information that would be reported
from the Horizon details page you're trying to retrieve.

Thanks,
John

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to    : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help  : https://help.launchpad.net/ListHelp

References