Subnet dhcp update fail

Bug #1699432 reported by XuRong
6
This bug affects 1 person
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_address_pairs | |
| binding:vnic_type | normal |
| created_at | 2017-06-21T00:41:39Z |
| description | |
| device_id | 63e1c4ca-c217-44d7-974b-b36e6148688b |
| device_owner | compute:nova |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "0d586059-3f04-46d2-9537-c0dd813db2e8", "ip_address": "40.0.0.5"} |
| | {"subnet_id": "8fdc0824-11b5-4b02-ac3b-3c4cd1ff1ff5", "ip_address": "41.0.0.5"} |
| id | 0d2ddd79-ce5e-4536-b324-81cb2f6a8f48 |
| mac_address | fa:16:3e:13:44:92 |
| name | port-multi-40 |
| network_id | 72cdad8d-eed6-4b5d-8c87-5b228a9409d8 |
| port_security_enabled | True |
| project_id | c32587920be74e7fbe9abfd2eb21fcb5 |
| revision_number | 17 |
| security_groups | 9989d900-2b86-4b37-bf45-cec4f46edbef |
| status | ACTIVE |
| tags | |
| tenant_id | c32587920be74e7fbe9abfd2eb21fcb5 |
| updated_at | 2017-06-21T01:52:27Z |
+-----------------------+---------------------------------------------------------------------------------+

[root@devstack-147 neutron]# nova show vm40
+--------------------------------------+-----------------------------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2017-06-21T01:52:28.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | True |
| created | 2017-06-21T01:52:18Z |
| description | - |
| flavor | m1.tiny (1) |
| hostId | a677bc3de7742609379eaf12a0bc83c59493bed62b8068129f7c84ce |
| id | 63e1c4ca-c217-44d7-974b-b36e6148688b |
| image | cirros-0.3.5-x86_64-disk (9ddd119d-f8ff-416e-bbde-c1664cadbdbc) |
| key_name | - |
| locked | False |
| metadata | {} |
| name | vm40 |
| network40 network | 40.0.0.5, 41.0.0.5 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tags | [] |
| tenant_id | c32587920be74e7fbe9abfd2eb21fcb5 |
| updated | 2017-06-21T01:52:28Z |
| user_id | 6cb6684ed2ec416d8253f3bd06cc9476 |
+--------------------------------------+-----------------------------------------------------------------+

[root@devstack-147 ~]# ovn-nbctl list dhcp_options
_uuid : e04f1a25-2134-49c6-b2db-6e688d8bcbb0
cidr : "41.0.0.0/26"
external_ids : {subnet_id="8fdc0824-11b5-4b02-ac3b-3c4cd1ff1ff5"}
options : {lease_time="43200", mtu="1442", router="41.0.0.1", server_id="41.0.0.1", server_mac="fa:16:3e:94:ee:86"}

[root@devstack-147 logs]# ovn-nbctl list logical_switch_port
_uuid : 474644bd-21dc-4ebf-9c4f-878857d7d249
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:port_name"="port-multi-40"}
name : "0d2ddd79-ce5e-4536-b324-81cb2f6a8f48"
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

Revision history for this message
Numan Siddique (numansiddique) wrote :

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-6e688d8bcbb0]

Changed in networking-ovn:
status: New → Confirmed
Changed in networking-ovn:
status: Confirmed → Fix Released
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.