Issue #6970
https://github.com/pulp/pulp_installer does not run on CentOS 8
Description
Hello guys,
today i want to try you code from https://github.com/pulp/pulp_installer. Cloning the code was done and a playbook was created to install pulp, too.
If i want to run the playbook it stops withs an error in section "Run pip-compile to check pulpcore/plugin compatibility" as you can see in the following output.
There are also some more [WARNINGS], they're not interrupt the playbook, but it maybe helpful to fix this, too.
$ ansible-playbook -i inventories/inventory_intern playbooks/main.yml [DEPRECATION WARNING]: The use of 'static' has been deprecated. Use 'import_tasks' for static inclusion, or 'include_tasks' for dynamic inclusion. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [all] **********************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ********************************************************************************************************************************************************************************************** ok: [pulp.fancyhost.anon]
TASK [pulp : Fail when pulp_secret_key is not set] ****************************************************************************************************************************************************************** ok: [pulp.fancyhost.anon] => { "changed": false, "msg": "All assertions passed" }
TASK [pulp : debug] ************************************************************************************************************************************************************************************************* skipping: [pulp.fancyhost.anon]
TASK [pulp : debug] ************************************************************************************************************************************************************************************************* skipping: [pulp.fancyhost.anon]
TASK [pulp : debug] ************************************************************************************************************************************************************************************************* skipping: [pulp.fancyhost.anon]
TASK [pulp : Load OS specific variables] **************************************************************************************************************************************************************************** ok: [pulp.fancyhost.anon]
TASK [pulp : Is this a supported version of CentOS] ***************************************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Enumerate default system PATH] ************************************************************************************************************************************************************************* ok: [pulp.fancyhost.anon]
TASK [pulp : set the default system PATH as a fact] ***************************************************************************************************************************************************************** ok: [pulp.fancyhost.anon]
TASK [pulp : Install EPEL Release] ********************************************************************************************************************************************************************************** changed: [pulp.fancyhost.anon] => (item=epel-release) skipping: [pulp.fancyhost.anon] => (item=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm)
TASK [pulp : Find and enable the first found name of the RHEL7 Optional repo] *************************************************************************************************************************************** skipping: [pulp.fancyhost.anon] => (item=rhui-rhel-7-server-rhui-optional-rpms) skipping: [pulp.fancyhost.anon] => (item=rhel-7-server-rhui-optional-rpms) skipping: [pulp.fancyhost.anon] => (item=rhel-7-server-optional-rpms) skipping: [pulp.fancyhost.anon] => (item=rhel-7-workstation-optional-rpms)
TASK [pulp : Find and enable the first found name of the RHEL CodeReady Builder repo] ******************************************************************************************************************************* skipping: [pulp.fancyhost.anon] => (item=codeready-builder-for-rhel-8-x86_64-rpms) skipping: [pulp.fancyhost.anon] => (item=rhui-codeready-builder-for-rhel-8-rhui-rpms) skipping: [pulp.fancyhost.anon] => (item=codeready-builder-for-rhel-8-rhui-rpms)
TASK [pulp : Determine which file in /etc/yum.repos.d/ has the CentOS PowerTools repo] ****************************************************************************************************************************** ok: [pulp.fancyhost.anon]
TASK [pulp : Enable the CentOS PowerTools repo] ********************************************************************************************************************************************************************* changed: [pulp.fancyhost.anon]
TASK [pulp : Determine which file in /etc/yum.repos.d/ has the CentOS Stream-PowerTools repo] *********************************************************************************************************************** ok: [pulp.fancyhost.anon]
TASK [pulp : Enable the CentOS Stream-PowerTools PowerTools repo] *************************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Update apt package index] ****************************************************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Install prerequisites] ********************************************************************************************************************************************************************************* changed: [pulp.fancyhost.anon]
TASK [pulp : Disable SELinux (Pulp 3 is currently incompatible with SELinux)] *************************************************************************************************************************************** changed: [pulp.fancyhost.anon]
TASK [pulp : Find the nologin executable] *************************************************************************************************************************************************************************** ok: [pulp.fancyhost.anon]
TASK [pulp : Make sure pulp group exists] *************************************************************************************************************************************************************************** changed: [pulp.fancyhost.anon]
TASK [pulp : Create user pulp] ************************************************************************************************************************************************************************************** changed: [pulp.fancyhost.anon]
TASK [pulp : Add user pulp to extra groups] ************************************************************************************************************************************************************************* skipping: [pulp.fancyhost.anon]
TASK [pulp : Add user {{ developer_user }} to {{ pulp_group }} group] *********************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Create cache dir for Pulp] ***************************************************************************************************************************************************************************** changed: [pulp.fancyhost.anon]
TASK [pulp : Create pulp install dir] ******************************************************************************************************************************************************************************* changed: [pulp.fancyhost.anon]
TASK [pulp : Check if we have Pulp 2 installed] ********************************************************************************************************************************************************************* ok: [pulp.fancyhost.anon]
TASK [pulp : Add user 'apache' to 'pulp' group if it exists] ******************************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Set permissions on '/var/lib/pulp' if pulp2 is installed] ********************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Find subdirs without setgid] *************************************************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Set setgid on the /var/lib/pulp subdirs] *************************************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Install packages needed for source install] ************************************************************************************************************************************************************ ok: [pulp.fancyhost.anon]
TASK [pulp : Create a venv with system-wide packages setting if the venv does not exist] **************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Upgrade to a recent edition of pip (supporting manylinux2014)] ***************************************************************************************************************************************** [WARNING]: Module remote_tmp /var/lib/pulp/.ansible/tmp did not exist and was created with a mode of 0700, this may cause issues when running as another user. To avoid this, create the remote_tmp dir with the correct permissions manually changed: [pulp.fancyhost.anon]
TASK [pulp : Update any existing venv to allow system-wide packages] ************************************************************************************************************************************************ skipping: [pulp.fancyhost.anon]
TASK [pulp : Obtain list of packages in the venv to see if any plugins are installed] ******************************************************************************************************************************* ok: [pulp.fancyhost.anon]
TASK [pulp : Create requirements.in file to check pulpcore/plugin compatibility] ************************************************************************************************************************************ changed: [pulp.fancyhost.anon]
TASK [pulp : Install pip-tools, which provides pip-compile to check version compatibility] ************************************************************************************************************************** changed: [pulp.fancyhost.anon]
TASK [pulp : Run preflight check (no prereq roles)] ***************************************************************************************************************************************************************** skipping: [pulp.fancyhost.anon]
TASK [pulp : Run preflight check before prereq roles] *************************************************************************************************************************************************************** included: /home/amueller/workdir/pulp_installer/roles/pulp/tasks/preflight_function.yml for pulp.fancyhost.anon
TASK [pulp : List currently installed packages for the pip-compile check] ******************************************************************************************************************************************* ok: [pulp.fancyhost.anon]
TASK [pulp : Backup currently installed packages for any potential troubleshooting purposes] ************************************************************************************************************************ ok: [pulp.fancyhost.anon]
TASK [pulp : Run pip-compile to check pulpcore/plugin compatibility] ************************************************************************************************************************************************ [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ failed_condition | default("compatibility.rc != 0") }} fatal: [pulp.fancyhost.anon]: FAILED! => {"changed": false, "cmd": ["/usr/local/lib/pulp/bin/pip-compile"], "delta": "0:00:05.941732", "end": "2020-06-15 12:38:32.265771", "failed_when_result": true, "msg": "non-zero return code", "rc": 2, "start": "2020-06-15 12:38:26.324039", "stderr": "Could not find a version that matches pulpcore<3.4,<3.5,==3.4.1,>=3.0,>=3.3,>=3.4 from https://files.pythonhosted.org/packages/5c/40/8dab8ccfe73982ef3a5e48489af2d83974b0e7677ca52ec232fcb4b49dfa/pulpcore-3.4.1-py3-none-any.whl#sha256=e33ca32f867201e1a18b888d72ef07e85c2cd11273a8e422e33d6a2910a64fac (from -r requirements.in (line 1))\nTried: 3.0.0, 3.0.0, 3.0.1, 3.0.1, 3.1.0, 3.1.0, 3.1.1, 3.1.1, 3.2.0, 3.2.0, 3.2.1, 3.2.1, 3.3.0, 3.3.0, 3.3.1, 3.3.1, 3.4.0, 3.4.0, 3.4.1, 3.4.1\nSkipped pre-versions: 3.0.0a1.dev3, 3.0.0a1.dev3, 3.0.0a1.dev4, 3.0.0a1.dev4, 3.0.0a1.dev5, 3.0.0a1.dev5, 3.0.0a1, 3.0.0a1, 3.0.0a2, 3.0.0a2, 3.0.0a3, 3.0.0a3, 3.0.0a4, 3.0.0a4, 3.0.0a5, 3.0.0a5, 3.0.0a6, 3.0.0a6, 3.0.0a7, 3.0.0a7, 3.0.0a8, 3.0.0a8, 3.0.0a9, 3.0.0a9, 3.0.0a10, 3.0.0a10, 3.0.0a11, 3.0.0a11, 3.0.0a12, 3.0.0a12, 3.0.0a13, 3.0.0a13, 3.0.0a14, 3.0.0a14, 3.0.0a15, 3.0.0a15, 3.0.0a16, 3.0.0a16, 3.0.0a17, 3.0.0a17, 3.0.0a18, 3.0.0a18, 3.0.0a19, 3.0.0a19, 3.0.0a20, 3.0.0a20, 3.0.0a21, 3.0.0a21, 3.0.0a22, 3.0.0a22, 3.0.0a23, 3.0.0a23, 3.0.0a24, 3.0.0a24, 3.0.0a25, 3.0.0a25, 3.0.0a26, 3.0.0a26, 3.0.0a27, 3.0.0a27, 3.0.0a28, 3.0.0a28, 3.0.0a29, 3.0.0a29, 3.0.0b1, 3.0.0b1, 3.0.0b2, 3.0.0b2, 3.0.0b3, 3.0.0b3, 3.0.0b4, 3.0.0b4, 3.0.0b5, 3.0.0b5, 3.0.0b6, 3.0.0b6, 3.0.0b7, 3.0.0b7, 3.0.0b8, 3.0.0b8, 3.0.0b9, 3.0.0b9, 3.0.0b10, 3.0.0b10, 3.0.0b11, 3.0.0b11, 3.0.0b12, 3.0.0b12, 3.0.0b13, 3.0.0b13, 3.0.0b14, 3.0.0b14, 3.0.0b15, 3.0.0b15, 3.0.0b16, 3.0.0b16, 3.0.0b17, 3.0.0b18, 3.0.0b18, 3.0.0b19, 3.0.0b19, 3.0.0b20, 3.0.0b20, 3.0.0b21, 3.0.0b21, 3.0.0b22, 3.0.0b22, 3.0.0b23, 3.0.0b23, 3.0.0rc1, 3.0.0rc1, 3.0.0rc2, 3.0.0rc2, 3.0.0rc3, 3.0.0rc3, 3.0.0rc4, 3.0.0rc4, 3.0.0rc5, 3.0.0rc5, 3.0.0rc6, 3.0.0rc6, 3.0.0rc7, 3.0.0rc7, 3.0.0rc8, 3.0.0rc8, 3.0.0rc9, 3.0.0rc9\nThere are incompatible versions in the resolved dependencies:\n pulpcore==3.4.1 from https://files.pythonhosted.org/packages/5c/40/8dab8ccfe73982ef3a5e48489af2d83974b0e7677ca52ec232fcb4b49dfa/pulpcore-3.4.1-py3-none-any.whl#sha256=e33ca32f867201e1a18b888d72ef07e85c2cd11273a8e422e33d6a2910a64fac (from -r requirements.in (line 1))\n pulpcore<3.5,>=3.4 (from pulp-file==1.0.1->-r requirements.in (line 4))\n pulpcore<3.5,>=3.4 (from pulp-rpm==3.4.1->-r requirements.in (line 6))\n pulpcore<3.5,>=3.4 (from pulp-python==3.0.0b9->-r requirements.in (line 5))\n pulpcore<3.4,>=3.3 (from pulp-deb==2.3.0b1->-r requirements.in (line 3))\n pulpcore<3.5,>=3.0 (from pulp-ansible==0.2.0b13->-r requirements.in (line 2))", "stderr_lines": ["Could not find a version that matches pulpcore<3.4,<3.5,==3.4.1,>=3.0,>=3.3,>=3.4 from https://files.pythonhosted.org/packages/5c/40/8dab8ccfe73982ef3a5e48489af2d83974b0e7677ca52ec232fcb4b49dfa/pulpcore-3.4.1-py3-none-any.whl#sha256=e33ca32f867201e1a18b888d72ef07e85c2cd11273a8e422e33d6a2910a64fac (from -r requirements.in (line 1))", "Tried: 3.0.0, 3.0.0, 3.0.1, 3.0.1, 3.1.0, 3.1.0, 3.1.1, 3.1.1, 3.2.0, 3.2.0, 3.2.1, 3.2.1, 3.3.0, 3.3.0, 3.3.1, 3.3.1, 3.4.0, 3.4.0, 3.4.1, 3.4.1", "Skipped pre-versions: 3.0.0a1.dev3, 3.0.0a1.dev3, 3.0.0a1.dev4, 3.0.0a1.dev4, 3.0.0a1.dev5, 3.0.0a1.dev5, 3.0.0a1, 3.0.0a1, 3.0.0a2, 3.0.0a2, 3.0.0a3, 3.0.0a3, 3.0.0a4, 3.0.0a4, 3.0.0a5, 3.0.0a5, 3.0.0a6, 3.0.0a6, 3.0.0a7, 3.0.0a7, 3.0.0a8, 3.0.0a8, 3.0.0a9, 3.0.0a9, 3.0.0a10, 3.0.0a10, 3.0.0a11, 3.0.0a11, 3.0.0a12, 3.0.0a12, 3.0.0a13, 3.0.0a13, 3.0.0a14, 3.0.0a14, 3.0.0a15, 3.0.0a15, 3.0.0a16, 3.0.0a16, 3.0.0a17, 3.0.0a17, 3.0.0a18, 3.0.0a18, 3.0.0a19, 3.0.0a19, 3.0.0a20, 3.0.0a20, 3.0.0a21, 3.0.0a21, 3.0.0a22, 3.0.0a22, 3.0.0a23, 3.0.0a23, 3.0.0a24, 3.0.0a24, 3.0.0a25, 3.0.0a25, 3.0.0a26, 3.0.0a26, 3.0.0a27, 3.0.0a27, 3.0.0a28, 3.0.0a28, 3.0.0a29, 3.0.0a29, 3.0.0b1, 3.0.0b1, 3.0.0b2, 3.0.0b2, 3.0.0b3, 3.0.0b3, 3.0.0b4, 3.0.0b4, 3.0.0b5, 3.0.0b5, 3.0.0b6, 3.0.0b6, 3.0.0b7, 3.0.0b7, 3.0.0b8, 3.0.0b8, 3.0.0b9, 3.0.0b9, 3.0.0b10, 3.0.0b10, 3.0.0b11, 3.0.0b11, 3.0.0b12, 3.0.0b12, 3.0.0b13, 3.0.0b13, 3.0.0b14, 3.0.0b14, 3.0.0b15, 3.0.0b15, 3.0.0b16, 3.0.0b16, 3.0.0b17, 3.0.0b18, 3.0.0b18, 3.0.0b19, 3.0.0b19, 3.0.0b20, 3.0.0b20, 3.0.0b21, 3.0.0b21, 3.0.0b22, 3.0.0b22, 3.0.0b23, 3.0.0b23, 3.0.0rc1, 3.0.0rc1, 3.0.0rc2, 3.0.0rc2, 3.0.0rc3, 3.0.0rc3, 3.0.0rc4, 3.0.0rc4, 3.0.0rc5, 3.0.0rc5, 3.0.0rc6, 3.0.0rc6, 3.0.0rc7, 3.0.0rc7, 3.0.0rc8, 3.0.0rc8, 3.0.0rc9, 3.0.0rc9", "There are incompatible versions in the resolved dependencies:", " pulpcore==3.4.1 from https://files.pythonhosted.org/packages/5c/40/8dab8ccfe73982ef3a5e48489af2d83974b0e7677ca52ec232fcb4b49dfa/pulpcore-3.4.1-py3-none-any.whl#sha256=e33ca32f867201e1a18b888d72ef07e85c2cd11273a8e422e33d6a2910a64fac (from -r requirements.in (line 1))", " pulpcore<3.5,>=3.4 (from pulp-file==1.0.1->-r requirements.in (line 4))", " pulpcore<3.5,>=3.4 (from pulp-rpm==3.4.1->-r requirements.in (line 6))", " pulpcore<3.5,>=3.4 (from pulp-python==3.0.0b9->-r requirements.in (line 5))", " pulpcore<3.4,>=3.3 (from pulp-deb==2.3.0b1->-r requirements.in (line 3))", " pulpcore<3.5,>=3.0 (from pulp-ansible==0.2.0b13->-r requirements.in (line 2))"], "stdout": "", "stdout_lines": []}
PLAY RECAP ********************************************************************************************************************************************************************************************************** pulp.fancyhost.anon : ok=25 changed=11 unreachable=0 failed=1 skipped=17 rescued=0 ignored=0
Please fix this isseu to make it possible installing pulp with the code from https://github.com/pulp/pulp_installer.
Thanks a lot and best regards
Andreas
Playbook¶
- hosts: all
vars:
pulp_settings:
secret_key: secret
content_origin: "http://{{ ansible_fqdn }}"
pulp_default_admin_password: "MYVERYVERYSECRET"
pulp_install_plugins:
# galaxy-ng: {}
pulp-ansible: {}
# pulp-certguard: {}
# pulp-container: {}
# pulp-cookbook: {}
pulp-deb: {}
pulp-file: {}
# pulp-gem: {}
# pulp-maven: {}
# pulp-npm: {}
pulp-python: {}
pulp-rpm:
prereq_role: "pulp.pulp_rpm_prerequisites" # RPM plugin needs a prereq_role: https://galaxy.ansible.com/pulp/pulp_rpm_prerequisites
roles:
- pulp_database
- pulp_workers
- pulp_resource_manager
- pulp_webserver
- pulp_content environment: DJANGO_SETTINGS_MODULE: pulpcore.app.settings
History
#2
Updated by ipanova@redhat.com 7 months ago
pulp_deb needs a new releaes to stay compatible with pulpcore 3.4 https://github.com/pulp/pulp_deb/blob/2.3/setup.py#L6
#3
Updated by dkliban@redhat.com 7 months ago
New version of pulp_deb has been released. Can you please try again and report if tehre is still a problem. Thanks!
https://www.redhat.com/archives/pulp-list/2020-June/msg00030.html
#4
Updated by dkliban@redhat.com 7 months ago
- Status changed from NEW to CLOSED - WORKSFORME
The installer works on CentOS 8. If you run into any other problems related to centos 8, feel free to open the issue again.
Please register to edit this issue