-
Notifications
You must be signed in to change notification settings - Fork 20
replication: add replication state to GetVolumeReplicationInfo response #77
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More discussion is required before deciding on this particular approach.
f7da44e
to
34637e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} | ||
// Represents the current replication status as reported by | ||
// the backend storage system. | ||
// This field is OPTIONAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this OPTIONAL? Is the default not UNKNOWN
so that it can be marked REQUIRED?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we make it required, then any SP that do not implement this change will by default start seeing the status as UNKNOWN
, which maybe incorrect if everything is fine.
It would become a breaking change, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should the difference between UNKNOWN
and an unset .status
be handled? I suspect that both are the same for anyone that inspects the result of the procedure call.
If there is a good reason to differentiate between unset and UNKNOWN
, I agree that OPTIONAL makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UNKNOWN
can be returned if the mirroring is still being enabled, and not yet completed.
Or, if the mirroring state itself is unknown
, i.e, up+unknown
in case of ceph rbd.
34637e3
to
d0251af
Compare
…oResponse add status and status_message to GetVolumeReplicationInfoResponse that describes the current replication state to the end user. Signed-off-by: Nikhil-Ladha <[email protected]>
d0251af
to
9c92b24
Compare
add
replication_state
to GetVolumeReplicationInfo response.Fixes: #78