Skip to content

Commit f64e3be

Browse files
authored
Merge pull request #850 from barakda/atom_cleanup_improve_and_sha_update
atom stabilization issues fix
2 parents 3966c06 + 963f3ac commit f64e3be

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ CEPH_SHA=b59673c44bd569f9f3db37f87bced695dec5fcbf
7171
CEPH_DEVEL_MGR_PATH=../ceph
7272

7373
# Atom
74-
ATOM_SHA=3506b53e1da8a769f079d0b600899e45e513df34
74+
ATOM_SHA=ea4461ac526d6b66ccf0f93d693aa31d929932ad
7575

7676
# Demo settings
7777
RBD_POOL=rbd

tests/atom/atomEnvInit.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
ATOM_SHA=$1
44
ACTION_URL=$2
5+
RUNNER_FILDER='/home/cephnvme/actions-runner-ceph'
56

67
cleanup_docker_images() {
78
local HOST=$1
@@ -15,7 +16,7 @@ EOF
1516
}
1617

1718
# Remove previous run data
18-
rm -rf /home/cephnvme/actions-runner-ceph/ceph-nvmeof-atom
19+
rm -rf $RUNNER_FILDER/ceph-nvmeof-atom
1920
sudo rm -rf /root/.ssh/atom_backup/artifact/multiIBMCloudServers_m2/*
2021

2122
# Check if cluster is busy with another run
@@ -35,7 +36,7 @@ done
3536
sudo docker ps -q | xargs -r sudo docker stop; sudo docker ps -q | xargs -r sudo docker rm -f; sudo yes | docker system prune -fa; docker ps; docker images
3637

3738
# Cloning atom repo
38-
cd /home/cephnvme/actions-runner-ceph
39+
cd $RUNNER_FILDER
3940
git clone git@github.ibm.com:NVME-Over-Fiber/ceph-nvmeof-atom.git
4041
if [ $? -ne 0 ]; then
4142
echo "Error: Failed to clone the atom repository."
@@ -51,7 +52,7 @@ if [ $? -ne 0 ]; then
5152
fi
5253

5354
# Build atom images based on the cloned repo
54-
docker build -t nvmeof_atom:$ATOM_SHA /home/cephnvme/actions-runner-ceph/ceph-nvmeof-atom
55+
docker build -t nvmeof_atom:$ATOM_SHA $RUNNER_FILDER/ceph-nvmeof-atom
5556
if [ $? -ne 0 ]; then
5657
echo "Error: Failed to build Docker image."
5758
exit 1
@@ -74,4 +75,11 @@ for HOST in "${HOSTS[@]}"; do
7475
fi
7576
done
7677

77-
sudo podman ps -q | xargs -r sudo podman stop; sudo podman ps -q | xargs -r sudo podman rm -f; sudo yes | podman system prune -fa; podman ps; podman images
78+
echo "Cleaning up Podman containers and images on installer"
79+
sudo podman ps -q | xargs -r sudo podman stop
80+
sudo podman ps -q | xargs -r sudo podman rm -f
81+
sudo podman rmi -f $(sudo podman images -q)
82+
sudo yes | podman system prune -fa
83+
echo "show exist podman images/containers (should be empty)"
84+
sudo podman ps
85+
sudo podman images

tests/atom/clusterBuildTestsRun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sudo docker run \
2727
quay.ceph.io/ceph-ci/ceph:"$CEPH_SHA" \
2828
quay.io/ceph/nvmeof:"$VERSION" \
2929
quay.io/ceph/nvmeof-cli:"$VERSION" \
30-
None None None None None None 4 1 1 2 4 1024 2 2 200M 0 1 20 \
30+
None None None None None None 4 1 1 2 4 1024 2 2 200M 0 1 20 20 1 \
3131
--stopNvmeofDaemon \
3232
--stopNvmeofSystemctl \
3333
--stopMonLeader \

0 commit comments

Comments
 (0)