Unable to resolve argument maven:3.5

Bug #1979971 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Triaged
High
Cédric Jeanneret

Bug Description

https://zuul.opendev.org/t/openstack/builds?job_name=tripleo-ansible-centos-stream-molecule-tripleo_redhat_enforce&skip=0 is failing at following error in the migration patch from cs8 to cs9.

Below is the traceback:
```
TASK [debug] *******************************************************************
2022-06-25 06:40:14.275714 | centos-9-stream | ok: [ubi9] =>
2022-06-25 06:40:14.275728 | centos-9-stream | msg:
2022-06-25 06:40:14.275742 | centos-9-stream | - Updating Subscription Management repositories.
2022-06-25 06:40:14.275756 | centos-9-stream | - Unable to read consumer identity
2022-06-25 06:40:14.275770 | centos-9-stream | - Subscription Manager is operating in container mode.
2022-06-25 06:40:14.275784 | centos-9-stream | - ''
2022-06-25 06:40:14.275798 | centos-9-stream | - This system is not registered with an entitlement server. You can use subscription-manager to register.
2022-06-25 06:40:14.275812 | centos-9-stream | - ''
2022-06-25 06:40:14.275826 | centos-9-stream | - 'Last metadata expiration check: 0:00:17 ago on Sat Jun 25 06:39:38 2022.'
2022-06-25 06:40:14.275840 | centos-9-stream |
2022-06-25 06:40:14.275854 | centos-9-stream | TASK [debug] *******************************************************************
2022-06-25 06:40:14.275867 | centos-9-stream | ok: [ubi9] =>
2022-06-25 06:40:14.275881 | centos-9-stream | msg: |-
2022-06-25 06:40:14.275895 | centos-9-stream | "================================================================
2022-06-25 06:40:14.275908 | centos-9-stream | PREPARE: enable maven:3.5
2022-06-25 06:40:14.275922 | centos-9-stream | ================================================================"
2022-06-25 06:40:14.275935 | centos-9-stream |
2022-06-25 06:40:14.275949 | centos-9-stream | TASK [Make sure the module is removed before starting] *************************
2022-06-25 06:40:14.275963 | centos-9-stream | changed: [ubi9]
2022-06-25 06:40:14.275983 | centos-9-stream |
2022-06-25 06:40:14.275999 | centos-9-stream | TASK [Disable the module] ******************************************************
2022-06-25 06:40:14.276013 | centos-9-stream | fatal: [ubi9]: FAILED! => changed=true
2022-06-25 06:40:14.276026 | centos-9-stream | cmd:
2022-06-25 06:40:14.276040 | centos-9-stream | - dnf
2022-06-25 06:40:14.276053 | centos-9-stream | - module
2022-06-25 06:40:14.276067 | centos-9-stream | - -C
2022-06-25 06:40:14.276080 | centos-9-stream | - -y
2022-06-25 06:40:14.276094 | centos-9-stream | - reset
2022-06-25 06:40:14.276108 | centos-9-stream | - maven:3.5
2022-06-25 06:40:14.276121 | centos-9-stream | delta: '0:00:00.879760'
2022-06-25 06:40:14.276135 | centos-9-stream | end: '2022-06-25 06:40:00.691373'
2022-06-25 06:40:14.276149 | centos-9-stream | msg: non-zero return code
2022-06-25 06:40:14.276162 | centos-9-stream | rc: 1
2022-06-25 06:40:14.276197 | centos-9-stream | start: '2022-06-25 06:39:59.811613'
2022-06-25 06:40:14.276212 | centos-9-stream | stderr: |-
2022-06-25 06:40:14.276226 | centos-9-stream | Unable to resolve argument maven:3.5
2022-06-25 06:40:14.276240 | centos-9-stream | Error: Problems in request:
2022-06-25 06:40:14.276253 | centos-9-stream | missing groups or modules: maven:3.5
2022-06-25 06:40:14.276267 | centos-9-stream | stderr_lines: <omitted>
2022-06-25 06:40:14.276280 | centos-9-stream | stdout: |-
2022-06-25 06:40:14.276294 | centos-9-stream | Updating Subscription Management repositories.
2022-06-25 06:40:14.276307 | centos-9-stream | Unable to read consumer identity
2022-06-25 06:40:14.276321 | centos-9-stream | Subscription Manager is operating in container mode.
2022-06-25 06:40:14.276334 | centos-9-stream |
2022-06-25 06:40:14.276348 | centos-9-stream | This system is not registered with an entitlement server. You can use subscription-manager to register.
2022-06-25 06:40:14.276361 | centos-9-stream |
2022-06-25 06:40:14.276375 | centos-9-stream | Last metadata expiration check: 0:00:22 ago on Sat Jun 25 06:39:38 2022.
2022-06-25 06:40:14.276389 | centos-9-stream | stdout_lines: <omitted>
2022-06-25 06:40:14.276402 | centos-9-stream |
```

