network router:external value is non-boolean (Internal) which causes server create failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I noticed this here:
https:/
Nova has this post-test script:
https:/
Which creates an internal private network:
+ /opt/stack/
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | |
| created_at | 2019-11-
| description | |
| dns_domain | None |
| id | c0c449d7-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| location | cloud='', project.domain_id=, project.
| mtu | 1450 |
| name | net0 |
| port_security_
| project_id | 5e899e65a6fc46b
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 1 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| updated_at | 2019-11-
+------
But note the router:external value is "Internal" rather than false. The API reference says the value should be a boolean:
https:/
And that's what the nova code expects:
This ends up resulting in a failure to create the server:
Nevermind about the value, it's openstack CLI that is translating the false value to "Internal":
https:/ /github. com/openstack/ python- openstackclient /blob/d17a1c803 9807cdac29e77eb 5f0724d181bdd83 1/openstackclie nt/network/ v2/network. py#L33