Jenkins EL7 slaves configured as Fedora slaves

Description

This morning I'm seeing jobs failing trying to use DNF instead of YUM on EL7 slaves because of the existence of /etc/dnf directory on EL7 slaves:

Example job:http://jenkins.ovirt.org/job/ovirt-release_4.1_check-patch-el7-x86_64/100/console

Example slave: http://jenkins.ovirt.org/computer/vm0085.workers-phx.ovirt.org

println "ls -l /etc/dnf".execute().text
println "cat /etc/os-release".execute().text

Result

total 8
rw-rr-. 1 root root 1562 Sep 16 05:43 dnf.conf
rw-rr-. 1 root root 72 Mar 4 2015 dnf.conf.old
drwxr-xr-x. 2 root root 6 Jul 7 2015 plugins
drwxr-xr-x. 2 root root 21 Sep 14 21:57 protected.d

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Please fix slaves configuration.

Activity

Show:
Barak Korren
September 18, 2017, 6:27 AM

Reducing priority since I don not regard this as a real system issue.

Eyal Edri
September 18, 2017, 8:33 AM

From the job it looks like cleanup error issue:

05:52:58 error: Failed to destroy domain f0e6d58d-53f1-4f07-9b30-082380a09ece
05:52:58 error: Requested operation is not valid: domain is not running
05:52:58
05:53:00 error: Storage volume 'hda'(/home/jenkins/workspace/ovirt-node-ng_ovirt-4.2_build-artifacts-el7-x86_64/ovirt-node-ng/build/diskGZCMNL.img) is not managed by libvirt. Remove it manually.
05:53:00
05:53:00 error: Storage volume 'hdb'(/home/jenkins/workspace/ovirt-node-ng_ovirt-4.2_build-artifacts-el7-x86_64/ovirt-node-ng/boot.iso) is not managed by libvirt. Remove it manually.
05:53:00
05:53:00 Domain f0e6d58d-53f1-4f07-9b30-082380a09ece ha

Barak Korren
September 18, 2017, 8:39 AM

that is not the error that caused the job failure, this is:

Eyal Edri
September 18, 2017, 8:50 AM

I see, so maybe this line: [[ -d /etc/dnf ]] && dnf -y reinstall dnf-conf can change to something using the new availalbe ENV variables we have?
To check if you're on EL or Fedora?

e.g:
if [[ "$STD_CI_DISTRO" != "el7" ]]; then ( or = fc* ? )
dnf -y reinstall dnf-conf
fi

Eyal Edri
December 26, 2017, 1:08 PM

doesn't seem to be a real issue, please reopen if you still think something should be done.

Assignee

infra

Reporter

Sandro Bonazzola

Blocked By

None

Components

Priority

Lowest
Configure