[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-10-23 Thread Benjamin Drung
** Tags removed: foundations-todo -- 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/2008952 Title: DNS failure while trying to fetch user-data Status in cloud-init: Fix

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-06-09 Thread Dan Bungert
** Changed in: subiquity Status: New => Invalid -- 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/2008952 Title: DNS failure while trying to fetch user-data Status

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-06-09 Thread Nick Rosbrook
My understanding from a quick read is that there is nothing to do in systemd. Please re-open if I am mistaken. ** Changed in: systemd (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-05-12 Thread James Falcon
Tracked in Github Issues as https://github.com/canonical/cloud- init/issues/4085 ** Bug watch added: github.com/canonical/cloud-init/issues #4085 https://github.com/canonical/cloud-init/issues/4085 -- You received this bug notification because you are a member of Ubuntu Touch seeded

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-04-11 Thread Chad Smith
Closing the cloud-init task here as invalid because we have livecd- rootfs overlay config files allow for cloud-init.service to get ordered After=NetworkManager.service which solves the immediate DNS issues in early boot. Long-term cloud-init will need to spec out options to prefer ordering after

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-04-07 Thread Chad Smith
I can confirm success manually launching images via kvm in virt-manager that live desktop image builds as of 20230403 images in `/cdrom/.disk/info` have the proper systemd service ordering which places cloud-init.service `After=NetworkManager.service NetworkManager- wait-online.service`. Which

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-04-03 Thread Chad Smith
I can now confirm successful autoinstall runs with FQDN in kernel commandline in Desktop live installer ISOs dated 20230403. This allows cloud-init.service to be ordered `After=NetworkManager.service NetworkManager-wait-online.service` which ensures devices and resolved are both 'up' and active by

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-29 Thread Launchpad Bug Tracker
This bug was fixed in the package livecd-rootfs - 2.817 --- livecd-rootfs (2.817) lunar; urgency=medium [ John Chittum ] * revert ipc change. kernel 6.2 will have the correct setting -- Steve Langasek Mon, 27 Mar 2023 12:11:06 -0700 ** Changed in: livecd-rootfs (Ubuntu)

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-27 Thread Chad Smith
jsonschema 2.6.0 is now dropped from latest ubuntu-desktop-snap version 0+get.98600e08 in stable channel as of a couple hours ago per this issue/fix[1]. This resolves issues with curtin Tracebacks on jsonschema.validate(). Additionally cloud-init has a PR in progress[2] to avoid registering a

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-24 Thread Dan Bungert
What a mess! I have uploaded the livecd-rootfs change proposed by Chad in #26. Note that there is another problem around jsonschema exposed by this that is in progress. ** Also affects: livecd-rootfs (Ubuntu) Importance: Undecided Status: New ** Changed in: livecd-rootfs (Ubuntu)

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-23 Thread Chad Smith
** Changed in: cloud-init Status: Triaged => In Progress -- 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/2008952 Title: DNS failure while trying to fetch user-data

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-23 Thread Chad Smith
PR up for discussion on this ordering change in livecd https://code.launchpad.net/~chad.smith/livecd-rootfs/+git/livecd- rootfs/+merge/439586 ** Changed in: cloud-init Assignee: (unassigned) => Chad Smith (chad.smith) -- You received this bug notification because you are a member of Ubuntu

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-23 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~chad.smith/livecd-rootfs/+git/livecd-rootfs/+merge/439586 -- 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/2008952

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-23 Thread Chad Smith
Short-term proposal update: Looks like we can't get away with suppplemental systemd drop-ins in /etc/systemd/system/cloud-init.service.d by themselves in livecd-roots because we need to remove the "Before=sysinit.target" from the default shipped cloud-init.service config. Systemd drop-ins

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-22 Thread Chad Smith
Short-term solution here will likely be for livecd-rootfs to augment cloud-init.service which drops `Before=sysinit.target` and adds an `After=NetworkManager-wait-online.service`. This is quite a bit like what redhat and derivatives have done for a while. Redhat and derivitatives have an

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Chad Smith
While retries on DNS resolution failures does not work for cloud- init.service for environments running NetworkManager.service (desktop live ISOs), I have found that the retries work where systemd-networkd is bringing up network config (server live ISOs). This is because cloud- init.service is

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Chad Smith
This issue with NetworkManager.service and systemd is reminiscent of the related feature request against systemd-networkd https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1636912 that also points out the ordering issues. -- You received this bug notification because you are a member of

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Chad Smith
TLDR: My earlier suggestion to retry in cloud-init.service while awaiting DNS is not viable when thinking about NetworkManager. NetworkManager.service is After=sysinit.target due to After=dbus.service and cloud-init.service is Before=sysinit.target. NetworkManager is the only service bringing up

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Chad Smith
I can confirm Dan's validation that After=systemd-resolved.service doesn't buy us anything here because, although systemd-resolved.service is up, NetworkManager.service && NetworkManager-wait-online.service don't finish bringing link up for related network devices until After=dbus.service

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Chad Smith
I'm also going back to the tabular network state printed out by in cloud-init.service shows: that the primary network interface is still down at this point in boot, which it shouldn't be. cloud-init should be waiting on the presence of link up before starting it's cloud- init.service (network boot

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Chad Smith
Thank you all for your attention on this bug. Sorry my earlier comment on this bug was ill-informed and incorrect. I'm able to reproduce this as well through the server installer qemu/kvm based installs as well so I can confirm as well that this isn't/wasn't NetworkManager and

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Dan Bungert
I played with a two variation of dropping in some after directives, but obtained similar failing results where the network state was not what cloud-init wanted at the time it started. @Chad - what's your thoughts on some service reordering? -- You received this bug notification because you are

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Nick Rosbrook
FWIW you can test this out by adding a drop-in config: $ cat > /etc/systemd/system/cloud-init.service.d/10-after-systemd-resolved.conf << EOF [Service] After=systemd-resolved.service EOF -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Nick Rosbrook
It appears we have the following *ordering* relationship between systemd-resolved.service, cloud-init.service, network.target, and network-online.target: network-online.target / \ /.. \ /.\

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Danilo Egea Gondolfo
** Attachment added: "cloud-init.log" https://bugs.launchpad.net/cloud-init/+bug/2008952/+attachment/5654393/+files/cloud-init.log -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu.

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Danilo Egea Gondolfo
I attached some logs that might be useful. After checking it again I realized that the syslog timestamps are a little off when compared to the systemd journal. As shown in the timeline.txt (attached), cloud-init and systemd-resolved are starting at the same time. So the name resolution might not

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Danilo Egea Gondolfo
** Attachment added: "timeline.txt" https://bugs.launchpad.net/cloud-init/+bug/2008952/+attachment/5654394/+files/timeline.txt -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu.

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Danilo Egea Gondolfo
** Attachment added: "systemd_journal.txt" https://bugs.launchpad.net/cloud-init/+bug/2008952/+attachment/5654392/+files/systemd_journal.txt -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu.

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Danilo Egea Gondolfo
** Changed in: netplan Status: New => Invalid -- 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/2008952 Title: DNS failure while trying to fetch user-data Status in

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-14 Thread Lukas Märdian
Maybe we need some additional systemd service ordering, to make systemd- resolved start before calling into the DHCP client, so that it can properly receive the DNS servers. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-09 Thread Danilo Egea Gondolfo
As /etc/resolv.conf is a symlink, is it possible that the nameservers received via DHCP in the early boot stages are never stored in /etc/resolv.conf? cloud-init tries to resolve that address before resolved is started and there is nothing at /etc/resolv.conf. Does that make sense? -- You

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-09 Thread Danilo Egea Gondolfo
It doesn't seem to be caused by a race between networkd and NetworkManager. I reproduced the issue with qemu here and I see the name resolution failure happening few seconds before NetworkManager started. >From /var/log/cloud-init.log: 2023-03-09 19:17:58,443 - util.py[DEBUG]: Getting data from

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-09 Thread Lukas Märdian
01-network-manager-all.yaml seems to be shipped by livecd-rootfs ** Changed in: netplan Assignee: (unassigned) => Danilo Egea Gondolfo (danilogondolfo) ** Tags removed: rls-ll-incoming ** Tags added: foundations-todo -- You received this bug notification because you are a member of Ubuntu

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-08 Thread Dan Bungert
> So I wonder what is the exact sequence of events for running the Netplan generator (by systemd), installing the 50-cloud-init.yaml file (by cloud-init), installing the 01-network-manager-all.yaml file (by the installer?), executing `netplan apply` (by cloud-init). By the time Subiquity has

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-08 Thread Dan Bungert
So while this bug talks about netboot, I think it isn't necessary to involve that for testing purposes. I suggest simply booting the desktop daily-live with the nocloud kernel command line listed above and seeing how things go. Are the various network tools doing what we expect? Note that

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-08 Thread Lukas Märdian
I disagree with comment #1 /etc/netlan/01-network-manager-all.yaml and /etc/netplan/50-cloud- init.yaml should not be in conflict with each other, but will be merged by Netplan to produce the following configuration: ```yaml network: version: 2 renderer: NetworkManager ethernets:

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-07 Thread Dan Bungert
** Tags added: rls-ll-incoming -- 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/2008952 Title: DNS failure while trying to fetch user-data Status in cloud-init: Triaged

[Touch-packages] [Bug 2008952] Re: DNS failure while trying to fetch user-data

2023-03-07 Thread Dan Bungert
Looking at the desktop ISOs, while the system is configured with Netplan to use NetworkManager, there seems to be some conflict here where systemd-networkd is trying to interact with the device. Some feedback would be appreciated. The practical result is that early boot cloud- init is not able