-
Notifications
You must be signed in to change notification settings - Fork 557
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: cleanup some parts in the ControllerServer #5101
base: devel
Are you sure you want to change the base?
Conversation
8773c14
to
24a66af
Compare
log.DebugLog(ctx, "created image %s backed for request name %s", rbdVol, rbdVol.RequestName) | ||
requestName, err := rbdVol.GetRequestName(ctx) | ||
if err != nil { | ||
requestName = "<unset request name>" |
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.
@nixpanic why is this special case not an error case?
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.
It is only used for logging, and was not an error before this change.
/test ci/centos/mini-e2e/k8s-1.32 |
@nixpanic, the ci test failed
|
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
The RBD ControllerService does not expose the `PUBLISH_UNPUBLISH_VOLUME` capability, so ControllerPublishVolume and ControllerUnpublishVolume will never get called. In case a broken Container Orchestrator does call these operations, a default Unimplemented error will be returned anyway. Signed-off-by: Niels de Vos <[email protected]>
Thanks! It looks like |
24a66af
to
6d8882f
Compare
/test ci/centos/mini-e2e/k8s-1.32 |
Pull request has been modified.
Miscellaneous cleanups. This should help in restructuring the rbd package with cleaner APIs. Eventually the
rbdImage
,rbdVolume
andrbdSnapshot
types should be used as a interface/type similar toVolumeGroup
provided by theinternal/rbd/group
package.move
cleanUpImageAndSnapReservation()
intorbdSnapshot.Delete()
make
RequestName
internal torbdVolume
use
rbd.Manager
withinControllerServer.DeleteVolume()
andControllerServer.DeleteSnapshot()
Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:
/retest ci/centos/<job-name>
: retest the<job-name>
after unrelatedfailure (please report the failure too!)