Bug 2271835

Summary: [CephFS - Consistency Group] ECANCELED error seen when cancel is run on quiesce set with --await
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: sumr
Component: CephFSAssignee: Leonid Usov <lusov>
Status: CLOSED ERRATA QA Contact: sumr
Severity: low Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 7.1CC: akraj, ceph-eng-bugs, cephqe-warriors, hyelloji, lusov, pdonnell, tserlin, vereddy
Target Milestone: ---   
Target Release: 7.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-18.2.1-160.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-13 14:30:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2267614, 2298578, 2298579    

Description sumr 2024-03-27 13:43:58 UTC
Description of problem:

A cancel of quiesce was attempted with --await and it generates ECANCELED error as cmd response, but a --query on quiesce set shows CANCELED state as expected.

This BZ is to handle ECANCELED error seen as cmd response. If --await was not supported to be used with --cancel as confirmed with Dev, the cmd response could have been to report invalid syntax for cmd instead of ECANCELED error, to avoid an ambiguity.

Version-Release number of selected component (if applicable): ceph version 18.2.1-76.el9cp 


How reproducible: Consistent


Steps to Reproduce:
1. Create a quiesce set
2. Run cancel with --await

Actual results: ECANCELED error seen with cmd response


Expected results: EINVAL as --await with --cancel is not supported


Additional info:
2024-03-27 08:57:32,611 (cephci.snapshot_clone.cg_snap_system_test) [INFO] - cephci.ceph.ceph.py:1563 - Running command ceph fs quiesce cephfs --set-id cg_test1_agd --cancel --for
mat json  --await on 10.8.128.53 timeout 600
2024-03-27 08:57:33,229 (cephci.snapshot_clone.cg_snap_system_test) [ERROR] - cephci.ceph.ceph.py:1599 - Error 125 during cmd, timeout 600
2024-03-27 08:57:33,230 (cephci.snapshot_clone.cg_snap_system_test) [ERROR] - cephci.ceph.ceph.py:1600 - Error ECANCELED:

2024-03-27 08:57:33,231 (cephci.snapshot_clone.cg_snap_system_test) [INFO] - cephci.tests.cephfs.snapshot_clone.cg_snap_system_test.py:582 - ceph fs quiesce cephfs --set-id cg_tes
t1_agd --cancel --format json  --await Error:  Error ECANCELED:
 10.8.128.53

Comment 10 errata-xmlrpc 2024-06-13 14:30:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:3925