[RFE] a "--wait" option for creating/promoting/deleting a share replicas

Bug #1898310 reported by Goutham Pacha Ravi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
Fix Released
Low
tspyderboy

Bug Description

Expected workflow:

1) Creating a share replica

$ manila share-replica-create share1 --az manila-zone-1 --wait
<CLI waits on the share replica to become available before providing replica details>
(The CLI does not wait for "replica_state" to become "in_sync" - it only waits until the replica reaches an "available"
status)

2) Promoting a share replica

$ manila share-replica-promote 9b6b909b-3790-4a65-a89d-f9437496f171 --wait
<CLI waits on the share replica's "replica_state" to become "active" before returning to the prompt>

3) Deleting a share replica

$ manila share-replica-delete 9b6b909b-3790-4a65-a89d-f9437496f171 --wait
<CLI waits on the share replica to be deleted before returning to the prompt>

tags: added: add-wait-to-async-commands low-hanging-fruit
Changed in python-manilaclient:
importance: Undecided → Low
description: updated
Paul Ali (paulali)
Changed in python-manilaclient:
assignee: nobody → Paul Ali (paulali)
Paul Ali (paulali)
Changed in python-manilaclient:
status: New → In Progress
Vida Haririan (vhariria)
Changed in python-manilaclient:
assignee: Paul Ali (paulali) → nobody
status: In Progress → New
Changed in python-manilaclient:
assignee: nobody → Esther Kisakye (ekisakye)
Revision history for this message
tspyderboy (tspyderboy) wrote :

Hi, looking into this.
Thanks

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (master)
Changed in python-manilaclient:
status: New → In Progress
Changed in python-manilaclient:
assignee: Esther Kisakye (ekisakye) → nobody
assignee: nobody → tspyderboy (tspyderboy)
milestone: none → dalmation-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-manilaclient/+/914223
Committed: https://opendev.org/openstack/python-manilaclient/commit/789e65bee3156d861c813f290e6f87153aaea3b3
Submitter: "Zuul (22348)"
Branch: master

commit 789e65bee3156d861c813f290e6f87153aaea3b3
Author: tspyderboy <email address hidden>
Date: Tue Mar 26 18:12:46 2024 +0530

    Add "--wait" option for creating/promoting/deleting a share replicas

    1) Creating a share replica
    $ manila share-replica-create share1 --az manila-zone-1 --wait
    <CLI waits on the share replica to become available before providing replica details>
    (The CLI does not wait for "replica_state" to become "in_sync" - it only waits until the replica reaches an "available"
    status)

    2) Promoting a share replica
    $ manila share-replica-promote 9b6b909b-3790-4a65-a89d-f9437496f171 --wait
    <CLI waits on the share replica's "replica_state" to become "active" before returning to the prompt>

    3) Deleting a share replica
    $ manila share-replica-delete 9b6b909b-3790-4a65-a89d-f9437496f171 --wait
    <CLI waits on the share replica to be deleted before returning to the prompt>

    Closes-Bug: #1898310
    Change-Id: If269c708c894756c0223e3bfa173670bcc6ef763

Changed in python-manilaclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.