Switch the iscsi daemon type class to call daemon_to_container instead of
get_container in the class's container method. This breaks a dependency loop
between the class and the get_container function hopefully enabling future
clean ups and code moves.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
return tcmu_container
def container(self, ctx: CephadmContext) -> CephContainer:
- ctr = get_container(ctx, self.identity)
+ # So the container can modprobe iscsi_target_mod and have write perms
+ # to configfs we need to make this a privileged container.
+ ctr = daemon_to_container(ctx, self, privileged=True)
return to_deployment_container(ctx, ctr)
def config_and_keyring(