Installing and configuring Cinder: connection to loopback device is ephemeral
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Medium
|
Anne Gentle |
Bug Description
@ http://
A problem I found when I reboot the node.
The association between the loop-back device and the backing file (see command sudo losetup /dev/loop2 cinder-volumes) 'disappears' when you reboot the node.
This results in errors in cinder-volume daemon that crashes with a nasty traceback:
2012-11-13 13:49:17 1680 TRACE cinder self.manager.
2012-11-13 13:49:17 1680 TRACE cinder File "/usr/lib/
2012-11-13 13:49:17 1680 TRACE cinder self.driver.
2012-11-13 13:49:17 1680 TRACE cinder File "/usr/lib/
2012-11-13 13:49:17 1680 TRACE cinder raise exception.
2012-11-13 13:49:17 1680 TRACE cinder VolumeBackendAP
In order to prevent this problem, I found a solution as follows:
1) create a script file named "/etc/init.
2) In the file, write the following code:
# This script associates the backing file created for implementing cinder's volume group to /dev/loop2
losetup /dev/loop2 /var/lib/
exit 0
3) Make the file executable with command:
sudo chmod 755 /etc/init.
4) create a link to the just created file so that it is executed when the node reboots:
sudo ln -s /etc/init.
I suggest to report this or similar instructions as notes in the document.
====
Note: it's fundamental that the name of the backing file in the script you create is fully qualified (directory and filename). In the example above I used /var/lib/
Changed in openstack-manuals: | |
assignee: | nobody → koolhead17 (koolhead17) |
Changed in openstack-manuals: | |
assignee: | koolhead17 (koolhead17) → Anne Gentle (annegentle) |
Changed in openstack-manuals: | |
status: | Triaged → In Progress |
Hi Marco,
Perhaps this bug should be fixed in Cinder too?