faild to create bay with property error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
PanFengyun |
Bug Description
phenomenon:
$ magnum baymodel-create --name k8sbaymodel --image-id fedora-
$ 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-
reason:
Exist multiple external networks with same name 'public'
$ neutron net-external-list
+------
| id | name | subnets |
+------
| 98a0afc0-
| | | 34f58139-
| d40935c0-
+------
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 |
Reviewed: https:/ /review. openstack. org/327670 /git.openstack. org/cgit/ openstack/ magnum/ commit/ ?id=ae0b77a55ae 0a96ab1944c1a23 df1bc31a4a021c
Committed: https:/
Submitter: Jenkins
Branch: master
commit ae0b77a55ae0a96 ab1944c1a23df1b c31a4a021c
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: Ic02add0338cef3 44d02ef68c83724 88fbe0b8fcd
Closes-Bug: #1591018