rbd: register GET_CLIENTS_TO_FENCE caps

register Capability_NetworkFence_
GET_CLIENTS_TO_FENCE capability and
start a NetworkFence controllers
as part of rbd nodeplugin.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2024-11-04 14:32:26 +01:00 committed by mergify[bot]
parent 34dfd0adb8
commit fdc74973d8
2 changed files with 10 additions and 0 deletions

View File

@ -152,6 +152,13 @@ func (is *IdentityServer) GetCapabilities(
Type: identity.Capability_EncryptionKeyRotation_ENCRYPTIONKEYROTATION,
},
},
},
&identity.Capability{
Type: &identity.Capability_NetworkFence_{
NetworkFence: &identity.Capability_NetworkFence{
Type: identity.Capability_NetworkFence_GET_CLIENTS_TO_FENCE,
},
},
})
}

View File

@ -227,6 +227,9 @@ func (r *Driver) setupCSIAddonsServer(conf *util.Config) error {
}
if conf.IsNodeServer {
fcs := casrbd.NewFenceControllerServer()
r.cas.RegisterService(fcs)
rs := casrbd.NewReclaimSpaceNodeServer(r.ns.VolumeLocks)
r.cas.RegisterService(rs)