When we create baymodel wth the invalid flavor parameter, the baymodel can be created successfully

Bug #1547345 reported by wangqun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Committed
Low
wangqun

Bug Description

Now, when we create baymodel with the invalid master_flavor _id and flavor_id parameter. the baymodel can be created successfully.

magnum baymodel-create --name swarmbaymodel \
--image-id fedora-21-atomic-5 \
--keypair-id testkey \
--external-network-id public \
--tls-disabled \
--dns-nameserver 8.8.8.8 \
--docker-volume-size 4 \
--network-driver flannel \
--flavor-id m1.magnu2m \
--coe swarm
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| http_proxy | None |
| updated_at | None |
| master_flavor_id | None |
| ssh_authorized_key | None |
| uuid | 19b690ae-3509-45e1-874f-31bb01|
| no_proxy | None |
| https_proxy | None |
| tls_disabled | True |
| keypair_id | testkey |
| public | False |
| labels | {} |
| docker_volume_size | 4 |
| server_type | vm |
| external_network_id | public |
| cluster_distro | fedora-atomic |
| image_id | fedora-21-atomic-5 |
| volume_driver | None |
| registry_enabled | False |
| apiserver_port | None |
| name | swarmbaymodel |
| created_at | 2016-02-19T06:25:49+00:00 |
| network_driver | flannel |
| fixed_network | None |
| coe | swarm |
| flavor_id | m1.magnu2m |
| dns_nameserver | 8.8.8.8 |
+---------------------+--------------------------------------+

wangqun (bjwqun)
Changed in magnum:
assignee: nobody → wangqun (bjwqun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/282199

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/282199
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=4d39d8cc94dc361dec4eb333a028d7b8e1bb35d2
Submitter: Jenkins
Branch: master

commit 4d39d8cc94dc361dec4eb333a028d7b8e1bb35d2
Author: wangqun <email address hidden>
Date: Fri Feb 19 06:15:43 2016 +0000

    Fix baymodel with invalid parameter can created.

    Now, when we create baymodel with the invalid flavor_id and
    master_flavor_id parameters, the baymodel can be created
    successfully.

    We need to validate the flavor_id and master_flavor before
    creating baymodel.

    Change-Id: Id6768d8246c97d56e529cbc1cab6c8c7d28ca43a
    Closed-Bug: #1547345

Eli Qiao (taget-9)
Changed in magnum:
importance: Undecided → Low
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers