Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev: behave: update test container to latest tumbleweed and use knet-1.29 #1571

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 28 additions & 80 deletions .github/workflows/crmsh-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- workflow_call

env:
DOCKER_SCRIPT: ./test/run-functional-tests
CONTAINER_SCRIPT: sudo ./test/run-functional-tests
GET_INDEX_OF: ./test/run-functional-tests _get_index_of

jobs:
Expand Down Expand Up @@ -60,10 +60,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for crm_report bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF crm_report_bugs`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -76,10 +74,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for crm_report normal
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF crm_report_normal`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -92,10 +88,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_bugs`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -108,10 +102,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap bugs, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_bugs`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -124,10 +116,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap common
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_init_join_remove`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -140,10 +130,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap common, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_init_join_remove`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -156,10 +144,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap options
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_options`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -172,10 +158,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for crm corosync subcommand
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF corosync_ui`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -188,10 +172,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for bootstrap options, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF bootstrap_options`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -204,10 +186,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice setup and remove
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_setup_remove`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -220,10 +200,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice setup and remove, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_setup_remove`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -236,10 +214,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice options
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_options`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -252,10 +228,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice validate
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_validate`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -268,10 +242,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice validate, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_validate`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -284,10 +256,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for qdevice user case
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF qdevice_usercase`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -300,10 +270,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for resource failcount
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF resource_failcount`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -316,10 +284,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for resource set
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF resource_set`
$DOCKER_SCRIPT $index
$CONTAINER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -332,10 +298,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for resource set, under non root user
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF resource_set`
$DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -348,10 +312,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for configure sublevel bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF configure_bugs`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -364,10 +326,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for constraints bugs
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF constraints_bugs`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -380,10 +340,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for geo cluster
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF geo_setup`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -396,10 +354,8 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for healthcheck
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
index=`$GET_INDEX_OF healthcheck`
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
$CONTAINER_SCRIPT $index && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -412,9 +368,7 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for cluster api
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF cluster_api`
$CONTAINER_SCRIPT `$GET_INDEX_OF cluster_api`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -427,9 +381,7 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for user access
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF user_access`
$CONTAINER_SCRIPT `$GET_INDEX_OF user_access`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -442,9 +394,7 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for ssh agent
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF ssh_agent` && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT -u `$GET_INDEX_OF ssh_agent`
$CONTAINER_SCRIPT `$GET_INDEX_OF ssh_agent` && $CONTAINER_SCRIPT -d && $CONTAINER_SCRIPT -u `$GET_INDEX_OF ssh_agent`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -457,9 +407,7 @@ jobs:
- uses: actions/checkout@v4
- name: functional test for blocking ssh
run: |
echo '{ "exec-opts": ["native.cgroupdriver=systemd"] }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
$DOCKER_SCRIPT `$GET_INDEX_OF cluster_blocking_ssh`
$CONTAINER_SCRIPT `$GET_INDEX_OF cluster_blocking_ssh`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -472,4 +420,4 @@ jobs:
- uses: actions/checkout@v4
- name: original regression test
run: |
$DOCKER_SCRIPT `$GET_INDEX_OF "regression test"`
$CONTAINER_SCRIPT `$GET_INDEX_OF "regression test"`
4 changes: 2 additions & 2 deletions test/features/bootstrap_bugs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ Feature: Regression test for bootstrap bugs
When Run "crm cluster join -c hanode1 -i eth1 -y" on "hanode2"
Then Cluster service is "started" on "hanode2"
When Run "crm corosync get nodelist.node.ring0_addr" on "hanode1"
Then Expected "@hanode2.ip.0" in stdout
Then Expected "@hanode2.ip.1" in stdout
#And Service "hawk.service" is "started" on "hanode2"
When Run "crm cluster remove hanode2 -y" on "hanode1"
Then Online nodes are "hanode1"
And Cluster service is "stopped" on "hanode2"
# verify bsc#1175708
#And Service "hawk.service" is "stopped" on "hanode2"
When Run "crm corosync get nodelist.node.ring0_addr" on "hanode1"
Then Expected "@hanode2.ip.0" not in stdout
Then Expected "@hanode2.ip.1" not in stdout

@clean
Scenario: Multi nodes join in parallel(bsc#1175976)
Expand Down
Loading
Loading