Cannot access SMB shares from container after upgrade to TrueNAS-SCALE-22.02-RC.2
Description
Problem/Justification
Impact
Activity
Waqar Ahmed March 9, 2022 at 10:37 AM
@Oleg Tsvinev you should be easily able to define searches/ndots for the app via networking settings when editing an app deployed via launch docker image button and i also believe the same holds for truecharts ( haven't recently tested truecharts ).
Once you do that - this will resolve your issue. Let me know please if you face any issues with any of the official app on that end. Thanks!
Oleg Tsvinev March 8, 2022 at 8:38 PM
@Waqar Ahmed sorry if my comments are confusing.
I was unable to edit application configuration to add search domain - no documentation and I couldn't find a way how.
Changing /etc/resolv.conf in the running container, from ndots=5 to ndots=1 made no difference
Adding search domain to /etc/resolv.conf solves the problem.
FQDN names resolve without any changes, but I need a host-only name in this particular configuration,
Waqar Ahmed March 8, 2022 at 7:11 PM
@Oleg Tsvinev i am sorry, i don't follow you completely. To be clear, changing the configuration settings by modifying the app settings - did it work for you ?
Oleg Tsvinev March 8, 2022 at 1:10 AMEdited
Changing ndots from 5 to 1 and removing my internal domain from lookup domains list, both in container's /etc/resolv.conf caused the container to stop resolving non-FQDN names.
I had no doubts about the outcome but decided to make the changes for the sake of experiment.
Rolled them back and have DNS working again.
Oleg Tsvinev March 7, 2022 at 8:36 PM
@Waqar Ahmed I did not update the ndots, because for the container in question, it was already 5.
I don't quite see the connection between ndots and search domains.
I manually add my own domain to /etc/resolv.conf and then name resolution works. This is not a public domain. Name resolution works if I use FQDN but this is now what I want to do.
The Truecharts UI is totally unclear as to how to add search domains, otherwise I'd add it there, without having to edit /etc/resolv.conf in the container. My domain is not shown above, to be clear but presents IRL.
I have an application that accesses SMB shares on external server, in a container.
It lost access right after upgrade to TrueNAS-SCALE-22.02-RC.2
Rollback to TrueNAS-SCALE-22.02-RC.1-2 restored access.
Note that the `TrueNAS-SCALE-22.02-RC.2` is not on the list of affected versions. Please set affected version when it's available in Jira.