tripleo-ci-centos-8-undercloud-upgrade-ussuri is failing RuntimeError: Update extra packages failed: b'sudo: yum: command not found\n

Bug #1903498 reported by Sandeep Yadav
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

Description:-

tripleo-ci-centos-8-undercloud-upgrade-ussuri (voting job) is failing in check queue with RuntimeError: Update extra packages failed: b'sudo: yum: command not found\n'

Build history:-

https://zuul.openstack.org/builds?job_name=tripleo-ci-centos-8-undercloud-upgrade-ussuri

Logs:-

https://dae45d7d5687dfab611e-6ec9504d1ecc47a9ef6950d383ea355d.ssl.cf5.rackcdn.com/757836/12/check/tripleo-ci-centos-8-undercloud-upgrade-ussuri/a3b563e/logs/undercloud/home/zuul/undercloud_upgrade.log

~~~
2020-11-09 06:55:18 | RuntimeError: Update extra packages failed: b'sudo: yum: command not found\n'
2020-11-09 06:55:18 | Update extra packages failed: b'sudo: yum: command not found\n'
~~~

Which is expected as yum rpm is not installed
https://dae45d7d5687dfab611e-6ec9504d1ecc47a9ef6950d383ea355d.ssl.cf5.rackcdn.com/757836/12/check/tripleo-ci-centos-8-undercloud-upgrade-ussuri/a3b563e/logs/undercloud/var/log/extra/package-list-installed.txt

In older good jobs, Upgrade command was invoked using dnf.
https://1e11be38b60141dbb290-777f110ca49a5cd01022e1e8aeff1ed5.ssl.cf1.rackcdn.com/761833/1/check/tripleo-ci-centos-8-undercloud-upgrade-ussuri/f37458d/logs/undercloud/var/log/dnf.log

~~~
2020-11-08T10:11:14Z DEBUG DNF version: 4.2.17
2020-11-08T10:11:14Z DDEBUG Command: dnf upgrade -y python3-tripleoclient openstack-tripleo-common openstack-tripleo-heat-templates openstack-tripleo-validations tripleo-ansible
~~~

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/761892

Revision history for this message
Sagi (Sergey) Shnaidman (sshnaidm) wrote :

In train we have "yum" in tripleoclient, not sure how it worked before 08 Nov, job was passing and using "dnf" according to logs.

Revision history for this message
Marios Andreou (marios-b) wrote :

I am moving this bug to fix-released can't find any examples of the bug at https://zuul.openstack.org/builds?job_name=tripleo-ci-centos-8-undercloud-upgrade-ussuri

I believe this was fixed with https://review.opendev.org/#/c/760635/ for stable/ussuri tripleoclient. The patch referenced in comment #1 is for stable/train and there we are only running centos7 upgrade jobs.

Please move back if you disagree.

Changed in tripleo:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/train)

Reviewed: https://review.opendev.org/761892
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=4a5027a6a6ba258ef30da8eb0f8d21f37d6d0b4c
Submitter: Zuul
Branch: stable/train

commit 4a5027a6a6ba258ef30da8eb0f8d21f37d6d0b4c
Author: Sagi Shnaidman <email address hidden>
Date: Mon Nov 9 13:20:42 2020 +0200

    Add detection of package manager for undercloud upgrade

    In [1] we removed protection for yum not being available.
    We should get it back for train because it may still run on
    centos-7 and have yum.
    [1] https://github.com/openstack/python-tripleoclient/commit/9c53cb3ef5ad513b05d4888552a3280e0eec43ca

    2. Removed redundant jobs from layout to get the patch in.

    Closes-Bug: #1903498
    Change-Id: I5a5d942c87af1f97ebc9ff9bc7be7919af564b46

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 12.4.0

This issue was fixed in the openstack/python-tripleoclient 12.4.0 release.

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.