Docker / NFS bug

wbk30

Cadet
Joined
Sep 16, 2022
Messages
2
Just manually upgraded to Bluefin from Angelfish and noticed an interesting bug. When trying to start a docker container that uses host mounts that are also shared through NFS, the container will fail to start

Error: Error response from daemon: invalid volume specification: '/mnt/Dataset/ChildDataset:/ChildDataset': Invalid mount path. /mnt/Dataset/ChildDataset. Following service(s) uses this path: `NFS Share`.

Workaround is to disable all affected NFS shares then start the docker container then re-enable the NFS shares and everything works happily
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
Just manually upgraded to Bluefin from Angelfish and noticed an interesting bug. When trying to start a docker container that uses host mounts that are also shared through NFS, the container will fail to start

Error: Error response from daemon: invalid volume specification: '/mnt/Dataset/ChildDataset:/ChildDataset': Invalid mount path. /mnt/Dataset/ChildDataset. Following service(s) uses this path: `NFS Share`.

Workaround is to disable all affected NFS shares then start the docker container then re-enable the NFS shares and everything works happily
Nice catch and work-around.

Please report-a-bug and report back the bug-id.
 

Mixel

Explorer
Joined
Jan 11, 2014
Messages
50
Well, it is a bug. When you enter a valid path, it wont work when you have smb shares enabled in services. If you shutdown smb share services, you can start th app again.

Regarding validating folders, i havent seen that option anywhere. Maybe thats defined within the app package itself?
 

rs_taylor

Explorer
Joined
Jan 28, 2013
Messages
53
Well, it is a bug. When you enter a valid path, it wont work when you have smb shares enabled in services. If you shutdown smb share services, you can start th app again.

Regarding validating folders, i havent seen that option anywhere. Maybe thats defined within the app package it
If not a bug then its a stupid, ill thougt out feature.
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
This is not a bug. Path validation for host paths was missing in early SCALE versions, it has been added, but I believe there is an option to disable host path validation for free / home users (or there will be).

There is a related, and ix-confirmed, bug though: the same validation should not be blocking snapshots/replication combined with apps.
But that's actively being worked on.

If not a bug then its a stupid, ill thougt out feature.

There are a lot of issues related to combining shares and App related storage. We've recieved very many of those. Primarily the often used ACL's are causing issues due to inherent incompatibility. So we completely understand why, for stability and data safety, iX is going to default to disable those.
While the "override this validation" option is not available in the GUI yet, iX is indeed, like @anodos stated, is working on a disable feature which is already available in the CLI

As a workaround, you can mount NFS shares instead of hostPath on our Apps :)
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
enter the cli with 'cli'

'app kubernetes update validate_host_path=false'

It should be part of the GUI now with BETA 2.
That being said: We want to advice users that when 22.12 releases, we will not offer official support to anyone having that flag set.
 

dlsniper

Cadet
Joined
Nov 16, 2022
Messages
3
enter the cli with 'cli'

'app kubernetes update validate_host_path=false'
Thank you! I just upgraded to 22.12 RC1 from 22.04 and I noticed my container wouldn't start because the NFS service uses one of the mounts.

I don't understand the purpose of this feature. What does it try to achieve?
 

sstruke

Dabbler
Joined
Feb 2, 2017
Messages
37
Thank you! I just upgraded to 22.12 RC1 from 22.04 and I noticed my container wouldn't start because the NFS service uses one of the mounts.

I don't understand the purpose of this feature. What does it try to achieve?
Open apps.... setings... Advanced Settings: then uncheck Validate host path
 

soleous

Dabbler
Joined
Apr 14, 2021
Messages
30
Thank you! I just upgraded to 22.12 RC1 from 22.04 and I noticed my container wouldn't start because the NFS service uses one of the mounts.

I don't understand the purpose of this feature. What does it try to achieve?
I've also come across this today and am curious about what this is trying to achieve.

It's also happening with replication services but I don't see a JIRA ticket for that.
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
I've also come across this today and am curious about what this is trying to achieve.

It's also happening with replication services but I don't see a JIRA ticket for that.

It should not be happening with replication on RC1.

The goal has been described a few times by now:
TLDR: (data) security reasons...
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Just curious, because I use mostly CORE and jails - how is one supposed to manage a ton of files via SMB share and then access that dataset from an app like Nextcloud or Photoprism? Like a jail mount used as external storage in Nextcloud for example.
 
Top