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

After failed network configuration, os-net-config changes are not applied to the node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • rhos-18.0.3
    • rhos-18.0.0
    • documentation
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Moderate

      During installation, I pushed a wrong network configuration

      I made changes to OpenStackDataPlaneNodeSet, then deleted both the OpenStackDataPlaneNodeSet and the ...Deployment. I even deleted /etc/os-net-config on the node.

      When making changes to os-net-config, the configuration is not reapplied by the installer, instead it is skipped:

      while true; do oc logs -l app=openstackansibleee -f --max-log-requests 20 --tail=-1 -f | grep -i os-net -A5; done
      (...)
      TASK [osp.edpm.edpm_network_config : Create /etc/os-net-config directory] ******
      skipping: [edpm-compute-0]
      
      TASK [osp.edpm.edpm_network_config : Create os-net-config mappings from lookup data] ***
      skipping: [edpm-compute-0]
      
      TASK [osp.edpm.edpm_network_config : Write os-net-config mappings file /etc/os-net-config/mapping.yaml] ***
      skipping: [edpm-compute-0]
      
      TASK [osp.edpm.edpm_network_config : Remove /var/lib/edpm-config/scripts directory] ***
      skipping: [edpm-compute-0]
      

      Edit: after some further research, it's due to:
      https://github.com/openstack-k8s-operators/edpm-ansible/blob/dcf2ec09ed36d0f189087488e561aae35cf96396/roles/edpm_network_config/tasks/network_config.yml#L82C10-L82C36

      So this here must be set to reapply os-net-config:

      apiVersion: dataplane.openstack.org/v1beta1
      kind: OpenStackDataPlaneNodeSet
      metadata:
        name: openstack-data-plane
        namespace: openstack
      spec: 
      (...)
        nodeTemplate:
      (...)
          ansible:
      (...)
            ansibleVars:
      (...)
              edpm_network_config_update: true
      (...)
      

      So it's a documentation bug. Google only finds OSP 18 beta pages for ` edpm_network_config_update`, and when I use our own search function, I cannot find anything with ` edpm_network_config_update` either. It should be included in the install documentation under:
      https://docs.redhat.com/en/documentation/red_hat_openstack_services_on_openshift/18.0/html-single/deploying_red_hat_openstack_services_on_openshift/index#literal_ansible_literal
      Or even in the deployment section 5.6 Deploying the dataplane.

      But it's not there, and it's hidden here: https://openstack-k8s-operators.github.io/edpm-ansible/roles/role-edpm_network_config.html

      Can we make this more obvious to admins, both in the install documentation and elsewhere?

      Thanks!

              igallagh@redhat.com Irina Gallagher
              akaris@redhat.com Andreas Karis
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: