instantlinux / docker-tools

Docker tools for developer productivity & entertainment
Apache License 2.0
266 stars 90 forks source link

Mounting SMB for storage stuck at "Setting up share.ldb" #93

Closed BloodyIron closed 1 year ago

BloodyIron commented 1 year ago

When I run the samba ad dc docker image with no permanent storage, it seems to provision fully. But then I try to set up permanent storage to mount to data and config, in this case SMB with Windows ACLs on (backed by FreeNAS).

The problem is, when I do this, the container gets to writing about 32KB at the step of "Setting up share.ldb" and never proceeding further.

I cannot tell at all why this is failing and I've gone through countless iterations of reconfiguring the kubernetes deployment, the CSI SMB PV/PVC configuration, and even at the storage NAS layer. I cannot figure out for the life of me why this is failing now, and samba on the FreeNAS server doesn't output errors either.

I'm about ready to give up on this image after literally months on and off trying to get this running in kubernetes, and instead build Samba AD DCs inside some VMs. I was really hoping to have Samba AD DCs as IaC instead... :/

Anyone have any ideas? I can't find anything with my Google Fu that seems relevant at all.

BloodyIron commented 1 year ago

I have a feeling that in some way the mount isn't either ACLs or XATTR capable (maybe both), so I've abandoned this effort for now and built my AD DCs in VMs instead. I'll have to come back to this in like 1-2yrs or so.

BloodyIron commented 1 year ago

So does that mean that SMB mounts for storage actually work then or what? This was closed without any dialogue...