[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2018-01-26 Thread Steve Langasek
*** This bug is a duplicate of bug 1739672 *** https://bugs.launchpad.net/bugs/1739672 ** This bug has been marked a duplicate of bug 1739672 Regression in getaddrinfo(): calls block for much longer on Bionic (compared to Xenial), please disable LLMNR -- You received this bug notificatio

[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2018-01-04 Thread Steve Langasek
This looks like the same as the just-diagnosed https://launchpad.net/bugs/1739672 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1730744 Title: sudo is slow (10 seconds) w

[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2017-11-08 Thread Scott Moser
Output of recreate script: $ /tmp/lp-1730744-reproduce-lxc === launch container testme50 === Creating testme50 Starting testme50 === wait for boot === .1 degraded 7.00 === set hostname to bogus value: testme50-foo === === show slow sudo === sudo: unable to resolve h

[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2017-11-08 Thread Scott Moser
** Attachment added: "script with full reproduce." https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1730744/+attachment/5005923/+files/lp-1730744-reproduce-lxc -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd

[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2017-11-08 Thread Dimitri John Ledkov
I do wonder if we need libnss-myhostname to be installed. I hoped that with the stub resolver, we do not. But it depends if the hostname change made it into resolved state or not. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed t

[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2017-11-07 Thread Steve Langasek
What does systemd-resolve --status show in this scenario? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1730744 Title: sudo is slow (10 seconds) when hostname is not reso

[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2017-11-07 Thread Scott Moser
Somewhat interestingly, I'm not sure why I can't just reproduce this by: $ sudo bash -c 'oname=$(hostname); trap "hostname $oname" EXIT; hostname my-bogus-hostname; hostname; time sudo /bin/true;' ; hostname but it doesnt reproduce this way. -- You received this bug notification beca

[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2017-11-07 Thread Scott Moser
This is more easily recreated with lxc. Given a host with systemd-resolv: $ lxc launch ubuntu-daily:xenial x1 $ sleep 10 # let it boot $ lxc exec x1 -- grep '^[^#]' /etc/resolv.conf nameserver 10.75.205.1 search lxd $ lxc exec x1 -- hostname bogus-host $ lxc exec x1 -- bash -c 'time sudo /bin/tr

[Touch-packages] [Bug 1730744] Re: sudo is slow (10 seconds) when hostname is not resolvable

2017-11-07 Thread Scott Moser
Here is some information collected when I tried to debug. Using resolved on host = ## guest $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 10.0.2.3 sea