Project

General

Profile

Actions

Bug #74178

closed

qa/standalone/mon/availability.sh: line 64: Syntax error due to missing availability status

Added by Connor Fawcett 3 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
Monitor
Target version:
-
% Done:

0%

Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Component(RADOS):
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v20.3.0-5124-gdf8b82766e
Released In:
Upkeep Timestamp:
2026-02-14T01:26:06+00:00

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.


Related issues 2 (0 open2 closed)

Has duplicate RADOS - Bug #74582: qa/standalone/mon/availability.sh: syntax error: operand expected (error token is "* ( == m ? 60 : 1) "DuplicateShraddha Agrawal

Actions
Copied to RADOS - Backport #74757: tentacle: qa/standalone/mon/availability.sh: line 64: Syntax error due to missing availability statusResolvedShraddha AgrawalActions
Actions #1

Updated by Laura Flores about 2 months ago

/a/lflores-2026-01-21_20:56:39-rados-main-distro-default-trial/12001

Actions #2

Updated by Laura Flores about 2 months ago

  • Has duplicate Bug #74582: qa/standalone/mon/availability.sh: syntax error: operand expected (error token is "* ( == m ? 60 : 1) " added
Actions #3

Updated by Laura Flores about 2 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

Actions #4

Updated by Neha Ojha about 2 months ago

  • Project changed from Ceph to RADOS
  • Category changed from Monitor to Monitor
  • Assignee set to Shraddha Agrawal
Actions #5

Updated by Laura Flores about 2 months ago

/a/lflores-2026-01-26_23:21:06-rados-wip-yuri12-testing-2026-01-22-2045-distro-default-trial/19109

Actions #6

Updated by Laura Flores about 2 months ago

@Shraddha Agrawal any update on this issue? Writing from bug scrub.

Actions #7

Updated by Laura Flores about 2 months ago

  • Tags set to test-failure
Actions #8

Updated by Sridhar Seshasayee about 2 months ago

/a/skanta-2026-01-27_05:35:03-rados-wip-bharath1-testing-2026-01-26-1242-distro-default-trial/19778

Actions #9

Updated by Nitzan Mordechai about 2 months ago

/a/yuriw-2026-01-29_18:33:05-rados-wip-yuri2-testing-2026-01-28-1643-tentacle-distro-default-trial/26518

Actions #10

Updated by Shraddha Agrawal about 2 months ago

  • Status changed from New to In Progress
  • Pull request ID set to 67181
Actions #11

Updated by Laura Flores about 2 months ago

  • Status changed from In Progress to Fix Under Review
Actions #12

Updated by Shraddha Agrawal about 2 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.

Actions #13

Updated by Upkeep Bot about 2 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
Actions #14

Updated by Aishwarya Mathuria about 2 months ago

/a/skanta-2026-01-30_23:46:16-rados-wip-bharath7-testing-2026-01-29-2016-distro-default-trial/28582

Actions #15

Updated by Shraddha Agrawal about 2 months ago

  • Status changed from Resolved to Pending Backport
  • Backport set to tentacle
Actions #16

Updated by Upkeep Bot about 2 months ago

  • Copied to Backport #74757: tentacle: qa/standalone/mon/availability.sh: line 64: Syntax error due to missing availability status added
Actions #17

Updated by Upkeep Bot about 2 months ago

  • Tags (freeform) set to backport_processed
Actions #18

Updated by Connor Fawcett about 1 month ago

/a/skanta-2026-01-27_07:02:07-rados-wip-bharath3-testing-2026-01-26-1323-distro-default-trial/19874

Actions #19

Updated by Laura Flores about 1 month ago

/a/yuriw-2026-02-03_16:00:06-rados-wip-yuri4-testing-2026-02-02-2122-distro-default-trial/31900

Actions #20

Updated by Lee Sanders about 1 month ago

/a/skanta-2026-01-29_02:19:11-rados-wip-bharath5-testing-2026-01-28-2018-distro-default-trial/24774

Actions #21

Updated by Aishwarya Mathuria about 1 month ago

/a/skanta-2026-02-05_03:38:32-rados-wip-bharath2-testing-2026-02-03-0542-distro-default-trial/35665

Actions #22

Updated by Naveen Naidu about 1 month ago

/a/skanta-2026-01-26_08:54:40-rados-wip-bharath4-testing-2026-01-26-1300-distro-default-trial/17824

Actions #23

Updated by Upkeep Bot about 1 month 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
Actions #24

Updated by Nitzan Mordechai about 1 month ago

/a/skanta-2026-02-02_23:43:28-rados-wip-bharath9-testing-2026-02-02-0839-distro-default-trial/30426

Actions

Also available in: Atom PDF