Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2050619

Summary: [RFE][rbd-mirror] : snapshot schedule add : Support mentioning image spec
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: RBD-MirrorAssignee: Ilya Dryomov <idryomov>
Status: CLOSED WONTFIX QA Contact: Vasishta <vashastr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.1CC: ceph-eng-bugs, ceph-qe-bugs, gpatta
Target Milestone: ---Keywords: FutureFeature
Target Release: 5.2   
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: 2022-03-22 18:05:29 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:

Description Vasishta 2022-02-04 10:47:24 UTC
Description of problem:
rbd mirror snapshot schedule add doesn't support image-spec as user input.
It would be nice if we can support the image spec as an input to maintain uniformity in command input support across the commands

Version-Release number of selected component (if applicable):
16.2.7-40.el8cp

How reproducible:
Always

Steps to Reproduce:
1. Configure mirroring - snapshot based mirroring
2. Add snapshot schedule and try to provide image-spec as an input similar to most of the commands


Actual results:
# rbd mirror snapshot schedule add two_way_rep_snapshot_image/for_2020618 1m
rbd: rbd mirror snapshot schedule add failed: (22) Invalid argument: Invalid interval (two_way_rep_snapshot_image/for_2020618)


Expected results:
Support for image-spec as a valid user input for pool name and image name

Additional info:
# rbd help mirror image status two_way_rep_snapshot_image/big                             
usage: rbd mirror image status [--pool <pool>] [--namespace <namespace>] 
                               [--image <image>] [--format <format>] 
                               [--pretty-format] 
                               <image-spec> 

# rbd help mirror snapshot schedule add two_way_rep_snapshot_image/for_2020618 1
usage: rbd mirror snapshot schedule add
                                      [--pool <pool>] 
                                      [--namespace <namespace>] 
                                      [--image <image>] 
                                      <interval> <start-time>