openstack server add volume does not attach any volume to the VM

asked 2017-03-22 05:58:40 -0600

Prakash R gravatar image

I am trying to attach a volume to VM using "openstack server add volume" CLI, but it is not getting attached.

root@Dallas:/home/user1# openstack server add volume user2_r1_topo1-rp1-21 vol1
root@Dallas:/home/user1# nova show user2_r1_topo1-rp1-21 | grep volume
| os-extended-volumes:volumes_attached | [{"id": "dce8cc46-c4f6-4480-aa76-09474f5324a8", "delete_on_termination": false}] |

This association is lost after few seconds

root@Dallas:/home/user1# nova show user2_r1_topo1-rp1-21 | grep volume 
| os-extended-volumes:volumes_attached | []

Could someone please let me know if I am missing anything ?

edit retag flag offensive close merge delete

Comments

1

When you add the --debug option to the "add volume" command, it should give you a request ID of the form req-<long hex="" string="">. Use this ID to search for errors or other clues in the log files. I would start with the nova-compute and cinder-api logs.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-22 22:10:51 -0600 )edit