<div dir="ltr"><div><div><div><br></div>Just want to use ML to trigger more discussion here. There are now bugs/patches tracing this, but seems more discussions are needed before we come to a conclusion.<br><br><a href="https://bugs.launchpad.net/magnum/+bug/1453732">https://bugs.launchpad.net/magnum/+bug/1453732</a><br><a href="https://review.openstack.org/#/c/181839/">https://review.openstack.org/#/c/181839/</a><br><a href="https://review.openstack.org/#/c/181837/">https://review.openstack.org/#/c/181837/</a><br><a href="https://review.openstack.org/#/c/181847/">https://review.openstack.org/#/c/181847/</a><br><a href="https://review.openstack.org/#/c/181843/">https://review.openstack.org/#/c/181843/</a><br><br></div>IMHO, making the Bay/Baymodel name as a MUST will bring more flexibility to end user as Magnum also support operating Bay/Baymodel via names and the name might be more meaningful to end users.<br><p>Perhaps we can borrow some iead from nova, the concept in magnum can be mapped to nova as following:</p>
<p>1) instance => bay<br>
2) flavor => baymodel</p>
<p>So I think that a solution might be as following:<br>
1) Make name as a MUST for both bay/baymodel<br>
2) Update magnum client to use following style for bay-create and baymodel-create: DO NOT add "--name" option</p>
<p>root@devstack007:/tmp# nova boot<br>
usage: nova boot [--flavor <flavor>] [--image <image>]<br>
[--image-with <key=value>] [--boot-volume <volume_id>]<br>
[--snapshot <snapshot_id>] [--min-count <number>]<br>
[--max-count <number>] [--meta <key=value>]<br>
[--file <dst-path=src-path>] [--key-name <key-name>]<br>
[--user-data <user-data>]<br>
[--availability-zone <availability-zone>]<br>
[--security-groups <security-groups>]<br>
[--block-device-mapping <dev-name=mapping>]<br>
[--block-device key1=value1[,key2=value2...]]<br>
[--swap <swap_size>]<br>
[--ephemeral size=<size>[,format=<format>]]<br>
[--hint <key=value>]<br>
[--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid>]<br>
[--config-drive <value>] [--poll]<br>
<name><br>
error: too few arguments<br>
Try 'nova help boot' for more information.<br>
root@devstack007:/tmp# nova flavor-create<br>
usage: nova flavor-create [--ephemeral <ephemeral>] [--swap <swap>]<br>
[--rxtx-factor <factor>] [--is-public <is-public>]<br>
<name> <id> <ram> <disk> <vcpus></p>Please show your comments if any.<br></div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thanks,<br><br></div>Jay Lau (Guangya Liu)<br></div></div></div></div>
</div></div></div></div>