Toggling dhcp on and off in a subnet causes new instances to be unreachable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Medium
|
Unassigned |
Bug Description
After DHCP was turned on and off again on our network, new instances where not reachable. We found that they still tried to get their network config via DHCP after that.
We run Openstack Ussuri installed with Openstack Kolla with OVN networking enabled. Also force_config_drive is set to true.
Steps to reproduce:
openstack network create test
openstack subnet create --no-dhcp --subnet-range 192.168.0.0/24 --network test test
openstack router create test
openstack router set test --external-gateway public
openstack router add subnet test test
openstack server create --network test --image e83d66e7-
Network metadata:
{
"links" : [
{
"id" : "tap7608d5b5-bd",
"mtu" : 8942,
"type" : "ovs",
"vif_id" : "7608d5b5-
}
],
"networks" : [
{
"id" : "network0",
"link" : "tap7608d5b5-bd",
"netmask" : "255.255.255.0",
"routes" : [
{
}
],
"services" : [],
"type" : "ipv4"
}
],
"services" : []
}
Toggle DHCP and create new server:
openstack subnet set --dhcp test
openstack subnet set --no-dhcp test
openstack server create --network test --image e83d66e7-
Network metadata:
{
"links" : [
{
"type" : "ovs",
"id" : "tapee8f020a-1f",
"vif_id" : "ee8f020a-
"mtu" : 8942
}
],
"services" : [],
"networks" : [
{
"link" : "tapee8f020a-1f",
"type" : "ipv4_dhcp",
"id" : "network0"
}
]
}
As DHCP is now off, this instance stays unreachable.
I tried the same in a cluster with OVN disabled and that worked without any problem. So this seems to be OVN related.
description: | updated |
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in neutron: | |
status: | Confirmed → Invalid |
Since this report is against Ussuri or later I'm moving to the neutron component since that's where the OVN driver code is now.