It is failing at following playbook: https://opendev.org/openstack/tripleo-ansible/src/branch/master/tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml and it uses podman driver for running the tests.

In order to unblock the patch, we are marking the job non-voting and fix it later.

Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

So this comes from another module actually:

tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: PREPARE: enable maven:3.5
tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: command: dnf module -C -y remove maven:3.5
tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: command: dnf module -C -y reset maven:3.5
tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: START: enable maven:3.5
tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: - name: Enable maven:3.5 module
tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: name: "maven:3.5"
tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: VERIFY: enable maven:3.5
tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: shell: "dnf module -C -y list --enabled | grep 'maven\\s*3.5'"
tripleo_ansible/ansible_plugins/tests/molecule/tripleo_dnf_stream/converge.yml: msg: Module maven:3.5 not found

Guess we don't have maven:3.5 anymore on cs9. Doing some investigations.

Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

[root@localhost default]# dnf module list --all
Last metadata expiration check: 0:00:22 ago on Mon 27 Jun 2022 08:30:12 AM EDT.
[root@localhost default]#

No more module on cs9.

We still may need that tripleo_dnf_stream in case we're needing actual stream, but since this is an Upgrade need, I'll let them decide.

Changed in tripleo:
assignee: nobody → Cédric Jeanneret (cjeanner)
Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

After checking with Upgrades folks, we can remove that module from master (and MASTER only).

I'll propose a patch shortly.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/839688
Committed: https://opendev.org/openstack/tripleo-ansible/commit/4c9233d07c0886871719b46b2801c7b0565f26cc
Submitter: "Zuul (22348)"
Branch: master

commit 4c9233d07c0886871719b46b2801c7b0565f26cc
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Mon May 30 09:45:42 2022 +0530

    Use ubi9-init image as base

    CentOS-8 no longer exists and existing jobs are running
    on centos-stream-8. There will be no openstack master
    rpm packages for centos-stream-8.

    In order to use ubi9-init image in molecule jobs,
    we need to include following workarounds:
    - redhat-release package(RH specific package) is installed in ubi-init
      which does not work with centos-stream package.
      On removing redhat-release, dnf ansible breaks as they did not find
      --releasever during package installation.
      - By adding releasever in the package module fixes the issue.
    - In Molecule job, we can use any hostname either of centos or ubi both
      will work.
    - It changes the nodeset and image to ubi9.
    - Install pip < 20.3.0 to avoid https://pip.pypa.io/en/stable/topics/dependency-resolution/#backtracking
      and upstream requirements file to avoid cyclic dependency
      issue.
    - Set enable_fips: true in collectd jobs as in molecule it is not
      needed otherwise job will enter into retry_limit.

    We cannot use centos:stream9 image as, init support is removed
    from there.

    Below is the list of following jobs marked non-voting
    due to following bugs.
    - tripleo-ansible-centos-stream-molecule-tripleo_update_trusted_cas
      - https://bugs.launchpad.net/tripleo/+bug/1979807
    - tripleo-ansible-centos-stream-molecule-tripleo-modules
      - https://bugs.launchpad.net/tripleo/+bug/1979807
    - tripleo-ansible-centos-stream-molecule-tripleo_container_manage
      - https://bugs.launchpad.net/tripleo/+bug/1979810
    - tripleo-ansible-centos-stream-molecule-tripleo_redhat_enforce
      - https://bugs.launchpad.net/tripleo/+bug/1979971
    - tripleo-ansible-centos-stream-molecule-tripleo_collectd
      - https://bugs.launchpad.net/tripleo/+bug/1979972
    - tripleo-ansible-centos-stream-molecule-backup_and_restore
      - https://bugs.launchpad.net/tripleo/+bug/1980198

    Related-Bug: #1979807
    Related-Bug: #1979810
    Related-Bug: #1979971
    Related-Bug: #1979972
    Related-Bug: #1980198

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-ansible (stable/wallaby)

Related fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/848810

