Subnet dhcp update fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Create a port with multi subnets, each subnet enables DHCP.
boot a VM on this port,then the VM use the first subnet DHCP.
Then, disable the first subnet dhcp, I think the VM should change a valid subnet dhcp,but it didn't.
[root@devstack-147 neutron]# neutron port-show port-multi-40
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:vnic_type | normal |
| created_at | 2017-06-
| description | |
| device_id | 63e1c4ca-
| device_owner | compute:nova |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "0d586059-
| | {"subnet_id": "8fdc0824-
| id | 0d2ddd79-
| mac_address | fa:16:3e:13:44:92 |
| name | port-multi-40 |
| network_id | 72cdad8d-
| port_security_
| project_id | c32587920be74e7
| revision_number | 17 |
| security_groups | 9989d900-
| status | ACTIVE |
| tags | |
| tenant_id | c32587920be74e7
| updated_at | 2017-06-
+------
[root@devstack-147 neutron]# nova show vm40
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | True |
| created | 2017-06-
| description | - |
| flavor | m1.tiny (1) |
| hostId | a677bc3de774260
| id | 63e1c4ca-
| image | cirros-
| key_name | - |
| locked | False |
| metadata | {} |
| name | vm40 |
| network40 network | 40.0.0.5, 41.0.0.5 |
| os-extended-
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tags | [] |
| tenant_id | c32587920be74e7
| updated | 2017-06-
| user_id | 6cb6684ed2ec416
+------
[root@devstack-147 ~]# ovn-nbctl list dhcp_options
_uuid : e04f1a25-
cidr : "41.0.0.0/26"
external_ids : {subnet_
options : {lease_
[root@devstack-147 logs]# ovn-nbctl list logical_switch_port
_uuid : 474644bd-
addresses : ["fa:16:3e:13:44:92 40.0.0.5 41.0.0.5"]
dhcpv4_options : []
dhcpv6_options : []
dynamic_addresses : []
enabled : true
external_ids : {"neutron:
name : "0d2ddd79-
options : {}
parent_name : []
port_security : ["fa:16:3e:13:44:92 40.0.0.5 41.0.0.5"]
tag : []
tag_request : []
type : ""
up : true
Changed in networking-ovn: | |
status: | Confirmed → Fix Released |
Looks like when the subnet is updated, logical_ switch_ port.dhcpv4_ options is cleared. The expected behavior should have been to set logical_ switch_ port.dhcpv4_ options = [e04f1a25- 2134-49c6- b2db-6e688d8bcb b0]