Validate coe field before processing requests

Bug #1470963 reported by hongbin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
hongbin

Bug Description

Pod/Service/RC should be used when bay type is "kubernetes", and Contaner should be used when bay type is "swarm". If the bay type is not right, Magnum should reject the request instead of processing it.

hongbin (hongbin034)
Changed in magnum:
assignee: nobody → hongbin (hongbin034)
Revision history for this message
Amey Bhide (abhide) wrote :

I guess this is what you are referring to?

magnum baymodel-create --name k8sbaymodel --image-id fedora-21-atomic-3 \
> --keypair-id testkey \
> --external-network-id $NIC_ID \
> --dns-nameserver 8.8.8.8 --flavor-id m1.small \
> --docker-volume-size 5 --coe xxx
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| fixed_network | None |
| apiserver_port | None |
| uuid | a9bd8caf-db92-4608-9fca-0bb34f52ddd9 |
| external_network_id | 9367926e-3fe3-41a0-ac19-89a0b4cc733b |
| created_at | 2015-07-03T00:18:50.983407+00:00 |
| updated_at | None |
| cluster_distro | fedora-atomic |
| name | k8sbaymodel |
| ssh_authorized_key | None |
| image_id | fedora-21-atomic-3 |
| coe | xxx |
| keypair_id | testkey |
| master_flavor_id | None |
| flavor_id | m1.small |
| dns_nameserver | 8.8.8.8 |
| docker_volume_size | 5 |
+---------------------+--------------------------------------+

Changed in magnum:
status: New → In Progress
Revision history for this message
Manjeet Singh Bhatia (manjeet-s-bhatia) wrote :

I was about to report this as bug but found a duplicate one. It should validate coe argument and only process if its either kubernetes or swarm.

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
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.