faild to create bay with property error

Bug #1591018 reported by PanFengyun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
PanFengyun

Bug Description

phenomenon:
$ magnum baymodel-create --name k8sbaymodel --image-id fedora-atomic-latest --keypair-id testkey --external-network-id public --dns-nameserver 192.168.122.169 --docker-volume-size 5 --network-driver flannel --coe kubernetes
$ magnum bay-create --name k8sbay --baymodel k8sbaymodel --node-count 1
Create for bay k8sbay failed: ERROR: Property error: : resources (HTTP 400) (Request-ID: req-ea8f7251-03f0-49bc-9037-4a497dc21b04)

reason:
Exist multiple external networks with same name 'public'

$ neutron net-external-list
+--------------------------------------+--------+-----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+--------+-----------------------------------------------------+
| 98a0afc0-f55e-4aac-be59-44256c0d763e | public | 4cf7ab9b-9af2-4b22-9743-79331da65859 2001:db8::/64 |
| | | 34f58139-05ff-4c7b-8dab-ad82e6a491ec 172.24.4.0/24 |
| d40935c0-36e1-4ff4-a1cc-33c495831558 | public | ab7c8108-18b3-4975-8ce8-d181800bf092 193.168.0.0/16 |
+--------------------------------------+--------+-----------------------------------------------------+

helpful behavior
1.when exist multiple external networks with same name,not allow user to create the baymodel which use same name network.

2.not allow user to create the baymodel which use private network.

Changed in magnum:
assignee: nobody → PanFengyun (pan-feng-yun)
Changed in magnum:
status: New → In Progress
Changed in magnum:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

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

commit ae0b77a55ae0a96ab1944c1a23df1bc31a4a021c
Author: PanFengyun <email address hidden>
Date: Tue Jul 5 14:35:55 2016 +0800

    Improve validation for the external network parameter

    1. Check the network name to see if there is duplicate name. If so,
       advise user to use network ID.
    2. External network cannot be private network, so filter the query
       for the external network with this attribute to validate.

    Change-Id: Ic02add0338cef344d02ef68c8372488fbe0b8fcd
    Closes-Bug: #1591018

Changed in magnum:
status: Invalid → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 release.

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.