/srv/irclogs.ubuntu.com/2020/03/02/#cloud-init.txt

=== cpaelzer__ is now known as cpaelzer
=== vrubiolo1 is now known as vrubiolo
=== vrubiolo1 is now known as vrubiolo
=== hggdh is now known as hggdh-msft
=== vrubiolo1 is now known as vrubiolo
fredlef1rharper: Can you take a look at PR:229 when you have a minute.  It's a follow up from our chat last week about the cached datasource object?18:29
fredlef1https://github.com/canonical/cloud-init/pull/22918:29
blackboxswfredlef1: I also owe you a followup on https://github.com/canonical/cloud-init/pull/216 apologies I got pulled into a minor escalation18:30
blackboxswplan is still to get you an update today18:30
blackboxswrharper: I think the bug we were hitting is in part related to https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/172735618:34
ubot5Ubuntu bug 1727356 in mutter (Ubuntu Cosmic) "Login screen never appears on early generation Intel GPUs (Core2 and Atom etc)" [High,Fix released]18:34
rharperfredlef1: definitely18:35
blackboxswwoah wrong bug18:35
rharperblackboxsw: maybe; but it's out-of-scope for our bug18:35
rharperoh18:35
rharperhehe18:35
blackboxswhttps://bugs.launchpad.net/cloud-init/+bug/184861718:35
ubot5Ubuntu bug 1848617 in ifupdown (Ubuntu) "Installing ifupdown on bionic does not install a /etc/network/interfaces that sources /etc/network/interfaces.d/*" [Undecided,New]18:35
blackboxswbut still out of scope for our bug specifically18:35
rharperblackboxsw: yes, that is true18:35
rharperI agree18:35
blackboxswthough bionic ifupdown on bionic should have a proper include18:35
rharperthe source file is from the image build18:35
rharperand on bionic it's not installed18:35
rharperI don't think ifupdown packaging ever contained that18:36
rharperit was always an image build add18:36
blackboxswahh i see18:36
rharperbut, that sounds exactly correct18:36
blackboxswconfirmed on xenial dpkg -S /etc/network/interfaces finds no owning pkgs18:37
rharperblackboxsw: worth asking cpc how best to handle this w.r.t legacy cloud-init18:37
blackboxswwill do18:37
rharperthat is, cloud-init *could* emit that source stanza in /etc/network/interfaces18:37
rharperblackboxsw: actually; the xenial image should have that18:38
blackboxswrharper: xenial image does contain the file, just not delivered by a package18:39
blackboxswhttps://pastebin.ubuntu.com/p/dNGHqNzKvt/18:39
blackboxswso image build process did it18:39
rharpercorrect18:39
rharperhowever , what clobbers the file ?18:39
rharperif you launch a xenial image , it should be present, no?18:39
rharperso what happens during package install, snapshot, upgrade ?18:39
blackboxswrharper: ubuntu@35.247.83.5318:39
rharperin18:40
rharperI see the file looks like it was clobbered by the install of the package18:40
rharperlook at ifupdown postinst18:41
rharperit will create the file18:41
blackboxsw+1 see it18:41
blackboxswrharper: though see that postinst creates with different incorrect content too18:42
rharpernot incorrect18:42
rharperjust does not filter *.cfg from the .d dir18:42
blackboxswsource /etc/network/interfaces instead of 'source /etc/network/interfaces.d/*.cfg'18:42
blackboxswahh I overlooked source-directory18:43
blackboxswright18:43
rharperblackboxsw: so; if I launch a new xenial image, the /etc/network/interfaces is what we expect18:46
blackboxswrharper: and I don't think the original issue was on xenial at all18:46
rharperoh ?18:46
blackboxswjust bionic as I re-readit18:47
rharperhow did I see xenial mentioned as well  /18:47
rharperthat makes a lot more sense18:47
rharperas the in-image eni file is sane18:47
blackboxswright, xenial was mentioned as not replacing it18:47
rharperok18:47
blackboxsw*reproducing*18:47
rharperthere we go18:47
blackboxswok so filing a bug and adding workaround notes.18:47
rharperso, then yes, this comes down to bionic images not having the cpc eni file because it's not ifupdown enabled; and further, ifupdown packging does not provide a file with the cloud-init expected source directive18:48
rharperit can be resolved in a few places;  for now; I suspect we want to purge ifupdown in that image unless pppoe is needed (it is not in the cloud AFAICT)18:48
blackboxswrharper: you thinks it's worth demoting pppeoconf installed by ubuntu-desktop from required to recommends too? maybe I'm misreading the bionic pkg debian control18:49
rharperthis should result in rendereing networkd just fine and all is well18:49
rharperblackboxsw: unclear18:49
rharperI think workaround first (uninstall ifupdown)18:49
blackboxswyeah +1.18:49
rharperblackboxsw: follow is, if you install bionic from desktop iso, do you get ifupdown ?18:50
rharperif not, why18:50
rharperand cloud-init can be defensive in the bionic case w.r.t adding a source directive if the /etc/network/interfaces files does not contain it18:50
rharperfloating the idea of whether the ifupdown package itself should have that in it's auto-generated eni file18:51
ahosmanMSFTrharper: I tested the PR looks to be working, can you double check?19:07
rharperahosmanMSFT: excellent, I'll give it a spin19:07
blackboxswrharper: http://releases.ubuntu.com/18.04/ubuntu-18.04.4-desktop-amd64.manifest  doesn't that mean the Ubuntu Desktop ISO installs both ifupdown and ppoeconfig pkgs?19:52
blackboxswI'm mid download and install run now to be certain19:52
rharperblackboxsw: well, it means the deb packages are installed19:53
rharperit does not say, what, if any, iso specific changes are made in livecd-rootfs19:53
rharperblackboxsw: so, unfortunately you'll need to complete an install19:53
rharperparide is gone, but I wonder if utah has final image qcow2 images we could post-mortem the filesystem19:54
* rharper inspects a local bionic desktop install 19:54
rharperblackboxsw: my local bionic desktop does not have any source * stuff in it's eni file19:56
blackboxswrharper: my orig cpc image had the netplan disabled comments in /etc/network/interfaces19:58
rharperyes, cloud images19:58
rharperbut standard desktop wont (just ifupdown installed due to the pppoe dep IIUC)19:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!