RHEL-8 qdrouterd container fails to build because of yum command

Bug #1851135 reported by Sagi (Sergey) Shnaidman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Sagi (Sergey) Shnaidman

Bug Description

http://logs.rdoproject.org/63/22163/6/check/periodic-tripleo-rhel-8-master-containers-build-push/bf5423a/logs/buildah-builds/kolla-c7ijxoy2/docker/qdrouterd/qdrouterd-build.log.txt.gz

STEP 1: FROM trunk.registry.rdoproject.org/tripleomaster/rhel-binary-base:a15e7bcc4e3b89644754252481e903cb9d28cf00_10e135ca
STEP 2: LABEL maintainer="Kolla Project (https://launchpad.net/kolla)" name="qdrouterd" build-date="20191103"
STEP 3: RUN usermod --append --home /var/lib/qdrouterd --groups kolla qdrouterd && mkdir -p /var/lib/qdrouterd && chown -R 42465:42465 /var/lib/qdrouterd
STEP 4: RUN yum-config-manager --disable epel centos-release-opstools extras
/bin/sh: yum-config-manager: command not found

http://logs.rdoproject.org/63/22163/6/check/periodic-tripleo-rhel-8-master-containers-build-push/bf5423a/logs/build.log.txt.gz

2019-11-03 08:43:31 | Traceback (most recent call last):
2019-11-03 08:43:31 | File "/home/zuul/workspace/venv_build/lib/python3.6/site-packages/tripleoclient/command.py", line 32, in run
2019-11-03 08:43:31 | super(Command, self).run(parsed_args)
2019-11-03 08:43:31 | File "/home/zuul/workspace/venv_build/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
2019-11-03 08:43:31 | return super(Command, self).run(parsed_args)
2019-11-03 08:43:31 | File "/home/zuul/workspace/venv_build/lib/python3.6/site-packages/cliff/command.py", line 185, in run
2019-11-03 08:43:31 | return_code = self.take_action(parsed_args) or 0
2019-11-03 08:43:31 | File "/home/zuul/workspace/venv_build/lib/python3.6/site-packages/tripleoclient/v1/container_image.py", line 219, in take_action
2019-11-03 08:43:31 | bb.build_all()
2019-11-03 08:43:31 | File "/home/zuul/workspace/venv_build/lib/python3.6/site-packages/tripleo_common/image/builder/buildah.py", line 197, in build_all
2019-11-03 08:43:31 | self.build_all(deps.get(container))
2019-11-03 08:43:31 | File "/home/zuul/workspace/venv_build/lib/python3.6/site-packages/tripleo_common/image/builder/buildah.py", line 186, in build_all
2019-11-03 08:43:31 | raise SystemError(job._exception)
2019-11-03 08:43:31 | SystemError: Unexpected error while running command.
2019-11-03 08:43:31 | Command: sudo buildah bud --tls-verify=False --logfile /tmp/kolla-c7ijxoy2/docker/qdrouterd/qdrouterd-build.log -t trunk.registry.rdoproject.org/tripleomaster/rhel-binary-qdrouterd:a15e7bcc4e3b89644754252481e903cb9d28cf00_10e135ca /tmp/kolla-c7ijxoy2/docker/qdrouterd
2019-11-03 08:43:31 | Exit code: 1
2019-11-03 08:43:31 | Stdout: ''
2019-11-03 08:43:31 | Stderr: 'error building at step {Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm HOSTNAME= LANG=en_US.UTF-8 container=oci KOLLA_BASE_DISTRO=rhel KOLLA_INSTALL_TYPE=binary KOLLA_INSTALL_METATYPE=rdo KOLLA_DISTRO_PYTHON_VERSION=3.6 KOLLA_BASE_ARCH=x86_64 PS1=$(tput bold)($(printenv KOLLA_SERVICE_NAME))$(tput sgr0)[$(id -un)@$(hostname -s) $(pwd)]$ ] Command:run Args:[yum-config-manager --disable epel centos-release-opstools extras] Flags:[] Attrs:map[] Message:RUN yum-config-manager --disable epel centos-release-opstools extras Original:RUN yum-config-manager --disable epel centos-release-opstools extras}: error while running runtime: exit status 127\n'
2019-11-03 08:43:31 | Unexpected error while running command.
2019-11-03 08:43:31 | Command: sudo buildah bud --tls-verify=False --logfile /tmp/kolla-c7ijxoy2/docker/qdrouterd/qdrouterd-build.log -t trunk.registry.rdoproject.org/tripleomaster/rhel-binary-qdrouterd:a15e7bcc4e3b89644754252481e903cb9d28cf00_10e135ca /tmp/kolla-c7ijxoy2/docker/qdrouterd
2019-11-03 08:43:31 | Exit code: 1
2019-11-03 08:43:31 | Stdout: ''
2019-11-03 08:43:31 | Stderr: 'error building at step {Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm HOSTNAME= LANG=en_US.UTF-8 container=oci KOLLA_BASE_DISTRO=rhel KOLLA_INSTALL_TYPE=binary KOLLA_INSTALL_METATYPE=rdo KOLLA_DISTRO_PYTHON_VERSION=3.6 KOLLA_BASE_ARCH=x86_64 PS1=$(tput bold)($(printenv KOLLA_SERVICE_NAME))$(tput sgr0)[$(id -un)@$(hostname -s) $(pwd)]$ ] Command:run Args:[yum-config-manager --disable epel centos-release-opstools extras] Flags:[] Attrs:map[] Message:RUN yum-config-manager --disable epel centos-release-opstools extras Original:RUN yum-config-manager --disable epel centos-release-opstools extras}: error while running runtime: exit status 127\n'

tags: added: alert promotion-blocker
Revision history for this message
Alan Pevec (apevec) wrote :
Revision history for this message
Alan Pevec (apevec) wrote :

review which introduced y-c-m https://review.opendev.org/691631

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

Submitted a fix:

https://review.opendev.org/692796
Fix centos qdrouterd for centos > 7

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

Another fix:
https://review.opendev.org/692978
Limit centos repo disable to centos hosts only

Revision history for this message
Ronelle Landy (rlandy) wrote :
Revision history for this message
Ronelle Landy (rlandy) wrote :

sorry - added to wrong bug ^^

Changed in tripleo:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 9.0.0.0rc2

This issue was fixed in the openstack/kolla 9.0.0.0rc2 release candidate.

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.