Comment 4 for bug 1666621

Revision history for this message
Vitalii Gridnev (vgridnev) wrote :

When you use json to create node group you should use the following:

{
  'volume_type': ..

}
because that just exposes API interface: https://github.com/openstack/python-saharaclient/blob/master/saharaclient/api/node_group_templates.py#L32

but when you don't have json, you should use something like that:

openstack .. --volumes-type ceph --volumes-size 1

that was done to have the same prefix for arguments related to volumes.

https://github.com/openstack/python-saharaclient/blob/master/saharaclient/osc/v1/node_group_templates.py#L260

So, I agreed that this probably introduces some confusion and we should take a look on this and fix that in APIv2 (to have the same pattern of arguments in API).