@@ -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