Ask Your Question
0

Why do I get "The resource could not be found" error trying to attach volume to Windows VM?

asked 2013-04-30 09:02:01 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm unable to attach a created volume to a windows vm. Attaching the same disk to a linux (debian squeeze) works perfect.

My Configuration: OpenStack: Folsom (installed on Ubuntu) Hypervisor: xenserver 6.0.2

what's wrong here (perhaps just the device name?)

Message output from cli calls:

root@mbisrv1001:/etc# nova show 697733bb-f2aa-4029-9944-8700ef20a5c5
+-------------------------------------+----------------------------------------------------------+
| Property                            | Value                                                    |
+-------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                   |
| OS-EXT-SRV-ATTR:host                | mbisrv1004                                               |
| OS-EXT-SRV-ATTR:hypervisor_hostname | mbivmh003                                                |
| OS-EXT-SRV-ATTR:instance_name       | secloud00010a                                            |
| OS-EXT-STS:power_state              | 1                                                        |
| OS-EXT-STS:task_state               | None                                                     |
| OS-EXT-STS:vm_state                 | active                                                   |
| accessIPv4                          |                                                          |
| accessIPv6                          |                                                          |
| config_drive                        |                                                          |
| created                             | 2013-04-08T08:23:54Z                                     |
| flavor                              | sql.medium (37)                                          |
| hostId                              | 53af415f4371158c91c08e235ab6f8ef44ad46fcc9e7933338534ace |
| id                                  | 697733bb-f2aa-4029-9944-8700ef20a5c5                     |
| image                               | Win2008R2V9 (bb6cccc7-41ad-47e1-96ee-d8f8f4712cfe)       |
| key_name                            | None                                                     |
| metadata                            | {}                                                       |
| name                                | bisrv1027                                                |
| progress                            | 100                                                      |
| public network                      | 159.144.20.33                                            |
| security_groups                     | [{u'name': u'default'}]                                  |
| status                              | ACTIVE                                                   |
| tenant_id                           | 666da2a3510348519fc2423a12c5a41c                         |
| updated                             | 2013-04-08T08:29:35Z                                     |
| user_id                             | c7b313aeced642dd93803a183e2199c3                         |
+-------------------------------------+----------------------------------------------------------+
root@mbisrv1001:/etc# nova volume-show ac8ade96-c34a-450d-9a03-100e69cc6dcb
+---------------------+--------------------------------------+
| Property            | Value                                |
+---------------------+--------------------------------------+
| attachments         | []                                   |
| availability_zone   | nova                                 |
| created_at          | 2013-04-30T13:45:23.000000           |
| display_description | my super duper iscsi disk            |
| display_name        | Testvol                              |
| id                  | ac8ade96-c34a-450d-9a03-100e69cc6dcb |
| metadata            | {}                                   |
| size                | 10                                   |
| snapshot_id         | None                                 |
| status              | available                            |
| volume_type         | None                                 |
+---------------------+--------------------------------------+
root@mbisrv1001:/etc# nova --debug volume-attach 697733bb-f2aa-4029-9944-8700ef20a5c5 ac8ade96-c34a-450d-9a03-100e69cc6dcb auto

REQ: curl -i http://172.29.24.21:8774/v2/3f2ac1522cb84f4699d6179df7a00f08/servers/697733bb-f2aa-4029-9944-8700ef20a5c5 -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 1323a5f06e7941be9a57413eb1e8f3cf"

connect: (172.29.24.21, 8774)
send: u'GET /v2/3f2ac1522cb84f4699d6179df7a00f08/servers/697733bb-f2aa-4029-9944-8700ef20a5c5 HTTP/1.1\r\nHost: 172.29.24.21:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 1323a5f06e7941be9a57413eb1e8f3cf\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-0a8ddbc4-9d50-4837-a5ef-3e4cdc50a712
header: Content-Type: application/json
header: Content-Length: 1434
header: Date: Tue, 30 Apr 2013 14:03:48 GMT
RESP:{'status': '200', 'content-length': '1434', 'content-location': u'http://172.29.24.21:8774/v2/3f2ac1522cb84f4699d6179df7a00f08/servers/697733bb-f2aa-4029-9944-8700ef20a5c5', 'x-compute-request-id': 'req-0a8ddbc4-9d50-4837-a5ef-3e4cdc50a712', 'date': 'Tue, 30 Apr 2013 14:03:48 GMT', 'content-type': 'application/json'} {"server": {"status": "ACTIVE", "updated": "2013-04-08T08:29:35Z", "hostId": "53af415f4371158c91c08e235ab6f8ef44ad46fcc9e7933338534ace", "OS-EXT-SRV-ATTR:host": "mbisrv1004", "addresses": {"public": [{"version": 4, "addr": "159.144.20.33"}]}, "links": [{"href": "http://172.29.24.21:8774/v2/3f2ac1522cb84f4699d6179df7a00f08/servers/697733bb-f2aa-4029-9944-8700ef20a5c5", "rel": "self"}, {"href": "http://172.29.24.21:8774/3f2ac1522cb84f4699d6179df7a00f08/servers/697733bb-f2aa-4029-9944-8700ef20a5c5", "rel": "bookmark"}], "key_name": null, "image": {"id": "bb6cccc7-41ad-47e1-96ee-d8f8f4712cfe", "links": [{"href": "http://172.29.24.21:8774/3f2ac1522cb84f4699d6179df7a00f08/images/bb6cccc7-41ad-47e1-96ee-d8f8f4712cfe", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "secloud00010a", "OS-EXT-SRV-ATTR:hypervisor_hostname": "mbivmh003", "flavor": {"id": "37", "links": [{"href": "http://172.29.24.21:8774/3f2ac1522cb84f4699d6179df7a00f08/flavors/37", "rel": "bookmark"}]}, "id": "697733bb-f2aa-4029-9944-8700ef20a5c5", "security_groups": [{"name": "default"}], "user_id": "c7b313aeced642dd93803a183e2199c3", "name": "bisrv1027", "created": "2013-04-08T08:23:54Z", "tenant_id": "666da2a3510348519fc2423a12c5a41c", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 100, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}


REQ: curl -i http://172.29.24.21:8774/v2/3f2ac1522cb84f4699d6179df7a00f08/servers/697733bb-f2aa-4029-9944-8700ef20a5c5/os-volume_attachments -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 1323a5f06e7941be9a57413eb1e8f3cf" -d '{"volumeAttachment": {"device": null, "volumeId": "ac8ade96-c34a-450d-9a03-100e69cc6dcb"}}'

send: u'POST /v2/3f2ac1522cb84f4699d6179df7a00f08/servers/697733bb-f2aa-4029-9944-8700ef20a5c5/os-volume_attachments HTTP/1.1\r\nHost: 172.29.24.21:8774\r\nContent-Length: 90\r\nx-auth-project-id: admin\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 1323a5f06e7941be9a57413eb1e8f3cf\r\nuser-agent: python-novaclient\r\ncontent-type: application/json ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-05-01 09:05:37 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Try specifying a device name, e.g.:

nova --debug volume-attach 697733bb-f2aa-4029-9944-8700ef20a5c5 ac8ade96-c34a-450d-9a03-100e69cc6dcb /dev/sdd

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-04-30 09:02:01 -0500

Seen: 2,272 times

Last updated: May 01 '13