Bug 2050619 - [RFE][rbd-mirror] : snapshot schedule add : Support mentioning image spec
Summary: [RFE][rbd-mirror] : snapshot schedule add : Support mentioning image spec
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD-Mirror
Version: 5.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 5.2
Assignee: Ilya Dryomov
QA Contact: Vasishta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-04 10:47 UTC by Vasishta
Modified: 2022-03-22 18:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-22 18:05:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-3111 0 None None None 2022-02-04 10:54:49 UTC

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>


Note You need to log in before you can comment on or make changes to this bug.