Ask Your Question
0

Volume will not attach

asked 2012-05-23 16:42:47 -0500

Hello

I'm running openstack-nova.noarch 2012.1-4.el6 on a RHEL 6.2. I have the entire stack running on one node. All service are up and running and appear healthy.

My issue has to do with creating a volume. We've only attempted to create one volume so far. The horizon web interface displays an updating icon and says the volume is attaching. The nova commands display the following:

[root@open-stack1 red]# nova volume-list +----+-----------+--------------+------+-------------+-------------+ | ID | Status | Display Name | Size | Volume Type | Attached to | +----+-----------+--------------+------+-------------+-------------+ | 1 | attaching | None | 1 | None | | +----+-----------+--------------+------+-------------+-------------+ [root@open-stack1 red]# nova volume-show 1 +---------------------+---------------------+ | Property | Value | +---------------------+---------------------+ | attachments | [] | | availability_zone | nova | | created_at | 2012-05-11 18:25:29 | | display_description | None | | display_name | None | | id | 1 | | metadata | {} | | size | 1 | | snapshot_id | None | | status | attaching | | volume_type | None | +---------------------+---------------------+

As you can see its been attempting to attach since 5/11. One more additional piece of information. The nova-volumes LVM volume group was set up via losetup. Initially on reboot the nova-volume service would fail because "volume group nova-volumes doesn't exist". This occurred because the losetup configuration did not survive a reboot. We have since resolved that problem and the nova-volume service starts clean.

My question is how do I figure out what's wrong with the volume? I've gone through the logs and can't find anything indicating a problem. Looking at the api I cannot figure out anything that will provide more information than that provided above. How do we debug this?

Additionally, when I attempt to delete the volume from the web interface I get "Internal Server Error" as a response. I'll post details of that on the horizon question list.

Thanks Tom

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted
0

answered 2012-06-07 00:12:52 -0500

kj-tanaka gravatar image

Here's the link about the bug.

https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/996840 (https://bugs.launchpad.net/ubuntu/+so...)

edit flag offensive delete link more
0

answered 2012-06-05 17:49:41 -0500

kj-tanaka gravatar image

I can attach a volume if I attach one from Dashboard when I boot an instance. But if I detach it, I can't attach it again. I want to get some information from logs, but no luck... And euca-attach-volume doesn't work, with the same result...

Could anyone please give me a hint or something?

edit flag offensive delete link more
0

answered 2012-06-05 13:01:17 -0500

kj-tanaka gravatar image

I have the same problem. Nova's log doesn't provide good information, but libvirt log says like this.

Jun 5 08:56:31 i121 kernel: [ 278.760529] sd 4:0:0:1: Attached scsi generic sg2 type 0 Jun 5 08:56:31 i121 kernel: [ 278.761506] sd 4:0:0:1: [sdb] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB) Jun 5 08:56:31 i121 kernel: [ 278.762224] sd 4:0:0:1: [sdb] Write Protect is off Jun 5 08:56:31 i121 kernel: [ 278.762229] sd 4:0:0:1: [sdb] Mode Sense: 49 00 00 08 Jun 5 08:56:31 i121 kernel: [ 278.762749] sd 4:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jun 5 08:56:31 i121 kernel: [ 278.774284] sdb: unknown partition table Jun 5 08:56:31 i121 kernel: [ 278.775839] sd 4:0:0:1: [sdb] Attached SCSI disk

edit flag offensive delete link more
0

answered 2012-05-31 18:53:26 -0500

vishvananda gravatar image

yes, I would try again using the command line with a new volume and post the nova-volume logs and nova-compute logs when it fails. It is quite possible you have some config options set imporoperly.

edit flag offensive delete link more
0

answered 2012-05-31 14:04:37 -0500

Hello

This is still an issue for us. Is there some additional information I should provide? Am I missing something obvious>

Thanks Tom

edit flag offensive delete link more
0

answered 2012-05-23 16:59:32 -0500

Hello

Just providing link to related dashboard question: https://answers.launchpad.net/horizon/+question/198220 (https://answers.launchpad.net/horizon...)

Thanks Tom

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: 2012-05-23 16:42:47 -0500

Seen: 53 times

Last updated: Jun 07 '12