Revision history for this message
chandan kumar (chkumar246) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-ansible (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/848130
Committed: https://opendev.org/openstack/tripleo-ansible/commit/22afe5a24f11753eb6cc9164f8c32a2d35256e4d
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 22afe5a24f11753eb6cc9164f8c32a2d35256e4d
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Tue May 17 11:20:32 2022 +0530

    Rename molecule jobs to centos-stream

    https://review.opendev.org/839688 ports the job from
    centos-stream 8 to 9, but the patch size is getting
    bigger and job failures are also high.

    In order to avoid updating the job definitions each time a
    new centos stream release comes, it renames the job
    definitions.

    It also includes:
    - Put the platform mol config under tripleo_dnf_stream
    - Add cleanup step in tripleo_container_configs to cleanup the artifacts
    - Making molecule-tripleo_metrics_qdr job non-voting till
      https://bugs.launchpad.net/tripleo/+bug/1973874 gets fixed.

    Note: It is not a clean cherry-pick, It also includes
    - Job names are modified which were running in wallaby.
    - Added vars to collectd mol job to fix retry_limit
    - Marking following job to non-voting due to
      https://bugs.launchpad.net/tripleo/+bug/1979971
      * tripleo-ansible-centos-stream-molecule-tripleo_redhat_enforce
      * tripleo-ansible-centos-stream-molecule-tripleo-modules
      * tripleo-ansible-centos-stream-molecule-tripleo_update_trusted_cas
      https://bugs.launchpad.net/tripleo/+bug/1979972
      * tripleo-ansible-centos-stream-molecule-tripleo_collectd

    Related-Bug: #1979971
    Related-Bug: #1979972

    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>
    Change-Id: I21dd3741b54ed434e16d89db03e4e37ea093eabb
    (cherry picked from commit d072f6d18ff3bc8c2932b2c5af7ba36f2b20813b)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/848810
Committed: https://opendev.org/openstack/tripleo-ansible/commit/b666c78954fbbe7edfd50b6b949c4921fc6c5518
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit b666c78954fbbe7edfd50b6b949c4921fc6c5518
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Mon May 30 09:45:42 2022 +0530

    Use ubi9-init image as base

    CentOS-8 no longer exists and existing jobs are running
    on centos-stream-8. There will be no openstack master
    rpm packages for centos-stream-8.

    In order to use ubi9-init image in molecule jobs,
    we need to include following workarounds:
    - redhat-release package(RH specific package) is installed in ubi-init
      which does not work with centos-stream package.
      On removing redhat-release, dnf ansible breaks as they did not find
      --releasever during package installation.
      - By adding releasever in the package module fixes the issue.
    - In Molecule job, we can use any hostname either of centos or ubi both
      will work.
    - It changes the nodeset and image to ubi9.
    - Install pip < 20.3.0 to avoid https://pip.pypa.io/en/stable/topics/dependency-resolution/#backtracking
      and upstream requirements file to avoid cyclic dependency
      issue.
    - Set enable_fips: true in collectd jobs as in molecule it is not
      needed otherwise job will enter into retry_limit.

    We cannot use centos:stream9 image as, init support is removed
    from there.

    Below is the list of following jobs marked non-voting
    due to following bugs.
    - tripleo-ansible-centos-stream-molecule-tripleo_update_trusted_cas
      - https://bugs.launchpad.net/tripleo/+bug/1979807
    - tripleo-ansible-centos-stream-molecule-tripleo-modules
      - https://bugs.launchpad.net/tripleo/+bug/1979807
    - tripleo-ansible-centos-stream-molecule-tripleo_container_manage
      - https://bugs.launchpad.net/tripleo/+bug/1979810
    - tripleo-ansible-centos-stream-molecule-tripleo_redhat_enforce
      - https://bugs.launchpad.net/tripleo/+bug/1979971
    - tripleo-ansible-centos-stream-molecule-tripleo_collectd
      - https://bugs.launchpad.net/tripleo/+bug/1979972
    - tripleo-ansible-centos-stream-molecule-backup_and_restore
      - https://bugs.launchpad.net/tripleo/+bug/1980198

    Note: It is not a clean cherry pick.
    - Remove cap from molecule dependency
      to fix No module named 'ansiblelint.prerun'
    - Populate wallaby repos using tripleo-repos tool
    - This includes the commit 0bc2fa808d34235ffe7cf8d36920f6d96f0685b5
      which fixed the issue with the original change in master.
    - Marking tripleo-ansible-centos-stream-molecule-tripleo_packages
      to non-voting due to
      https://bugs.launchpad.net/tripleo/+bug/1983347

    Related-Bug: #1979807
    Related-Bug: #1979810
    Related-Bug: #1979971
    Related-Bug: #1979972
    Related-Bug: #1980198
    Related-Bug: #1983347

    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>
    Change-Id: I75a27ca496fb7670ba22a6a22f62f001c8afe6a9
    (cherry picked from commit 4c9233d07c0886871719b46b2801c7b0565f26cc)

Revision history for this message
Rabi Mishra (rabi) wrote :

@Tengu

Can we make tripleo-ansible-centos-stream-molecule-tripleo_redhat_enforce voting again and close this bug?

I can see green runs for the job on master[1]

[1] https://zuul.opendev.org/t/openstack/builds?job_name=tripleo-ansible-centos-stream-molecule-tripleo_redhat_enforce&skip=0

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.