Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Python OPENSTACK-SDK Script attach volume arguments

I found conn.compute,create_volume_attachment as the python openstack sdk command

BUT, I can not find the attributes to put into the command I have the instance[id] and volume[id] and device, but it needs a set of parameters names or something:

vol_arg {   "volume_id" : " 0000-1111-2222-3333-4444" , "device" : "/dev/sdc"}
conn.compute.create_volume_attachment("9999-8888-7777-6666-5555-4444", **vol_args)

where the 9999---- is the instance id.

ANY SUGGESTIONS on the correct PYTHON command or correct parameters to use would be greatly appreciated.