create_server: Couldn't specify the volume type when booting an image from volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstacksdk |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using a higher-level cloud layer for creating a server, and I want to specify the volume type with boot_from_volume option.
My desired `block_
[{
'source_type': 'image',
'uuid': image_id,
'boot_index': '0',
'volume_size': 'volume_size,
'destinatio
'delete_
'volume_
}]
But ComputeCloudMix
[{
'source_type': 'image',
'uuid': image_id,
'boot_index': '0',
'volume_size': 'volume_size,
'destinatio
'delete_
}]
-> No `volume_type` specified and the default one being used.
---------
conn = openstack.
conn.create_server(
image=image_id,
boot_
volume_
terminate_
name=hostname,
nics=nics,
flavor=
availabilit
userdata=
meta=metadata
)
---------
To specify the volume type I can't use the high-level layer and should do like this :
---------
conn = openstack.
conn.compute.
block_
name=hostname,
networks=
flavorRef=
availabilit
user_
metadata=
)
----------
It would be great if I can specify the `volume_type` for cloud layer's create_server().
description: | updated |