Ask Your Question
0

cinder: fail to attach volume in kilo

asked 2015-07-20 01:25:05 -0500

kesaraw gravatar image

updated 2015-07-20 06:13:36 -0500

Hi openstack community,

I have installed openstack using the kilo distribution on CentOS 7.For that I'm using a single server and created VMs using KVM.(Storage node lies in a separate VM) I just followed the exact steps given in the yum guide for kilo. But when I try to attach the volumes to a cirros instance, volumes move to "attaching" status and after a while it turns again to "available" status.

My IP addresses controller node : 192.168.122.1 compute : 192.168.122.22 storage : 192.168.122.104

These are the logs when I try to attach the volume. COMPUTE NODE - /var/log/nova/nova-compute.log

d7658629-42a7-48d5-9386-977c86078dff] Attaching volume f1345e85-14d6-4966-b3b4-9028a39a7b99 to /dev/vdb
2015-07-20 10:15:19.546 12517 WARNING nova.virt.libvirt.volume [req-21a67cf6-181e-482d-85fc-4fd400b95919 b0a5e1d791754991b9ae680b508d5cf6 100087f85a07421ab32cb5146f0475b1 - - -] ISCSI volume not yet found at: vdb. Will rescan & retry.  Try number: 0
2015-07-20 10:15:20.606 12517 WARNING nova.virt.libvirt.volume [req-21a67cf6-181e-482d-85fc-4fd400b95919 b0a5e1d791754991b9ae680b508d5cf6 100087f85a07421ab32cb5146f0475b1 - - -] ISCSI volume not yet found at: vdb. Will rescan & retry.  Try number: 1
2015-07-20 10:15:24.684 12517 WARNING nova.virt.libvirt.volume [req-21a67cf6-181e-482d-85fc-4fd400b95919 b0a5e1d791754991b9ae680b508d5cf6 100087f85a07421ab32cb5146f0475b1 - - -] ISCSI volume not yet found at: vdb. Will rescan & retry.  Try number: 2
2015-07-20 10:15:31.847 12517 INFO nova.compute.resource_tracker [req-827fdefc-be0e-4496-88e6-9962e6476455 - - - - -] Auditing locally available compute resources for node compute.openstack
2015-07-20 10:15:32.000 12517 INFO nova.compute.resource_tracker [req-827fdefc-be0e-4496-88e6-9962e6476455 - - - - -] Total usable vcpus: 1, total allocated vcpus: 0
2015-07-20 10:15:32.000 12517 INFO nova.compute.resource_tracker [req-827fdefc-be0e-4496-88e6-9962e6476455 - - - - -] Final resource view: name=compute.openstack phys_ram=1840MB used_ram=2560MB phys_disk=17GB used_disk=11GB total_vcpus=1 used_vcpus=0 pci_stats=<nova.pci.stats.PciDeviceStats object at 0x4a26c10>
2015-07-20 10:15:32.038 12517 INFO nova.scheduler.client.report [req-827fdefc-be0e-4496-88e6-9962e6476455 - - - - -] Compute_service record updated for ('compute.openstack', 'compute.openstack')
2015-07-20 10:15:32.038 12517 INFO nova.compute.resource_tracker [req-827fdefc-be0e-4496-88e6-9962e6476455 - - - - -] Compute_service record updated for compute.openstack:compute.openstack
2015-07-20 10:15:33.769 12517 WARNING nova.virt.libvirt.volume [req-21a67cf6-181e-482d-85fc-4fd400b95919 b0a5e1d791754991b9ae680b508d5cf6 100087f85a07421ab32cb5146f0475b1 - - -] ISCSI volume not yet found at: vdb. Will rescan & retry.  Try number: 3
2015-07-20 10:15:49.838 12517 WARNING nova.virt.libvirt.volume [req-21a67cf6-181e-482d-85fc-4fd400b95919 b0a5e1d791754991b9ae680b508d5cf6 100087f85a07421ab32cb5146f0475b1 - - -] ISCSI volume not yet found at: vdb. Will rescan & retry.  Try number: 4
2015-07-20 10:16:14.925 12517 ERROR nova.virt.block_device [req-21a67cf6-181e-482d-85fc-4fd400b95919 b0a5e1d791754991b9ae680b508d5cf6 100087f85a07421ab32cb5146f0475b1 - - -] [instance: d7658629-42a7-48d5-9386-977c86078dff] Driver failed to attach volume f1345e85-14d6-4966-b3b4-9028a39a7b99 at /dev/vdb
2015-07-20 10:16:14.925 12517 TRACE nova.virt.block_device [instance: d7658629-42a7-48d5-9386-977c86078dff] Traceback (most recent call last):
2015-07-20 10:16:14.925 12517 TRACE nova.virt.block_device [instance: d7658629-42a7-48d5-9386-977c86078dff]   File "/usr/lib/python2.7/site-packages/nova/virt/block_device.py", line 253, in attach
2015-07-20 10:16:14.925 12517 TRACE nova.virt.block_device [instance: d7658629-42a7-48d5-9386-977c86078dff]     device_type=self['device_type'], encryption=encryption)
2015-07-20 10:16:14.925 12517 TRACE nova.virt.block_device [instance: d7658629-42a7-48d5-9386-977c86078dff]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1037, in attach_volume
2015-07-20 10:16:14.925 12517 TRACE nova.virt.block_device [instance: d7658629-42a7-48d5-9386-977c86078dff]     self._connect_volume(connection_info, disk_info)
2015-07-20 10:16:14.925 ...
(more)
edit retag flag offensive close merge delete

Comments

can you post your /etc/cinder/cinder.conf

omar-munoz gravatar imageomar-munoz ( 2015-07-21 15:36:08 -0500 )edit

you meant the cinder.conf in controller node or the storage node

kesaraw gravatar imagekesaraw ( 2015-07-22 01:21:33 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-22 01:38:14 -0500

kesaraw gravatar image

updated 2015-07-22 01:39:07 -0500

cinder.conf in controller http://pastebin.com/FEZFDMAd (link text)

in storage node http://pastebin.com/cCQd5nSE (link text)

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: 2015-07-20 01:25:05 -0500

Seen: 722 times

Last updated: Jul 22 '15