Ask Your Question
2

Can't attach cinder volume to vm instance?

asked 2014-02-24 03:06:11 -0500

RHK gravatar image

Dears,

I created cinder volume,

root@controller:~# cinder create --image-id 60fca890-7195-4acc-aedf-b58a502da79f --display-name cinder-volume1 10 root@controller:~# cinder list +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+----------+----------+------------+------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+----------+----------+------------+--------------+ | dee58ceb-3234-4b58-8c12-f2e2d316284d | available | cinder-volume1 | 10 | None | true | | +--------------------------------------+-----------+----------------+------+-------------+----------+------+---------+-----------+----------+----------+----------+

nova volume-attach $vm_id $volume_id auto

The status is showing same, Its not attaching to Vm Instance.

root@controller:~# cinder list +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+---------+----------+-----------+--------+----------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+----------------+------+-------------+----------+-------------+----------+---------+------------+--------------------+ | dee58ceb-3234-4b58-8c12-f2e2d316284d | available | cinder-volume1 | 10 | None | true | | +--------------------------------------+-----------+----------------+------+-------------+----------+---------+---------+----------+----------+--------------+--------+

I also check the cinder volume logs there is no error.

cinder_volume logs:

2014-02-24 14:24:04.622 27809 INFO cinder.volume.manager [req-8ad24059-6f98-4d21-9e72-01b4cec0e38f None None] Updating volume status 2014-02-24 14:24:04.709 27809 INFO cinder.openstack.common.rpc.common [req-8ad24059-6f98-4d21-9e72-01b4cec0e38f None None] Connected to AMQP server on localhost:5672 2014-02-24 14:24:44.720 27809 INFO cinder.volume.manager [req-9c4b25e9-e908-49c5-854a-70939f543e3f None None] Updating volume status 2014-02-24 14:25:44.823 27809 INFO cinder.volume.manager [-] Updating volume status 2014-02-24 14:26:44.941 27809 INFO cinder.volume.manager [-] Updating volume status 2014-02-24 14:27:45.062 27809 INFO cinder.volume.manager [-] Updating volume status 2014-02-24 14:28:45.193 27809 INFO cinder.volume.manager [-] Updating volume status

From where i need to start trouble shoot this issue. In logs also i can't see any issues. Please help me to solve this issue.

Is it possible to attach cinder volume for running VM Instance in openstack havana?

Regards, RHK

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-26 00:31:54 -0500

Vinoth gravatar image

We can attach volume to any vm only if it is in running state. Try attaching the instance after restarting the tgt service and other cinder service.

service cinder-scheduler restart

service cinder-api restart

service cinder-volume restart

service tgt restart

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: 2014-02-24 03:06:11 -0500

Seen: 2,409 times

Last updated: Sep 26 '14