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

edpm-update services skips container update tasks for custom services

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • OSPRH-816 - Red Hat OpenStack 18.0 Updates
    • openstack-operator-container-1.0.0-42 openstack-ansible-ee-container-1.0.0-36
    • openstack-operator-container-1.0.0-42 openstack-ansible-ee-container-1.0.0-36
    • ?
    • ?
    • None
    • Release Note Not Required
    • Critical

      Started edpm-update service as documented
      https://openstack-k8s-operators.github.io/dataplane-operator/user/index.html#proc_updating-the-data-plane-dataplane

      yum update task were ran, but  container update tasks  were skipped

       

      k8s job definition is:

       oc get jobs  update-edpm-deployment-update-openstack-edpm-ipam -o yaml
          spec:                             
            containers:                                                              
            - args:                                                                  
              - ansible-runner                                                       
              - run             
              - /runner                                                              
              - -p                                                                   
              - osp.edpm.update   
              - -i      
              - update-edpm-deployment-update-openstack-edpm-ipam                    
              env:                       
              - name: ANSIBLE_FORCE_COLOR
                value: "True"       
              - name: RUNNER_PLAYBOOK                                                
                value: |2+
      
                  osp.edpm.update
      
              - name: RUNNER_EXTRA_VARS
                value: |2+
      
                  edpm_override_hosts: openstack-edpm-ipam
                  edpm_service_type: update
                  edpm_services_override: [update] 

      In  edpm_update role default is:
      https://github.com/openstack-k8s-operators/edpm-ansible/blob/main/roles/edpm_update/defaults/main.yml#L30

      I think the problem is that edpm_services_override is equal to update, but to run container updates we need also a list of enabled services(https://github.com/openstack-k8s-operators/edpm-ansible/blob/main/roles/edpm_update/tasks/containers.yml#L33) However if we change servicesOverride to include enabled services, dataplanedeployment will start all services, not only update service.

              mciecier@redhat.com Mikolaj Ciecierski
              mciecier@redhat.com Mikolaj Ciecierski
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: