Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hakamine opened this issue Jul 11, 2019 · 1 comment

Comments

@hakamine
Copy link

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 artefactual-labs/ansible-archivematica-src#225 (Before artefactual-labs/ansible-archivematica-src#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:

  • All PRs related to this issue are properly linked 👍
  • All PRs related to this issue have been merged 👍
  • Test plan for this issue has been implemented and passed 👍
  • Documentation regarding this issue has been written and it has been added to the release notes, if needed 👍
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant