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

edpm-ansible: check for rc attribute of dnf module tasks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • None
    • edpm-ansible
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • None
    • Moderate

      The dnf module does not always set the rc attribute on it's return value. The tasks in roles/edpm_bootstrap/tasks/packages.yml can then fail with "No attribute "rc"" related errors. We saw this happen due to dnf failing to install packages when their GPG signature couldn't be verified.

      We should add checks for the rc attribute before assuming it exists.

      When the dnf tasks do fail, we should also output stdout to see the actual error(s).

              jpodivin@redhat.com Jiri Podivin
              jslagle@redhat.com James Slagle
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: