]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/distros/podman: preserve registries.conf
authorSage Weil <sage@newdream.net>
Mon, 5 Apr 2021 18:49:18 +0000 (13:49 -0500)
committerDeepika Upadhyay <dupadhya@redhat.com>
Tue, 22 Jun 2021 14:50:54 +0000 (20:20 +0530)
Otherwise we'll lose the mirror configuration.

trivial-fix:

specify location for container registry since we use sepia labs as our
container registery, which otherwise can't find registries.conf

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 917a9c49e55ab107c1e5b1d035398344bcd33858)

qa/distros/podman/centos_8.2_kubic_stable.yaml
qa/distros/podman/rhel_8.3_kubic_stable.yaml
qa/distros/podman/ubuntu_18.04_kubic_stable.yaml
qa/distros/podman/ubuntu_20.04_kubic_stable.yaml
qa/distros/podman/ubuntu_20.04_kubic_testing.yaml

index dde0c532c65f5c089e145607b007c3f8d65efaf5..5ea907f758fa70c67f95ad2f1bc40b6a82e0ff80 100644 (file)
@@ -8,9 +8,12 @@ overrides:
 tasks:
 - exec:
     all:
+    - echo -e "[[registry]]\nlocation = 'docker.io'\n\n[[registry.mirror]]\nlocation='docker-mirror.front.sepia.ceph.com:5000'\n" | sudo tee /etc/containers/registries.conf
+    - sudo cp /etc/containers/registries.conf /etc/containers/registries.conf.backup
     - sudo dnf -y module disable container-tools
     - sudo dnf -y install 'dnf-command(copr)'
     - sudo dnf -y copr enable rhcontainerbot/container-selinux
     - sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/devel:kubic:libcontainers:stable.repo
     - sudo dnf remove -y podman
     - sudo dnf -y install podman
+    - sudo cp /etc/containers/registries.conf.backup /etc/containers/registries.conf
index 817dd3b47e9d123fc8955ea5a804849002f5687a..541cf5180e357b90f4425bbcb2b89852ea163f0b 100644 (file)
@@ -8,9 +8,12 @@ overrides:
 tasks:
 - exec:
     all:
+    - echo -e "[[registry]]\nlocation = 'docker.io'\n\n[[registry.mirror]]\nlocation='docker-mirror.front.sepia.ceph.com:5000'\n" | sudo tee /etc/containers/registries.conf
+    - sudo cp /etc/containers/registries.conf /etc/containers/registries.conf.backup
     - sudo dnf -y module disable container-tools
     - sudo dnf -y install 'dnf-command(copr)'
     - sudo dnf -y copr enable rhcontainerbot/container-selinux
     - sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/devel:kubic:libcontainers:stable.repo
     - sudo dnf remove -y podman
     - sudo dnf -y install podman
+    - sudo cp /etc/containers/registries.conf.backup /etc/containers/registries.conf
index 214e964ac80a31d6556c8b1faac34ecbd848ef40..136d5c4f8651354ff5f529d817dd0c2753445d00 100644 (file)
@@ -5,8 +5,10 @@ os_version: "18.04"
 tasks:
 - exec:
     all:
+    - echo -e "[[registry]]\nlocation = 'docker.io'\n\n[[registry.mirror]]\nlocation='docker-mirror.front.sepia.ceph.com:5000'\n" | sudo tee /etc/containers/registries.conf
+    - sudo cp /etc/containers/registries.conf /etc/containers/registries.conf.backup
     - curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/Release.key | sudo apt-key add -
     - echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
     - sudo apt update
     - sudo apt -y install podman
-    - echo -e "[[registry]]\nlocation = 'docker.io'\n\n[[registry.mirror]]\nlocation='docker-mirror.front.sepia.ceph.com:5000'\n" | sudo tee /etc/containers/registries.conf
+    - sudo cp /etc/containers/registries.conf.backup /etc/containers/registries.conf
index bd57bbf3d139bf68e5c55348da022f6b23ad2a3a..9c42eb2ffb8a535a581757a5431c336c605e1289 100644 (file)
@@ -5,8 +5,10 @@ os_version: "20.04"
 tasks:
 - exec:
     all:
+    - echo -e "[[registry]]\nlocation = 'docker.io'\n\n[[registry.mirror]]\nlocation='docker-mirror.front.sepia.ceph.com:5000'\n" | sudo tee /etc/containers/registries.conf
+    - sudo cp /etc/containers/registries.conf /etc/containers/registries.conf.backup
     - curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/Release.key | sudo apt-key add -
     - echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
     - sudo apt update
-    - sudo apt -y install podman
-    - echo -e "[[registry]]\nlocation = 'docker.io'\n\n[[registry.mirror]]\nlocation='docker-mirror.front.sepia.ceph.com:5000'\n" | sudo tee /etc/containers/registries.conf
+    - sudo apt -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install podman containernetworking-plugins
+    - sudo cp /etc/containers/registries.conf.backup /etc/containers/registries.conf
index 5656703fd3eebb3abdbfa06cd5d5c80fd9fbd16c..75e72d7397b6a16b2551e03be5eb6e820bc45990 100644 (file)
@@ -5,8 +5,10 @@ os_version: "20.04"
 tasks:
 - exec:
     all:
+    - echo -e "[[registry]]\nlocation = 'docker.io'\n\n[[registry.mirror]]\nlocation='docker-mirror.front.sepia.ceph.com:5000'\n" | sudo tee /etc/containers/registries.conf
+    - sudo cp /etc/containers/registries.conf /etc/containers/registries.conf.backup
     - curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_20.04/Release.key | sudo apt-key add -
     - echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_20.04/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:testing.list
     - sudo apt update
-    - sudo apt -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install podman
-    - echo -e "[[registry]]\nlocation = 'docker.io'\n\n[[registry.mirror]]\nlocation='docker-mirror.front.sepia.ceph.com:5000'\n" | sudo tee /etc/containers/registries.conf
+    - sudo apt -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install podman containernetworking-plugins
+    - sudo cp /etc/containers/registries.conf.backup /etc/containers/registries.conf