tripleo-ansible 3.0.1.dev248 depends on tripleo-common>=16.0.0 The user requested (constraint) tripleo-common===15.0.0

Bug #1927171 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

2021-05-04 22:32:56.007619 | primary | INFO: pip is looking at multiple versions of tripleo-quickstart-extras to determine which version is compatible with other requirements. This could take a while.
2021-05-04 22:32:56.011018 | primary | ERROR: Cannot install -r quickstart-extras-requirements.txt (line 13) because these package versions have conflicting dependencies.
2021-05-04 22:32:56.011312 | primary |
2021-05-04 22:32:56.011335 | primary | The conflict is caused by:
2021-05-04 22:32:56.011350 | primary | tripleo-ansible 3.0.1.dev248 depends on tripleo-common>=16.0.0
2021-05-04 22:32:56.011363 | primary | The user requested (constraint) tripleo-common===15.0.0
2021-05-04 22:32:56.011377 | primary |
2021-05-04 22:32:56.011390 | primary | To fix this you could try to:
2021-05-04 22:32:56.011417 | primary | 1. loosen the range of package versions you've specified
2021-05-04 22:32:56.011485 | primary | 2. remove package versions to allow pip attempt to solve the dependency conflict
2021-05-04 22:32:56.011518 | primary |
2021-05-04 22:32:56.011563 | primary | ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
2021-05-04 22:32:57.307481 | primary | ERROR
2021-05-04 22:32:57.307875 | primary | {
2021-05-04 22:32:57.307969 | primary | "delta": "0:01:25.075161",
2021-05-04 22:32:57.308045 | primary | "end": "2021-05-04 22:32:56.884443",
2021-05-04 22:32:57.308117 | primary | "msg": "non-zero return code",
2021-05-04 22:32:57.308188 | primary | "rc": 1,
2021-05-04 22:32:57.308265 | primary | "start": "2021-05-04 22:31:31.809282"
2021-05-04 22:32:57.308335 | primary | }

https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt looks good, but wallaby is at 15.0.0
https://opendev.org/openstack/requirements/src/branch/stable/wallaby/upper-constraints.txt#L97

Tags: alert
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
wes hayutin (weshayutin) wrote :
Revision history for this message
wes hayutin (weshayutin) wrote :

ok.. so now we hit..

2021-05-05 00:56:57.596085 | primary | ERROR! couldn't resolve module/action 'podman_container'. This often indicates a misspelling, missing collection, or incorrect module path.
2021-05-05 00:56:57.596138 | primary |
2021-05-05 00:56:57.596159 | primary | The error appears to be in '/home/zuul/workspace/.quickstart/usr/local/share/ansible/roles/container-build/tasks/main.yaml': line 19, column 7, but may
2021-05-05 00:56:57.596178 | primary | be elsewhere in the file depending on the exact syntax problem.
2021-05-05 00:56:57.596196 | primary |

IN
https://0b2a443b269c045da5fc-70fe5a5f20a67e625f6dcb03e84a8d62.ssl.cf2.rackcdn.com/789653/1/check/tripleo-ci-centos-8-content-provider-wallaby/afa794f/job-output.txt

however... module/action 'podman_container' should be resolved w/ the following line in the ansible.cfg for tq when tripleo-ansible is installed and it is..

action_plugins = /usr/share/ansible/plugins/action:$VIRTUAL_ENV/share/ansible/plugins/action:$VIRTUAL_ENV/lib/python2.7/site-packages/ara/plugins/actions:$VIRTUAL_ENV/lib/python3.6/site-packages/ara/plugins/actions

https://opendev.org/openstack/tripleo-quickstart/src/branch/master/ansible.cfg#L22

https://0b2a443b269c045da5fc-70fe5a5f20a67e625f6dcb03e84a8d62.ssl.cf2.rackcdn.com/789653/1/check/tripleo-ci-centos-8-content-provider-wallaby/afa794f/logs/undercloud/var/log/extra/rpm-list.txt

Revision history for this message
wes hayutin (weshayutin) wrote :

Chandan is also trying to resolve this here:
https://review.opendev.org/c/openstack/tripleo-quickstart/+/786024

Revision history for this message
wes hayutin (weshayutin) wrote :

<weshay|ruck> chandankumar, 0/
[19:57:33] <weshay|ruck> chandankumar, hey.. I know why https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/789173/1/roles/container-build/tasks/main.yaml is not working
[19:58:00] <weshay|ruck> chandankumar, https://opendev.org/openstack/tripleo-quickstart/src/branch/master/setup.cfg#L18-L23
[19:58:24] <weshay|ruck> virt_env/share/ansible/* is not created in the virtual_env by quickstart

We will have to create those dirs via the setup.cfg

Revision history for this message
wes hayutin (weshayutin) wrote :

OK...

So removing the need to install tripleo-ansible and tripleo-operator-ansible from src is a good idea. For some reason the action plugins installed by tripleo-ansible are visible to tq when it executes.

So a potential fix is to ensure packaged requirements are installed via the release file and work around the tripleo-ansible action plugin issue by copying them directly into the virt environment created by tq.

Revision history for this message
Rabi Mishra (rabi) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart (master)

Change abandoned by "wes hayutin <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-quickstart/+/789653
Reason: https://review.opendev.org/c/openstack/tripleo-quickstart/+/789787/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by "wes hayutin <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-quickstart/+/789787
Reason: need to restart

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-quickstart/+/789787
Committed: https://opendev.org/openstack/tripleo-quickstart/commit/851a548a53a8bb784fdf64b29751b507a388b02c
Submitter: "Zuul (22348)"
Branch: master

commit 851a548a53a8bb784fdf64b29751b507a388b02c
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Wed May 5 16:56:36 2021 +0530

    Remove tripleo-ansible dependency

    tripleo-ansible is getting installed in TQ venv via TQE
    requirements.txt file. We are removing that requirements.

    During installation of tripleo-ansible in venv via pip
    causes issues with other packages leading to various module
    import failure.

    It also blocks content provider job as it uses
    podman_container.py module to deploy the content provider
    registry.

    In order to fix all these, we can use the same module
    from tripleo-ansible rpm deployed using repo setup
    and expose it ansible via ansible.cfg library path.

    Closes-Bug: #1927171

    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>

    Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/789937
    Change-Id: I37ef9d381e208b5d3cbee4c88bafb2fcf5b4d86d

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart (master)

Change abandoned by "chandan kumar <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-quickstart/+/786024
Reason: https://review.opendev.org/c/openstack/tripleo-quickstart/+/789787

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart-extras (master)

Change abandoned by "chandan kumar <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/789173
Reason: https://review.opendev.org/c/openstack/tripleo-quickstart/+/789787

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by "chandan kumar <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/789173
Reason: No longer needed

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.