Missing input validation on baymodel type value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Low
|
wangqun |
Bug Description
$ magnum baymodel-create --name swarmbaymodel \
> --image-id fedora-21-atomic-3 \
> --keypair-id testkey \
> --external-
> --dns-nameserver 8.8.8.8 \
> --flavor-id m1.small \
> --coe sw
+------
| Property | Value |
+------
| fixed_network | None |
| apiserver_port | None |
| docker_volume_size | None |
| image_id | fedora-21-atomic-3 |
| no_proxy | None |
| external_network_id | public |
| created_at | 2015-09-
| http_proxy | None |
| updated_at | None |
| cluster_distro | fedora-atomic |
| name | swarmbaymodel |
| ssh_authorized_key | None |
| https_proxy | None |
| registry_enabled | False |
| coe | sw |
| keypair_id | testkey |
| master_flavor_id | None |
| flavor_id | m1.small |
| dns_nameserver | 8.8.8.8 |
| uuid | 591f6ac0-
+------
coe is wrong one, we need to refuse to create it.
Changed in magnum: | |
assignee: | nobody → wangqun (bjwqun) |
Changed in magnum: | |
status: | New → In Progress |
summary: |
- Using unsupport coe can create the bay model + Missing input validation on baymodel type value |
Changed in magnum: | |
importance: | Undecided → Low |
Changed in magnum: | |
milestone: | none → mitaka-1 |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/228294 /git.openstack. org/cgit/ openstack/ magnum/ commit/ ?id=618f019f4d4 71bb2e05bfe813d 8551cb32a325c6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 618f019f4d471bb 2e05bfe813d8551 cb32a325c6
Author: Hongbin Lu <email address hidden>
Date: Mon Sep 28 00:00:17 2015 -0400
Introduce BayType that declares valid COEs
Restrict COE field to be one of 'kubernetes', 'swarm' and 'mesos'
Change-Id: I8967b1cd826c8c 22fa5c1d847776e 5e0dd65c629
Closes-Bug: #1497134