Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-39285

UPI playbook failing due to missing metadata.json

XMLWordPrintable

    • ?
    • Important
    • None
    • ShiftStack Sprint 258, ShiftStack Sprint 259
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      A recent change modified the order of an ansible playbook that now runs before the metadata.json file is created. This causes issues with older versions of ansible.
      The fix makes the playbook more tolerant to missing files, to accommodate older ansible.
      Show
      A recent change modified the order of an ansible playbook that now runs before the metadata.json file is created. This causes issues with older versions of ansible. The fix makes the playbook more tolerant to missing files, to accommodate older ansible.
    • Bug Fix
    • In Progress

      Description of problem: https://github.com/openshift/installer/pull/7727 changed the order of some playbooks and we're expected to run the network.yaml playbook before the metadata.json file is created. This isn't a problem with newer version of ansible, that will happily ignore missing var_files, however this is a problem with older ansible that fail with:

      [cloud-user@installer-host ~]$ ansible-playbook -i "/home/cloud-user/ostest/inventory.yaml" "/home/cloud-user/ostest/network.yaml"
      
      PLAY [localhost] *****************************************************************************************************************************************************************************************************************************
      ERROR! vars file metadata.json was not found                                                                                       
      Could not find file on the Ansible Controller.                                                                                      
      If you are using a module and expect the file to exist on the remote, see the remote_src option
      

            maandre@redhat.com Martin André
            maandre@redhat.com Martin André
            Itshak Brown Itshak Brown
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: