-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
Starting from a working deployment using C42 config I tried to update network configuration adding a new vlan, but I put a wrong IP address by mistake:
[zuul@controller-0 unprovision]$ diff nodeset.yaml nodeset_new_vlan.yaml 191a192,198 > - type: vlan > mtu: 9000 > device: bond0 > vlan_id: 300 > addresses: > - ip_netmask: 192.168.300.10/24 > routes: [{'destination': '0.0.0.0/0', 'nexthop': '192.168.300.1'}]
I applied the modified nodeset and created a new deployment:
[zuul@controller-0 unprovision]$ cat deployment2.yaml apiVersion: dataplane.openstack.org/v1beta1 kind: OpenStackDataPlaneDeployment metadata: name: edpm-deployment-19 namespace: openstack spec: nodeSets: - openstack-edpm - openstack-edpm-2 servicesOverride: - configure-network - validate-network ansibleExtraVars: edpm_network_config_update: "true" edpm_network_config_nonconfigured_cleanup: "false"
I got an error because ip address is wrong, this is expected behavior:
File "/usr/lib/python3.9/site-packages/netaddr/ip/__init__.py", line 953, in __init__ raise AddrFormatError('invalid IPNetwork %s' % (addr,)) netaddr.core.AddrFormatError: invalid IPNetwork 192.168.300.10/24
Then, if a try to apply the original nodeset (without vlan) or try to apply the modified nodeset with the ipaddress fixed, it fails because for some reason it is tried to apply the configuration with the wrong ip address. It is like configuration is not updated any more and it keeps the wrong configuration
[zuul@controller-0 unprovision]$ oc get openstackversion
NAME TARGET VERSION AVAILABLE VERSION DEPLOYED VERSION
controlplane 18.0.10-trunk-20250708.1 18.0.10-trunk-20250708.1 18.0.10-trunk-20250708.1
[root@compute-0 ~]# rpm -qa os-net-config
os-net-config-18.0.1-18.0.20250701154729.22b9a65.el9ost.noarch