diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-07-03 17:37:39 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-09-30 11:47:13 +0200 |
commit | 36b7f40bd9fe8f48d8c6ac75b813fb8a59919ef1 (patch) | |
tree | 7cfbd1cdf90181d0b2855210663ceb8cffe1bb79 /jjb | |
parent | e6cb7dc4c70ed34f6e5b322e77b96978cfcfb64d (diff) |
Add logics to cover podman deployments
Change-Id: I12d6e9814c501ae3b3eec2722d3052e4c1b54baa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/functest/xtesting-ci.yaml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/jjb/functest/xtesting-ci.yaml b/jjb/functest/xtesting-ci.yaml index b23bb02f0..64a3fb87c 100644 --- a/jjb/functest/xtesting-ci.yaml +++ b/jjb/functest/xtesting-ci.yaml @@ -6,7 +6,7 @@ set +x sudo apt-get -o DPkg::Lock::Timeout=300 update sudo DEBIAN_FRONTEND=noninteractive apt-get \ - -o DPkg::Lock::Timeout=300 install python3-pip docker.io -y + -o DPkg::Lock::Timeout=300 install python3-pip docker.io podman -y curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64 chmod +x ./kind sudo mv ./kind /usr/local/bin/kind @@ -17,6 +17,8 @@ sudo rm -f /etc/systemd/system/docker.service.d/http-proxy.conf sudo systemctl daemon-reload sudo systemctl restart docker + sudo podman ps -aq |xargs sudo podman stop || true + sudo podman ps -aq |xargs sudo podman rm || true sudo rm -rfv /data /tmp/xtesting* sudo apt-get install ansible patch -y rm -rf ~/.ansible/roles/collivier.xtesting @@ -39,7 +41,7 @@ ssh opnfv@10.200.140.224 << EOF sudo apt-get -o DPkg::Lock::Timeout=300 update sudo DEBIAN_FRONTEND=noninteractive apt-get \ - -o DPkg::Lock::Timeout=300 install python3-pip docker.io -y + -o DPkg::Lock::Timeout=300 install python3-pip docker.io podman -y curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64 chmod +x ./kind sudo mv ./kind /usr/local/bin/kind @@ -50,6 +52,8 @@ sudo rm -f /etc/systemd/system/docker.service.d/http-proxy.conf sudo systemctl daemon-reload sudo systemctl restart docker + sudo podman ps -aq |xargs sudo podman stop || true + sudo podman ps -aq |xargs sudo podman rm || true sudo rm -rfv /data /tmp/xtesting* EOF sudo apt-get install ansible patch -y @@ -114,6 +118,7 @@ name: 'playbook' playbook: - all + - podman - proxy - proxy2 - radosgw |