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: Dont depend on image state to issue resync #4076

Merged
merged 2 commits into from
Aug 30, 2023

Commits on Aug 29, 2023

  1. cephfs: fix make go-lint error

    Not sure why but go-lint is failing
    with below error and this fix is required
    to make it pass
    
    ```
    directive `//nolint:staticcheck // See comment above.`
    is unused for linter "staticcheck" (nolintlint)
    ```
    
    Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
    Madhu-1 committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    db3a554 View commit details
    Browse the repository at this point in the history
  2. rbd: fix resync issue

    During the Demote volume store
    the image creation timestamp.
    
    During Resync do below operation
    
    * Check image creation timestamp
    stored during Demote operation
    and current creation timestamp during Resync
    and check both are equal and its for
    force resync then issue resync
    * If the image on both sides is
    not in unknown state, check
    last_snapshot_timestamp on the
    local mirror description, if its present
    send volumeReady as false or else return
    error message.
    
    If both the images are in up+unknown the
    send volumeReady as true.
    
    Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
    Madhu-1 committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    2b6cf40 View commit details
    Browse the repository at this point in the history