Story #4651
closedAs a user, I can install pulp 3 on a RHEL host
Added by kersom over 5 years ago. Updated over 4 years ago.
100%
Description
As a user, I can install pulp 3 on a RHEL host using the Ansible installer.
The scope of this story is limited to using the ansible installer against a RHEL machine with the subscription already enabled.
This story does not include testing/CI. Covered here (https://pulp.plan.io/issues/4659)
Related issues
Updated by amacdona@redhat.com over 5 years ago
- Tracker changed from Issue to Story
- % Done set to 0
Updated by bmbouter over 5 years ago
Since the installer works on CentOS I imagine it already works on RHEL. If the installer doesn't work for some reason that would be good to fix.
Since I believe it works I read this not as a Story but as a Test activity. Also how will we assure this stays working over time?
Updated by amacdona@redhat.com over 5 years ago
This isn't just a test activity. New OS vars files will be created in the ansible-pulp repo for RHEL that will be necessary even if installing by hand.
Updated by amacdona@redhat.com over 5 years ago
- Blocks Test #4659: Add RHEL to the ansible-pulp molecule CI added
Updated by kersom over 5 years ago
I attempted to use the installer to install Pulp 3 on RHEL7.6 subscribed box.
TASK [pulp : Load OS specific variables] *****************************************************************************
fatal: [192.168.122.7]: FAILED! => changed=false
ansible_facts: {}
ansible_included_var_files: []
message: |-
Could not find or access 'RedHat.yml'
Searched in:
/tmp/tmp.1eoSX7RspC/ansible-pulp/roles/pulp/vars/RedHat.yml
/tmp/tmp.1eoSX7RspC/ansible-pulp/roles/pulp/RedHat.yml
/tmp/tmp.1eoSX7RspC/ansible-pulp/roles/pulp-database/vars/RedHat.yml
/tmp/tmp.1eoSX7RspC/ansible-pulp/roles/pulp-database/RedHat.yml
/tmp/tmp.1eoSX7RspC/ansible-pulp/roles/pulp/tasks/vars/RedHat.yml
/tmp/tmp.1eoSX7RspC/ansible-pulp/roles/pulp/tasks/RedHat.yml
/tmp/tmp.1eoSX7RspC/vars/RedHat.yml
/tmp/tmp.1eoSX7RspC/RedHat.yml on the Ansible Controller.
If you are using a module and expect the file to exist on the remote, see the remote_src option
PLAY RECAP ***********************************************************************************************************
192.168.122.7 : ok=5 changed=0 unreachable=0 failed=1
Same playbook was used to install Pulp 3 on a CentOS7 box.
Updated by mdepaulo@redhat.com over 5 years ago
- Groomed changed from No to Yes
- Sprint set to Sprint 57
Updated by mdepaulo@redhat.com over 5 years ago
Some tips:
1. Until we have a need for them to differ, RedHat.yml should be a symlink to CentOS.yml .
2. You'll have to use different logic to add epel, because epel-release is not in RHEL.
Updated by rchan over 5 years ago
For the RPM plugin, we will need createrepo_c 0.13.0+ , the most important functionality which we need there is a modular errata support. The motivation for this issue is to allow testing of the migration tool. We don't want to block testing of the tool for content types that are ready, so we can create a separate issue to handle RPM if necessary.
Updated by mdepaulo@redhat.com over 5 years ago
rchan wrote:
For the RPM plugin, we will need createrepo_c 0.13.0+ , the most important functionality which we need there is a modular errata support. The motivation for this issue is to allow testing of the migration tool. We don't want to block testing of the tool for content types that are ready, so we can create a separate issue to handle RPM if necessary.
1. As we discussed on IRC, for RHEL7 they do not build the python3-createrepo_c subpackage of "createrepo_c". This is a packaging change for the overall "createrepo_c" source RPM.
2. RHEL8 & 8.1 beta have python3-createrepo_c, but only at 0.11.0-1 . So we need the the overall createrepo_c package upgraded on RHEL8 as well.
Updated by mdepaulo@redhat.com about 5 years ago
- % Done changed from 0 to 70
As part of https://pulp.plan.io/issues/5496 , we managed to install the Pulp-maintained PyPI-hosted createrepo_c, and thus pulp_rpm, on CentOS 7.7 .
I will make 1 more change (add a variable for the RHEL7 extras repo, which will default to "rhel-7-server-extras-rpms" but can be set to blank or another value) for this PR.
Updated by kersom about 5 years ago
- Related to Issue #5496: installer fails on el7 installing pulp_rpm added
Updated by mdepaulo@redhat.com about 5 years ago
I realized that the only RHEL repo we need to enable now is actually optional, not extras, since we are not trying to get libmodulemd from RHEL.
There are several common names for that repo, and many possible ones if managed by Katello/Satellite or other custom repo management.
I am working on enabling a list of several common names; the 1st one found only. It is more complex than you'd expect (yum-config-manager is easy to make idempotent.) It also lets users specify a list, or a specific name, instead.
https://github.com/pulp/ansible-pulp/pull/172
Other remaining work:
- Symlink/check CentOS vars yml files as RedHat ones.
- Similar list logic for "epel-release" vs the epel URL (the URL is equivalent to a package name)
Added by Mike DePaulo about 5 years ago
Updated by Anonymous about 5 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset ansible-pulp3|d65ab89bac0ad82d046c2062c873db4317908a0e.
Added by Mike DePaulo about 5 years ago
Revision 01f740bd | View on GitHub
Add CentOS -> RedHat vars symlinks
Fixes: #4651 As a user, I can install pulp 3 on a RHEL host https://pulp.plan.io/issues/4651
Added by Mike DePaulo about 5 years ago
Revision 391802c4 | View on GitHub
Add CentOS -> RedHat vars symlinks
Fixes: #4651 As a user, I can install pulp 3 on a RHEL host https://pulp.plan.io/issues/4651
Added by Mike DePaulo about 5 years ago
Revision 391802c4 | View on GitHub
Add CentOS -> RedHat vars symlinks
Fixes: #4651 As a user, I can install pulp 3 on a RHEL host https://pulp.plan.io/issues/4651
Updated by mdepaulo@redhat.com about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
This was merged a while ago. Any reported issues were resolved. so I'm marking as closed.
Updated by bmbouter over 4 years ago
- Category set to Installer - Moved to GitHub issues
- Tags deleted (
Pulp 3 installer)
Add CentOS -> RedHat vars symlinks
Fixes: #4651 As a user, I can install pulp 3 on a RHEL host https://pulp.plan.io/issues/4651