Project

Profile

Help

Issue #5705

closed

ansible-pulp fails to install epel-release on CentOS7

Added by evgeni over 4 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

ansible-pulp (86a19f7) contains logic in the pulp role to install epel-release, however, this fails for me with Ansible 2.8.5 (Fedora 30):

% vagrant up pulp3-sandbox-centos7 --provision
Bringing machine 'pulp3-sandbox-centos7' up with 'libvirt' provider...
==> pulp3-sandbox-centos7: Checking if box 'centos/7' version '1905.1' is up to date...
==> pulp3-sandbox-centos7: Running provisioner: main0 (ansible)...
Vagrant has automatically selected the compatibility mode '2.0'
according to the Ansible version installed (2.8.5).

Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode

    pulp3-sandbox-centos7: Running ansible-galaxy...
- changing role geerlingguy.postgresql from 2.0.1 to unspecified
- downloading role 'postgresql', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-postgresql/archive/2.0.1.tar.gz
- extracting geerlingguy.postgresql to /home/egolov/Devel/pulp/pulplift/playbooks/roles/geerlingguy.postgresql
- geerlingguy.postgresql (2.0.1) was installed successfully
    pulp3-sandbox-centos7: Running ansible-playbook...

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [pulp3-sandbox-centos7]

TASK [include_vars] ************************************************************
ok: [pulp3-sandbox-centos7] => (item=/home/egolov/Devel/pulp/pulplift/playbooks/../example.user-config.yml)

TASK [Verify Ansible meets min required version] *******************************
ok: [pulp3-sandbox-centos7] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Update Fedora 30 dnf stack] **********************************************
skipping: [pulp3-sandbox-centos7]

TASK [pulp : Fail when pulp_secret_key is not set] *****************************
ok: [pulp3-sandbox-centos7] => {
    "changed": false
}

MSG:

All assertions passed

TASK [pulp : Load OS specific variables] ***************************************
ok: [pulp3-sandbox-centos7]

TASK [pulp : Enumerate default system PATH] ************************************
skipping: [pulp3-sandbox-centos7]

TASK [pulp : set the default system PATH as a fact] ****************************
ok: [pulp3-sandbox-centos7]

TASK [pulp : include_tasks] ****************************************************
skipping: [pulp3-sandbox-centos7] => (item=rhui-rhel-7-server-rhui-optional-rpms) 
skipping: [pulp3-sandbox-centos7] => (item=rhel-7-server-optional-rpms) 
skipping: [pulp3-sandbox-centos7] => (item=rhel-7-workstation-optional-rpms) 

TASK [pulp : Update apt package index] *****************************************
skipping: [pulp3-sandbox-centos7]

TASK [pulp : Install EPEL Release] *********************************************
ok: [pulp3-sandbox-centos7] => (item=['epel-release', 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm'])

TASK [pulp : Install prerequisites] ********************************************
fatal: [pulp3-sandbox-centos7]: FAILED! => {
    "changed": false,
    "rc": 126,
    "results": [
        "libselinux-python-2.5-14.1.el7.x86_64 providing libselinux-python is already installed",
        "No package matching 'python-contextlib2' found available, installed or updated"
    ]
}

MSG:

No package matching 'python-contextlib2' found available, installed or updated

PLAY RECAP *********************************************************************
pulp3-sandbox-centos7      : ok=7    changed=0    unreachable=0    failed=1    skipped=4    rescued=0    ignored=0   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

See how the install step says no changes?

Also available in: Atom PDF