summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
cbe0940)
If sigul is already installed, we can skip the installation. This is
important due to kojipkgs being unreliable. We now have the sigul
binary baked into the base image creation, so newer images should
already have sigul on board. If they do and we still try to do this
manual installation, we could still run into connection issues with
kojipkgs.
Issue: RELENG-3115
Change-Id: I3580b92b8e4c1c72493069bf977f96e36aba6a85
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
--- /dev/null
+---
+fixes:
+ - |
+ Update sigul-install.sh to check for sigul. If sigul is already installed,
+ we can skip the installation. This is important due to kojipkgs being
+ unreliable. We now have the sigul binary baked into the base image creation,
+ so newer images should already have sigul on board. If they do and we still
+ try to do this manual installation, we could still run into connection
+ issues with kojipkgs.
# Ensure we fail the job if any steps fail.
set -e -o pipefail
# Ensure we fail the job if any steps fail.
set -e -o pipefail
-# Setup sigul RPM repo
-echo "[fedora-infra-sigul]
+if command -v sigul &>/dev/null; then
+ echo "Sigul already installed; skipping installation."
+else
+ # Setup sigul RPM repo
+ echo "[fedora-infra-sigul]
name=Fedora builder packages for sigul
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel\$releasever-infra/latest/\$basearch/
enabled=1
name=Fedora builder packages for sigul
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel\$releasever-infra/latest/\$basearch/
enabled=1
includepkgs=sigul*
skip_if_unavailable=True" > fedora-infra-sigul.repo
includepkgs=sigul*
skip_if_unavailable=True" > fedora-infra-sigul.repo
-sudo cp fedora-infra-sigul.repo /etc/yum.repos.d
-rm fedora-infra-sigul.repo
-
-# install sigul
-sudo yum install -y -q sigul
+ sudo cp fedora-infra-sigul.repo /etc/yum.repos.d
+ rm fedora-infra-sigul.repo
+ # install sigul
+ sudo yum install -y -q sigul
+fi;
# configure /etc/hosts with the sigul bridge hostname
# This is needed as build minions can't always get DNS resolution
# on the bridge
# configure /etc/hosts with the sigul bridge hostname
# This is needed as build minions can't always get DNS resolution
# on the bridge