Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-18364

system can not recover from a error in update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • rhos-18.0.12
    • None
    • os-net-config
    • None
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • no_code_fix_required
    • rhos-connectivity-nfv
    • None
    • Important

      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

       

       

              jpalanis@redhat.com Jaganathan Palanisamy
              mnietoji@redhat.com Miguel Angel Nieto Jimenez
              rhos-dfg-nfv
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: