Can't Create Volume for Instance: Volume Status Showing Error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Guys,
Kindly assist me to look into this issue. I am trying to create a volume which is to be attached to an instance. The volume was created with an error status. I tried to update the metadata and successfully change the status to available but could still not attach it to an instance (I know it is not advisable to do this). I am running on Ubuntu 16.04 with Openstack Pike.
Cinder scheduler and volume are both up on my controller node after a lot of issues as shown below:
Openstack volume service list
+------
| Binary | Host | Zone | Status | State | Updated At |
+------
| cinder- | controller | nova | enabled | up | 2018-02-01T17:1 |
| scheduler | | | | | 2:12.000000 |
| cinder-volume | blockstorage@lv | nova | enabled | up | 2018-02-01T17:1 |
| | m | | | | 2:21.000000 |
+------
Dashboard Showing the status of the volume:
Displaying 1 item
Name Description Size Status Type Attached To Availability Zone Bootable Encrypted Actions
data_volume - 5GiB Error - nova No No
Displaying 1 item
However, pvcreate command for preparing storage device on my storage node(as seen in the installation guide) is not working. In the process of creating volume from my Dashboard, I observed that the device location should be /dev/vdb or /dev/vda depending on which instance is selected for attachment. Unfortunately, none of these devices is available on my storage node as I only have sda1, sd2, sd5(Type: Linux LVM). I guess this might be where my issue is but I will appreciate if you can guide me.
I have attached a file containing the two relevant logs to this ticket: /var/log/
Changed in cinder: | |
status: | New → Incomplete |
Looks like you may have a configuration error:
ImportError: Class LVMISCSIDriver cannot be found
Also, your statement of "pvcreate command for preparing storage device on my storage node ... is not working" is a concern. If you can't even create the LVM for Cinder to use, neither Cinder nor Nova are even interesting to look at at that point.
The /dev/vd* devices are what show up in virtual machine instances. On the compute host they will be the normal /dev/sd* devices.