Name should be a required option when creating a baymodel
Bug #1453725 reported by
Haiwei Xu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-magnumclient |
New
|
Undecided
|
Unassigned |
Bug Description
Currently when creating a baymodel, name is not a required option. If name is not set, it will be 'None'
To post a comment you must log in.
Why must baymodels have names? Consider this as an example use case where a name is not needed:
stack@ao- magnum- metal:~ $ magnum baymodel-create --image-id fedora-21-atomic-3 \ network- id $NIC_ID \ volume- size 5 \ ------- ------- -+----- ------- ------- ------- ------- -----+ ------- ------- -+----- ------- ------- ------- ------- -----+ 1588-4b0b- 9e63-398e70360e 43 | 19da-4325- a370-d3163b4939 c3 | 12T05:43: 11.806645+ 00:00 | ------- ------- -+----- ------- ------- ------- ------- -----+ magnum- metal:~ $ magnum bay-create --name k8s_bay_ from_no_ name_baymodel --baymodel c4c7f2a2- 1588-4b0b- 9e63-398e70360e 43 --node-count 2 ------- ---+--- ------- ------- ------- ------- ------- + ------- ---+--- ------- ------- ------- ------- ------- + 8045-4483- a089-9b583c36f6 f1 | 12T05:43: 57+00:00 | 1588-4b0b- 9e63-398e70360e 43 | from_no_ name_baymodel | ------- ---+--- ------- ------- ------- ------- ------- + magnum- metal:~ $ magnum bay-show 2030b6c8- 8045-4483- a089-9b583c36f6 f1 ------- ---+--- ------- ------- ------- ------- ------- + ------- ---+--- ------- ------- ------- ------- ------- + 8045-4483- a089-9b583c36f6 f1 | 12T05:43: 57+00:00 | 12T05:44: 45+00:00 | 1588-4b0b- 9e63-398e70360e 43 |
> --keypair-id testkey \
> --external-
> --dns-nameserver 8.8.8.8 \
> --flavor-id m1.small \
> --docker-
> --coe kubernetes
+------
| Property | Value |
+------
| fixed_network | None |
| apiserver_port | None |
| uuid | c4c7f2a2-
| external_network_id | 032e1a94-
| created_at | 2015-05-
| updated_at | None |
| cluster_distro | fedora-atomic |
| name | None |
| ssh_authorized_key | None |
| image_id | fedora-21-atomic-3 |
| coe | kubernetes |
| keypair_id | testkey |
| master_flavor_id | None |
| flavor_id | m1.small |
| dns_nameserver | 8.8.8.8 |
| docker_volume_size | 5 |
+------
stack@ao-
+------
| Property | Value |
+------
| status | None |
| uuid | 2030b6c8-
| created_at | 2015-05-
| updated_at | None |
| api_address | None |
| baymodel_id | c4c7f2a2-
| node_count | 2 |
| node_addresses | [] |
| discovery_url | None |
| name | k8s_bay_
+------
stack@ao-
+------
| Property | Value |
+------
| status | CREATE_COMPLETE |
| uuid | 2030b6c8-
| created_at | 2015-05-
| updated_at | 2015-05-
| api_address | 172.24.4.122 |
| baymodel_id | c4c7f2a2-
...