Activity log for bug #1667266

Date Who What changed Old value New value Message
2017-02-23 10:04:54 Rui Chen bug added bug
2017-02-23 10:05:07 Rui Chen python-openstackclient: assignee Rui Chen (kiwik-chenrui)
2017-02-24 09:26:41 Rui Chen description There are some issues in "--block-device-mapping" options of "server create" commands. 1. ValueError is raised if input don't contain "=". Sometimes the whole "server create" command is very complex, it's difficult to find out root reason directly, like this: (openstack) server create --image cirros-0.3.5-x86_64-disk --flavor m1.tiny --nic net-id=d73b6234-91ff-466e-8b5d-141aa9b48ac8 --block-device-mapping vdb0ac9844f-2122-47a4-9a1b-676c59cdd662 chenrui_vm need more than 1 value to unpack (openstack) 2. If input "vdb=", not add any mapping information, the server will be launched successfully, not raise error message to let use add volume/snapshot id, just ignore "--block-device-mapping" option (openstack) server create --image cirros-0.3.5-x86_64-disk --flavor m1.tiny --nic net-id=d73b6234-91ff-466e-8b5d-141aa9b48ac8 --block-device-mapping vdb= chenrui_vm ... 3. The help message of "block-device-mapping" option is so simple, need to add some details about how to add <type>, <delete_on_terminate> contains. --block-device-mapping <dev-name=mapping> Map block devices; map is <id>:<type>:<size(GB)>:<delete_on_terminate> (optional extension) There are some issues in "--block-device-mapping" options of "server create" commands. 1. ValueError is raised if input don't contain "=". Sometimes the whole "server create" command is very complex, it's difficult to find out root reason directly, like this: (openstack) server create --image cirros-0.3.5-x86_64-disk --flavor m1.tiny --nic net-id=d73b6234-91ff-466e-8b5d-141aa9b48ac8 --block-device-mapping vdb0ac9844f-2122-47a4-9a1b-676c59cdd662 chenrui_vm need more than 1 value to unpack (openstack) 2. Don't support to add block device from snapshot, like: --block-device-mapping vdb=0c8ae9d8-cadc-4a23-8337-4254614d277e:snapshot:1, it's supported by novaclient, but not in osc. (openstack) volume snapshot list +--------------------------------------+--------------+-------------+-----------+------+ | ID | Name | Description | Status | Size | +--------------------------------------+--------------+-------------+-----------+------+ | 0c8ae9d8-cadc-4a23-8337-4254614d277e | chenrui_snap | None | available | 1 | +--------------------------------------+--------------+-------------+-----------+------+ (openstack) server create --image cirros-0.3.5-x86_64-disk --flavor m1.tiny --block-device-mapping vdb=0c8ae9d8-cadc-4a23-8337-4254614d277e:snapshot:1 chenrui_v No volume with a name or ID of '0c8ae9d8-cadc-4a23-8337-4254614d277e' exists. (openstack) 3. If input "vdb=", not add any mapping information, the server will be launched successfully, not raise error message to let use add volume/snapshot id, just ignore "--block-device-mapping" option (openstack) server create --image cirros-0.3.5-x86_64-disk --flavor m1.tiny --nic net-id=d73b6234-91ff-466e-8b5d-141aa9b48ac8 --block-device-mapping vdb= chenrui_vm ... 4. The help message of "block-device-mapping" option is so simple, need to add some details about how to add <type>, <delete_on_terminate> contains.   --block-device-mapping <dev-name=mapping>                         Map block devices; map is                         <id>:<type>:<size(GB)>:<delete_on_terminate> (optional                         extension)
2017-02-25 03:40:50 OpenStack Infra python-openstackclient: status New In Progress
2017-05-22 20:41:47 OpenStack Infra python-openstackclient: status In Progress Fix Released