mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
rbd: check for peer site status
Do resync if the image is in unknow or in error state. Check for the current image state for up+stopped or up+replaying and also all peer site status should be un up+stopped to confirm that resyncing is done and image can be promoted and used. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
233954bc10
commit
95387c3b5e
@ -118,6 +118,12 @@ type imageMirrorStatus struct {
|
||||
State string `json:"state"` // rbd image state
|
||||
Description string `json:"description"`
|
||||
LastUpdate string `json:"last_update"`
|
||||
PeerSites []struct {
|
||||
SiteName string `json:"site_name"`
|
||||
State string `json:"state"`
|
||||
Description string `json:"description"`
|
||||
LastUpdate string `json:"last_update"`
|
||||
} `json:"peer_sites"`
|
||||
}
|
||||
|
||||
// FIXME: once https://github.com/ceph/go-ceph/issues/460 is fixed use go-ceph.
|
||||
|
Reference in New Issue
Block a user