Skip to content

Commit 415f7ca

Browse files
authored
Merge pull request ceph#58324 from kamoltat/wip-ksirivad-fix-63784
qa/standalone/mon: Fix mkfs test & TEST_LOG failures
2 parents d526572 + c0c7686 commit 415f7ca

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

qa/standalone/mon/mkfs.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ function auth_cephx_key() {
129129
if mon_mkfs --key='corrupted key' ; then
130130
return 1
131131
else
132-
rm -fr $MON_DIR/store.db
133-
rm -fr $MON_DIR/kv_backend
132+
rm -fr $MON_DIR
134133
fi
135134

136135
mon_mkfs --key=$key

qa/standalone/mon/mon-cluster-log.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function TEST_cluster_log_level() {
5959
ERRORS=$(($ERRORS + 1))
6060
fi
6161

62+
ceph config set mon.a mon_cluster_log_level info
6263
ceph osd down 0
6364
TIMEOUT=20 wait_for_osd up 0 || return 1
6465
grep -q "cluster [[]INF[]] osd.0.*boot" $dir/log
@@ -68,7 +69,6 @@ function TEST_cluster_log_level() {
6869
ERRORS=$(($ERRORS + 1))
6970
fi
7071

71-
ceph config set mon.a mon_cluster_log_level info
7272
ceph pg deep-scrub 1.1
7373
search_str="cluster [[]DBG[]] 1.1 deep-scrub"
7474
TIMEOUT=60 wait_for_string $dir/log "$search_str"
@@ -134,7 +134,7 @@ function TEST_journald_cluster_log_level() {
134134
search_str="1.0 deep-scrub"
135135
TIMEOUT=60
136136
sleep $TIMEOUT
137-
journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=7 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
137+
sudo journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=7 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
138138
grep -q "$search_str" $dir/journal.log
139139
return_code=$?
140140
if [ $return_code -ne 0 ]; then
@@ -145,7 +145,7 @@ function TEST_journald_cluster_log_level() {
145145
ceph osd down 0
146146
TIMEOUT=20 wait_for_osd up 0 || return 1
147147
search_str="osd.0.*boot"
148-
journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=6 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
148+
sudo journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=6 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
149149
grep -q "$search_str" $dir/journal.log
150150
return_code=$?
151151
if [ $return_code -ne 0 ]; then
@@ -158,7 +158,7 @@ function TEST_journald_cluster_log_level() {
158158
TIMEOUT=60
159159
sleep $TIMEOUT
160160
search_str="1.1 deep-scrub"
161-
journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=7 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
161+
sudo journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=7 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
162162
grep -q "$search_str" $dir/journal.log
163163
return_code=$?
164164
if [ $return_code -eq 0 ]; then
@@ -172,7 +172,7 @@ function TEST_journald_cluster_log_level() {
172172
ceph osd unset noup
173173
TIMEOUT=60 wait_for_osd up 0 || return 1
174174
search_str="Health check failed: noup flag(s) set (OSDMAP_FLAGS)"
175-
journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=4 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
175+
sudo journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=4 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
176176
grep -q "$search_str" $dir/journal.log
177177
return_code=$?
178178
if [ $return_code -ne 0 ]; then
@@ -185,7 +185,7 @@ function TEST_journald_cluster_log_level() {
185185
WAIT_FOR_CLEAN_TIMEOUT=60 wait_for_clean
186186
search_str="Client client.admin marked osd.0 out, while it was still marked up"
187187
ceph log last | grep -q "$search_str" || return 1
188-
journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=6 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
188+
sudo journalctl _COMM=ceph-mon CEPH_CHANNEL=cluster PRIORITY=6 --output=json-pretty --since "60 seconds ago" |jq '.MESSAGE' > $dir/journal.log
189189
grep -q "$search_str" $dir/journal.log
190190
return_code=$?
191191
if [ $return_code -eq 0 ]; then

0 commit comments

Comments
 (0)