2016-09-14 08:09:41 |
Janice-Chen |
description |
Trove cluster-create service can not get the 'volume_type' value even specifies the volume_type when create a cluster using 'trove cluster-create' command.
Test Cli View:
trove cluster-create ClusterName mongodb mongodb-3.2 \
--instance "flavor=flavorId,volume=10,volume_type=ssd,nic='net-id=NetID'" \
--instance "flavor=flavorId,volume=10,volume_type=ssd,nic='net-id=NetID'" \
--instance "flavor=flavorId,volume=10,volume_type=ssd,nic='net-id=NetID'" |
Trove cluster-create service can not get the 'volume_type' value even specifies the volume_type when create a cluster using 'trove cluster-create' command.
Test Cli View:
trove cluster-create ClusterName mongodb mongodb-3.2 \
--instance "flavor=flavorId,volume=10,volume_type=ssd,nic='net-id=NetID'" \
--instance "flavor=flavorId,volume=10,volume_type=ssd,nic='net-id=NetID'" \
--instance "flavor=flavorId,volume=10,volume_type=ssd,nic='net-id=NetID'"
The bug is a clear error in the code.I found that python-troveclient describe volume_type in its request body with the key 'type' while trove cluster_create cli parsing with the key "volume_type".cluster_create cli will never get the specified volume_type in current codes.
This bug also affects bug:https://bugs.launchpad.net/trove/+bug/1622957,but can not resolve it. |
|