rbd pool init rbd2
rbd namespace create rbd2/ns1
+ test "$(ceph rbd trash purge schedule list)" = "{}"
+ ceph rbd trash purge schedule status | fgrep '"scheduled": []'
+
expect_fail rbd trash purge schedule ls
test "$(rbd trash purge schedule ls -R --format json)" = "[]"
rbd mirror pool enable rbd2/ns1 image
rbd mirror pool peer add rbd2 cluster1
+ test "$(ceph rbd mirror snapshot schedule list)" = "{}"
+ ceph rbd mirror snapshot schedule status | fgrep '"scheduled_images": []'
+
expect_fail rbd mirror snapshot schedule ls
test "$(rbd mirror snapshot schedule ls -R --format json)" = "[]"
@CLIReadCommand('rbd mirror snapshot schedule list')
@with_latest_osdmap
def mirror_snapshot_schedule_list(self,
- level_spec: str) -> Tuple[int, str, str]:
+ level_spec: str = '') -> Tuple[int, str, str]:
"""
List rbd mirror snapshot schedule
"""
@CLIReadCommand('rbd mirror snapshot schedule status')
@with_latest_osdmap
def mirror_snapshot_schedule_status(self,
- level_spec: str) -> Tuple[int, str, str]:
+ level_spec: str = '') -> Tuple[int, str, str]:
"""
Show rbd mirror snapshot schedule status
"""
@CLIReadCommand('rbd trash purge schedule list')
@with_latest_osdmap
def trash_purge_schedule_list(self,
- level_spec: str) -> Tuple[int, str, str]:
+ level_spec: str = '') -> Tuple[int, str, str]:
"""
List rbd trash purge schedule
"""
@CLIReadCommand('rbd trash purge schedule status')
@with_latest_osdmap
def trash_purge_schedule_status(self,
- level_spec: str) -> Tuple[int, str, str]:
+ level_spec: str = '') -> Tuple[int, str, str]:
"""
Show rbd trash purge schedule status
"""