Bug #38265
At boot, have MDNS wait for /etc/resolv.conf to be available and valid
Description
I have noticed some errors about unreachable network before pool import that may be related. Attaching a debug to provide a log. Basically the problem I am seeing is that mdns does not work at all upon boot up until I restart a service like smb, or ssh.
Related issues
Associated revisions
History
#1
Updated by Joe Maloney over 2 years ago
- File debug-joemini-20180715225747.txz added
- Private changed from No to Yes
#2
Updated by Dru Lavigne over 2 years ago
- Assignee changed from Release Council to John Hixson
- Target version changed from Backlog to 11.2-RC2
#3
Updated by Joe Maloney over 2 years ago
After more testing I wanted to add more details. If I use AFP mdns always works. I can always ping, and access FreeNAS from finder upon reboot of the FreeNAS. If I try to use SMB, or SSH together or separately mdns does not work upon reboot. I cannot see the object in the finder until I restart SMB, or SSH. I cannot ping the FreeNAS until I restart SMB, or SSH.
#5
Updated by Dru Lavigne over 2 years ago
- Target version changed from 11.2-RC2 to 11.2-BETA3
#6
Updated by John Hixson over 2 years ago
- Status changed from Unscreened to Screened
#7
Updated by John Hixson over 2 years ago
This is still related to /etc/resolv.conf not existing when the mdns plugin is loaded. I've got a couple ways of dealing with this, will look at it more tomorrow.
#9
Updated by John Hixson over 2 years ago
#10
Updated by John Hixson over 2 years ago
The problem here is the middleware begins very early in boot. The mDNS plugin is loaded at that time. While the mDNS plugin waits for mDNS to be available, it does not wait for DNS to be available. I have fixed this to wait for DNS and a valid /etc/resolv.conf to be available.
#11
Updated by John Hixson over 2 years ago
- Status changed from Screened to Ready for Testing
#12
Updated by Dru Lavigne over 2 years ago
- Subject changed from mdns does not work at boot up to At boot, have MDNS wait for /etc/resolv.conf to be available and valid
- Target version changed from 11.2-BETA3 to 11.2-BETA2
- Needs Doc changed from Yes to No
- Needs Merging changed from Yes to No
#13
Updated by Dru Lavigne over 2 years ago
- File deleted (
debug-joemini-20180715225747.txz)
#14
Updated by Dru Lavigne over 2 years ago
- Private changed from Yes to No
#15
Updated by Bonnie Follweiler over 2 years ago
Test Failed After updating to the latest Nightlies I got the mDNS errors in the console (see Screenshots)
#16
Updated by Bonnie Follweiler over 2 years ago
- Status changed from Failed Testing to Ready for Testing
re-test
Test Case:
turn off all services, make sure when you boot, no services start, including ssh
absolutely all of them unchecked and not to start at boot
reboot the system
open the web shell
run this: dns-sd -B _middleware
that should show your hostname
and then dns-sd -B .
that should show your hostname in the output as well
Eample:
[root@devnas ~]# dns-sd B _middleware
Browsing for _middleware._tcp
DATE: ---Wed 25 Jul 2018--
14:06:55.168 ...STARTING...
Timestamp A/R Flags if Domain Service Type Instance Name
14:06:55.168 Add 3 1 local. _middleware._tcp. freenas
14:06:55.168 Add 2 1 local. _middleware._tcp. devnas
[root@devnas ~]# dns-sd B .
Browsing for _http._tcp
DATE: ---Wed 25 Jul 2018--
14:07:10.614 ...STARTING...
Timestamp A/R Flags if Domain Service Type Instance Name
14:07:10.615 Add 3 1 local. _http._tcp. freenas
14:07:10.615 Add 3 1 local. _http._tcp. macmini
14:07:10.615 Add 3 1 local. _http._tcp. vmnas
14:07:10.615 Add 3 1 local. _http._tcp. Officejet Pro 8600 [91BB64]
14:07:10.615 Add 2 1 local. _http._tcp. devnas
This is all from a host named "devnas"
#17
Updated by Bonnie Follweiler over 2 years ago
- File Screen Shot 2018-07-25 at 2.38.23 PM.png Screen Shot 2018-07-25 at 2.38.23 PM.png added
- File Screen Shot 2018-07-25 at 2.37.53 PM.png Screen Shot 2018-07-25 at 2.37.53 PM.png added
- Status changed from Ready for Testing to Passed Testing
- Needs QA changed from Yes to No
Test Passed in FreeNAS-11.2-MASTER-201807250900
#18
Updated by Dru Lavigne over 2 years ago
- Status changed from Passed Testing to Done
#19
Updated by John Hixson over 2 years ago
Bonnie Follweiler wrote:
Test Passed in FreeNAS-11.2-MASTER-201807250900
How can you tell this passed? If you change your hostname to something like "Bonnie", that will be the only way to distinguish yourself here. All this shows is lots of freenas boxes on the network.
#20
Updated by John Hixson over 2 years ago
- Status changed from Done to Ready for Testing
#21
Updated by Dru Lavigne over 2 years ago
- Needs QA changed from No to Yes
#22
Updated by Bonnie Follweiler over 2 years ago
- File Screen Shot 2018-07-25 at 5.26.10 PM.png Screen Shot 2018-07-25 at 5.26.10 PM.png added
- File Screen Shot 2018-07-25 at 5.25.40 PM.png Screen Shot 2018-07-25 at 5.25.40 PM.png added
- Status changed from Ready for Testing to Passed Testing
- Needs QA changed from Yes to No
#23
Updated by Dru Lavigne over 2 years ago
- Status changed from Passed Testing to Done
#24
Updated by John Hixson over 2 years ago
- Copied to Bug #40692: At boot, have MDNS wait for /etc/resolv.conf to be available and valid added