Project

Profile

Help

Issue #2203

closed

Cannot install nightly build on Fedora 24

Added by Ichimonji10 over 8 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version - OSTree:
Platform Release:
Target Release - OSTree:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Let's say I decide to install Pulp 2.10 and all of its plugins on Fedora 24 with the following script:

#!/usr/bin/env bash
set -euo pipefail

dnf update -y
dnf install -y git vim ansible python-dnf libselinux-python
mkdir code
cd code
git clone https://github.com/pulp/pulp_packaging
cd pulp_packaging
echo localhost > hosts
ansible-playbook -i hosts --connection local -e pulp_version='2.9' \
    ci/ansible/pulp_server.yaml

This will fail when the "Install OSTree" task executes. Here's the error returned by Ansible:

TASK [pulp : Install OSTree] ***************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: -------------
failed: [localhost] (item=[u'pulp-ostree-plugins',
u'pulp-ostree-admin-extensions']) => {
    "failed": true,
    "item": ["pulp-ostree-plugins", "pulp-ostree-admin-extensions"],
    "module_stderr": "…",
    "module_stdout": "",
    "msg": "MODULE FAILURE",
    "parsed": false
}

Here's the contents of module_stderr:

Traceback (most recent call last):
  File "/tmp/ansible_wi4RYe/ansible_module_dnf.py", line 355, in <module>
    main()
  File "/tmp/ansible_wi4RYe/ansible_module_dnf.py", line 349, in main
    ensure(module, base, params['state'], params['name'])
  File "/tmp/ansible_wi4RYe/ansible_module_dnf.py", line 304, in ensure
    base.do_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 591, in do_transaction
    self._trans_error_summary(errstring))
dnf.exceptions.Error: Transaction check error:
  file /usr/lib/python2.7/site-packages/pulp/__init__.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/__init__.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/backports/__init__.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/__init__.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/__init__.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/__init__.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/backports/__init__.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/__init__.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/auth_utils.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/auth_utils.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/backports/pkgutil.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/backports/pkgutil.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/bundle.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/bundle.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/compat.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/compat.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/config.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/config.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/constants.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/constants.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/dateutils.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/dateutils.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/error_codes.py from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/error_codes.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/error_codes.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/lock.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/lock.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/pic.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/pic.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/distributor_constants.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/distributor_constants.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/importer_constants.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/importer_constants.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/progress.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/progress.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/reporting_constants.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/plugins/reporting_constants.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/tags.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/tags.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/util.pyc from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch
  file /usr/lib/python2.7/site-packages/pulp/common/util.pyo from install of python2-pulp-common-2.8.6-1.fc24.noarch conflicts with file from package python-pulp-common-2.10.1-0.1.alpha.git.14.5edefcc.fc24.noarch

Error Summary
-------------

If one applies the following patch to the pulp_packaging repository, then the install on Fedora 24 works just fine:

diff --git a/ci/ansible/roles/pulp/tasks/pulp_server.yaml b/ci/ansible/roles/pulp/tasks/pulp_server.yaml
index 9c6a5cc..d9636df 100644
--- a/ci/ansible/roles/pulp/tasks/pulp_server.yaml
+++ b/ci/ansible/roles/pulp/tasks/pulp_server.yaml
@@ -55,14 +55,6 @@
 - name: Install Pulp Admin (RPM, Puppet, Docker)
   action: "{{ ansible_pkg_mgr }} name=@pulp-admin"

-- name: Install OSTree
-  action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
-  with_items:
-    - pulp-ostree-plugins
-    - pulp-ostree-admin-extensions
-  when: (ansible_distribution == "RedHat" and ansible_distribution_major_version|int >= 7) or
-        (ansible_distribution == "Fedora" and ansible_distribution_major_version|int >= 23)
-
 - name: Install Pulp Python plugin
   action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
   with_items:

Also available in: Atom PDF