Python OPENSTACK-SDK Script attach volume arguments

asked 2018-08-21 19:57:48 -0500

jjrruu gravatar image

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.

edit retag flag offensive close merge delete

Comments

mistyped *vol_args in the command, should show as *vol_arg.

have tried many variations of arguments to no avail. Need to know if the command is even legit since I only find it and have pure access through the PYTHON api.

jjrruu gravatar imagejjrruu ( 2018-08-21 20:00:07 -0500 )edit