]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
reconfigure apt during every "pbuilder update" 667/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 23 Mar 2017 22:17:30 +0000 (16:17 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 23 Mar 2017 22:17:30 +0000 (16:17 -0600)
The nfs-ganesha pbuilder setup code configures the pbuilder caches to
point at repos from shaman. Since all Jenkins jobs uses the same
pbuilder cache tarballs, this means that these shaman repositories will
still be enabled in the next jobs that run on a slave.

1) nfs-ganesha job runs on a slave
2) nfs-ganesha job configures pbuilder cache to use shaman repo
3) nfs-ganesha job finishes
4) ceph-build job runs on same slave slave
5) ceph-build job uses same pbuilder cache with shaman repo configured

In addition to polluting the pbuilder environment, this can also lead to
pbuilder failures when shaman/chacra garbage-collects old repositories,
because Apt wants to download repo metadata from old ceph repos that
are no longer available.

Force every job that runs "pbuilder update" to also run with
"--override-config" in order to wipe out any apt repositories that may
have been configured in the cache.

ceph-build/build/setup_pbuilder
ceph-dev-build/build/setup_pbuilder
ceph-dev-new-build/build/setup_pbuilder
diamond-build/build/setup_pbuilder
scripts/build_utils.sh

index f45a9a1fda1b2c3c677c7c7f52e1541bf7b0151a..12f9797a52ac2303b9d651d87d625344e45c33f1 100755 (executable)
@@ -91,7 +91,8 @@ if [ -e $basedir/$DIST.tgz ]; then
     sudo pbuilder update \
     --basetgz $basedir/$DIST.tgz \
     --distribution $DIST \
-    --mirror "$mirror"
+    --mirror "$mirror" \
+    --override-config
 else
     echo building $DIST base.tgz
     sudo pbuilder create \
index f45a9a1fda1b2c3c677c7c7f52e1541bf7b0151a..12f9797a52ac2303b9d651d87d625344e45c33f1 100755 (executable)
@@ -91,7 +91,8 @@ if [ -e $basedir/$DIST.tgz ]; then
     sudo pbuilder update \
     --basetgz $basedir/$DIST.tgz \
     --distribution $DIST \
-    --mirror "$mirror"
+    --mirror "$mirror" \
+    --override-config
 else
     echo building $DIST base.tgz
     sudo pbuilder create \
index f45a9a1fda1b2c3c677c7c7f52e1541bf7b0151a..12f9797a52ac2303b9d651d87d625344e45c33f1 100755 (executable)
@@ -91,7 +91,8 @@ if [ -e $basedir/$DIST.tgz ]; then
     sudo pbuilder update \
     --basetgz $basedir/$DIST.tgz \
     --distribution $DIST \
-    --mirror "$mirror"
+    --mirror "$mirror" \
+    --override-config
 else
     echo building $DIST base.tgz
     sudo pbuilder create \
index 0e352c749c628f2f0767c133249818de0d2a5216..15f2f16576c9de24bdd3f27b0f05d1d4fc359077 100755 (executable)
@@ -81,7 +81,8 @@ if [ -e $basedir/$DIST.tgz ]; then
     sudo pbuilder update \
     --basetgz $basedir/$DIST.tgz \
     --distribution $DIST \
-    --mirror "$mirror"
+    --mirror "$mirror" \
+    --override-config
 else
     echo building $DIST base.tgz
     sudo pbuilder create \
index 0874891dff35ee9b5e4f57424ce204f6db406b89..db5e7e8655565e033f3255a8145008c1f6fe90b8 100644 (file)
@@ -396,7 +396,8 @@ setup_pbuilder() {
         sudo pbuilder update \
         --basetgz $basedir/$DIST.tgz \
         --distribution $DIST \
-        --mirror "$mirror"
+        --mirror "$mirror" \
+        --override-config
     else
         echo building $DIST base.tgz
         sudo pbuilder create \