archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

Problem: ansible role subscription-manager task fails on some RHEL systems #792

Open hakamine opened 5 years ago

hakamine commented 5 years ago

Expected behaviour Archivematica ansible role should deploy on RHEL systems without errors

Current behaviour On some RHEL systems (educloud, melbourne), the ansible role fails on a task that invokes subscription-manager:

TASK [external-roles/artefactual.archivematica-src-1.9 : Add rhel-*-optional-rpms repo on RHEL] *****************
fatal: [viu1-rh7]: FAILED! => changed=true
  cmd:
  - subscription-manager
  - repos
  - --enable
  - rhel-*-optional-rpms
  - --enable
  - rhel-*-extras-rpms
  delta: '0:00:00.668705'
  end: '2019-06-01 17:19:48.949820'
  msg: non-zero return code
  rc: 1
  start: '2019-06-01 17:19:48.281115'
  stderr: ''
  stderr_lines: []
  stdout: |-
    Error: 'rhel-*-optional-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
    Error: 'rhel-*-extras-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.

    WARNING

    The yum/dnf plugins: /etc/yum/pluginconf.d/subscription-manager.conf, /etc/yum/pluginconf.d/product-id.conf were automatically enabled for the benefit of Red Hat Subscription Management. If not desired, use "subscription-manager config --rhsm.auto_enable_yum_plugins=0" to block this behavior.
  stdout_lines: <omitted> 

Additional information

The task that is failing was added in https://github.com/artefactual-labs/ansible-archivematica-src/pull/225 (Before https://github.com/artefactual-labs/ansible-archivematica-src/pull/225 was merged, was able to install without errors)

Your environment (version of Archivematica, OS version, etc) archivematica ansible role branches stable/1.9x and qa/1.x


For Artefactual use: Please make sure these steps are taken before moving this issue from Review to Verified in Waffle:

hakamine commented 5 years ago

Fixed by https://github.com/artefactual-labs/ansible-archivematica-src/pull/245 and https://github.com/artefactual-labs/ansible-archivematica-src/pull/249