Bug #74178
closedqa/standalone/mon/availability.sh: line 64: Syntax error due to missing availability status
0%
Description
Found in QA run https://tracker.ceph.com/issues/74097 testing https://github.com/ceph/ceph/pull/65563/.
/a/yuriw-2025-12-05_16:00:42-rados-wip-yuri2-testing-2025-12-04-0735-distro-default-smithi/8642550/teuthology.log:
2025-12-05T16:34:19.124 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:54: TEST_availablity_score: ceph -s
2025-12-05T16:34:19.727 INFO:tasks.workunit.client.0.smithi062.stdout: cluster:
2025-12-05T16:34:19.727 INFO:tasks.workunit.client.0.smithi062.stdout: id: adb834e0-fdb6-412a-8fac-4cfc6540a192
2025-12-05T16:34:19.727 INFO:tasks.workunit.client.0.smithi062.stdout: health: HEALTH_OK
2025-12-05T16:34:19.727 INFO:tasks.workunit.client.0.smithi062.stdout:
2025-12-05T16:34:19.727 INFO:tasks.workunit.client.0.smithi062.stdout: services:
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout: mon: 1 daemons, quorum a (age 103s) [leader: a]
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout: mgr: x(active, since 93s)
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout: osd: 3 osds: 3 up (since 12s), 3 in (since 40s)
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout:
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout: data:
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout: pools: 1 pools, 64 pgs
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout: objects: 0 objects, 0 B
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout: usage: 79 MiB used, 300 GiB / 300 GiB avail
2025-12-05T16:34:19.728 INFO:tasks.workunit.client.0.smithi062.stdout: pgs: 64 active+clean
2025-12-05T16:34:19.746 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:55: TEST_availablity_score: ceph health
2025-12-05T16:34:19.746 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:55: TEST_availablity_score: grep HEALTH_OK
2025-12-05T16:34:20.309 INFO:tasks.workunit.client.0.smithi062.stdout:HEALTH_OK
2025-12-05T16:34:20.309 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:57: TEST_availablity_score: ceph config set mon enable_availability_tracking true
2025-12-05T16:34:20.877 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:59: TEST_availablity_score: ceph osd pool availability-status
2025-12-05T16:34:21.374 INFO:tasks.workunit.client.0.smithi062.stdout:POOL UPTIME DOWNTIME NUMFAILURES MTBF MTTR SCORE AVAILABLE
2025-12-05T16:34:21.394 INFO:tasks.workunit.client.0.smithi062.stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:60: TEST_availablity_score: grep -w foo
2025-12-05T16:34:21.394 INFO:tasks.workunit.client.0.smithi062.stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:60: TEST_availablity_score: ceph osd pool availability-status
2025-12-05T16:34:21.886 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:60: TEST_availablity_score: AVAILABILITY_STATUS=
2025-12-05T16:34:21.888 INFO:tasks.workunit.client.0.smithi062.stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:61: TEST_availablity_score: echo ''
2025-12-05T16:34:21.888 INFO:tasks.workunit.client.0.smithi062.stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:61: TEST_availablity_score: awk '{print $7}'
2025-12-05T16:34:21.890 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:61: TEST_availablity_score: SCORE=
2025-12-05T16:34:21.890 INFO:tasks.workunit.client.0.smithi062.stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:62: TEST_availablity_score: echo ''
2025-12-05T16:34:21.891 INFO:tasks.workunit.client.0.smithi062.stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:62: TEST_availablity_score: awk '{print $8}'
2025-12-05T16:34:21.893 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:62: TEST_availablity_score: IS_AVAILABLE=
2025-12-05T16:34:21.894 INFO:tasks.workunit.client.0.smithi062.stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:63: TEST_availablity_score: echo ''
2025-12-05T16:34:21.894 INFO:tasks.workunit.client.0.smithi062.stderr://home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:63: TEST_availablity_score: awk '{print $2}'
2025-12-05T16:34:21.896 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh:63: TEST_availablity_score: UPTIME_DURATION=
2025-12-05T16:34:21.896 INFO:tasks.workunit.client.0.smithi062.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/mon/availability.sh: line 64: * ( == m ? 60 : 1) : syntax error: operand expected (error token is "* ( == m ? 60 : 1) ")
2025-12-05T16:34:21.897 DEBUG:teuthology.orchestra.run:got remote process result: 1
Looks like there is a pool but no output for ceph osd pool availability-status which causes the test to fall over.
LF Updated by Laura Flores 10 months ago
/a/lflores-2026-01-21_20:56:39-rados-main-distro-default-trial/12001
LF Updated by Laura Flores 10 months ago
- Has duplicate Bug #74582: qa/standalone/mon/availability.sh: syntax error: operand expected (error token is "* ( == m ? 60 : 1) " added
LF Updated by Laura Flores 10 months ago
/a/lflores-2026-01-23_19:07:45-rados-wip-rocky10-branch-of-the-day-2026-01-23-1769128778-distro-default-trial/15408
LF Updated by Laura Flores 10 months ago
/a/lflores-2026-01-26_23:21:06-rados-wip-yuri12-testing-2026-01-22-2045-distro-default-trial/19109
LF Updated by Laura Flores 10 months ago
@Shraddha Agrawal any update on this issue? Writing from bug scrub.
LF Updated by Laura Flores 10 months ago
- Tags set to test-failure
SS Updated by Sridhar Seshasayee 10 months ago
/a/skanta-2026-01-27_05:35:03-rados-wip-bharath1-testing-2026-01-26-1242-distro-default-trial/19778
NM Updated by Nitzan Mordechai 10 months ago
/a/yuriw-2026-01-29_18:33:05-rados-wip-yuri2-testing-2026-01-28-1643-tentacle-distro-default-trial/26518
SA Updated by Shraddha Agrawal 10 months ago
- Status changed from New to In Progress
- Pull request ID set to 67181
LF Updated by Laura Flores 10 months ago
- Status changed from In Progress to Fix Under Review
SA Updated by Shraddha Agrawal 10 months ago ยท Edited
The PR with the fix for this is merged: https://github.com/ceph/ceph/pull/67181. @Laura Flores do we need to backport it to tentacle? I assume we should be seeing errors for this in tentacle as well.
Edit: Ah, I see the occurence posted by Nitzan for tentacle as well. Will update backports field and create the respective PR.
UB Updated by Upkeep Bot 10 months ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to df8b82766ec320d32bc4969f4de96e6fa4ebcd2f
- Fixed In set to v20.3.0-5124-gdf8b82766e
- Upkeep Timestamp set to 2026-02-04T14:24:29+00:00
AM Updated by Aishwarya Mathuria 10 months ago
/a/skanta-2026-01-30_23:46:16-rados-wip-bharath7-testing-2026-01-29-2016-distro-default-trial/28582
SA Updated by Shraddha Agrawal 10 months ago
- Status changed from Resolved to Pending Backport
- Backport set to tentacle
UB Updated by Upkeep Bot 10 months ago
- Copied to Backport #74757: tentacle: qa/standalone/mon/availability.sh: line 64: Syntax error due to missing availability status added
UB Updated by Upkeep Bot 10 months ago
- Tags (freeform) set to backport_processed
CF Updated by Connor Fawcett 10 months ago
/a/skanta-2026-01-27_07:02:07-rados-wip-bharath3-testing-2026-01-26-1323-distro-default-trial/19874
LF Updated by Laura Flores 10 months ago
/a/yuriw-2026-02-03_16:00:06-rados-wip-yuri4-testing-2026-02-02-2122-distro-default-trial/31900
LS Updated by Lee Sanders 10 months ago
/a/skanta-2026-01-29_02:19:11-rados-wip-bharath5-testing-2026-01-28-2018-distro-default-trial/24774
AM Updated by Aishwarya Mathuria 10 months ago
/a/skanta-2026-02-05_03:38:32-rados-wip-bharath2-testing-2026-02-03-0542-distro-default-trial/35665
NN Updated by Naveen Naidu 10 months ago
/a/skanta-2026-01-26_08:54:40-rados-wip-bharath4-testing-2026-01-26-1300-distro-default-trial/17824
UB Updated by Upkeep Bot 10 months ago
- Status changed from Pending Backport to Resolved
- Upkeep Timestamp changed from 2026-02-04T14:24:29+00:00 to 2026-02-14T01:26:06+00:00
NM Updated by Nitzan Mordechai 10 months ago
/a/skanta-2026-02-02_23:43:28-rados-wip-bharath9-testing-2026-02-02-0839-distro-default-trial/30426
NN Updated by Naveen Naidu 8 months ago
/a/skanta-2026-01-30_23:12:23-rados-wip-bharath10-testing-2026-01-30-1531-distro-default-trial/28480
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-02-14T01:26:06+00:00 to 2026-08-28T01:39:13+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1329
- Upkeep Timestamp changed from 2026-08-28T01:39:13+00:00 to 2026-10-24T02:00:43+00:00