Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbd: check local image state during promote operation #2684

Merged
merged 1 commit into from
Dec 1, 2021

Commits on Dec 1, 2021

  1. rbd: check local image state during promote operation

    rbd mirroring CLI calls are async and it doesn't wait
    for the operation to be completed. ex:- `rbd mirror image enable`
    it will enable the mirroring on the image but it doesn't
    ensure that the image is mirroring enabled and healthy
    primary. The same goes for the promote volume also.
    This commits adds a check-in PromoteVolume to make sure
    the image in a healthy state i.e `up+stopped`.
    
    note:- not considering any intermediate states to make
    sure the image is completely healthy before responding
    success to the RPC call.
    
    Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
    Madhu-1 authored and mergify-bot committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    9cdd669 View commit details
    Browse the repository at this point in the history