Bug 1929662

Summary: [Doc RFE] Document how to define an automatic trash purge schedule
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Anjana Suparna Sriram <asriram>
Component: DocumentationAssignee: Amrita <asakthiv>
Status: CLOSED CURRENTRELEASE QA Contact: Gopi <gpatta>
Severity: high Docs Contact: Aron Gunn <agunn>
Priority: high    
Version: 5.0CC: agunn, gpatta, kdreyer
Target Milestone: ---Keywords: Documentation, FutureFeature
Target Release: 5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-09 11:57:16 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: 1813963    
Bug Blocks: 1929147    

Comment 1 RHEL Program Management 2021-02-17 11:54:52 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 10 Gopi 2021-04-05 05:36:18 UTC
Hi Amrita,

Thanks for sharing new link. Here are some of my observations:

Not able to move images without poolname:
"rbd trash mv g_image
rbd: error opening default pool 'rbd'
Ensure that the default pool has been created or specify an alternate pool name."

After creating default pool:
rbd trash mv g_image
rbd: deferred delete error: (2) No such file or directory

After giving poolname/imagename, it's working fine:
rbd trash mv g_pool/g_image
rbd trash list  --pool g_pool
3cb46c8dc50b g_image


Same thing while restoring:
rbd trash restore 3cb46c8dc50b
rbd: error: image does not exist in trash
2021-04-05T05:23:17.357+0000 7f2de682b2c0 -1 librbd::api::Trash: restore: error getting image id 3cb46c8dc50b info from trash: (2) No such file or directory

After giving poolname/imagename:
rbd trash restore g_pool/3cb46c8dc50b

Comment 13 Gopi 2021-04-05 11:40:33 UTC
Checked all the steps for trash functionality and everything looks fine. Hence moving the bug to verified state.