user create bay model specify external network id by any string

Bug #1468285 reported by Eli Qiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Opinion
Undecided
Eli Qiao

Bug Description

taget@taget-ThinkStation-P300:~/devstack$ magnum baymodel-create --name swarmbaymodel --image-id fedora-21-atomic-3 \
> --keypair-id testkey \
> --external-network-id $NIC_ID \
> --dns-nameserver 8.8.8.8 --flavor-id m1.small \
> --coe swarm
+---------------------+---------------------------------------------------------------------------------+
| Property | Value |
+---------------------+---------------------------------------------------------------------------------+
| fixed_network | None |
| apiserver_port | None |
| uuid | 8df43829-7c75-4f46-96ee-d813033e7bae |
| external_network_id | 112c4834-25f9-416f-a7fb-193ef68d8a44NIC_ID=112c4834-25f9-416f-a7fb-193ef68d8a44 |
| created_at | 2015-06-24T10:00:44.855319+00:00 |
| updated_at | None |
| cluster_distro | fedora-atomic |
| name | swarmbaymodel |
| ssh_authorized_key | None |
| image_id | fedora-21-atomic-3 |
| coe | swarm |
| keypair_id | testkey |
| master_flavor_id | None |
| flavor_id | m1.small |
| dns_nameserver | 8.8.8.8 |
| docker_volume_size | None |
+---------------------+---------------------------------------------------------------------------------+

external_network_id is a bad uuid, we need to refuse to create it.

Eli Qiao (taget-9)
Changed in magnum:
assignee: nobody → Eli Qiao (taget-9)
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
Revision history for this message
yatin (yatinkarel) wrote :

I think this bug is invalid(because both name and id are allowed to be pass for network), rather then this bug should be:
external_network_id should be changed to external_network because search/validation of network is done both with name and id. I will log a bug for this and fix it.

Changed in magnum:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.