/srv/irclogs.ubuntu.com/2021/08/24/#cloud-init.txt

blackboxswminor needs fixing on debian/changelog deb lintian warnings. I also think we left some cruft in debian/patches/ubuntu-advantage-revert-tip.patch on bionic that needs a git rm.03:02
=== rowanthorpe1 is now known as rowanthorpe
blackboxswfalcojr: bionic PR approved https://github.com/canonical/cloud-init/pull/997/files thx for the lints16:01
ubottuPull 997 in canonical/cloud-init "Ubuntu/bionic" [Open]16:01
blackboxswfalcojr: if you can reflect the minor spelling change to d/changelog in focal and hirsute I think we are good on those branches16:16
falcojryep, will do16:17
falcojrfocal and hirsute updated16:25
falcojrblackboxsw: ^16:25
blackboxswfalcojr: package d/changelogs look good, running through sbuild now.16:34
blackboxswwill merge and upload to Ubuntu B,F,H -proposed  once that succeedds16:35
blackboxswfalcojr: one interesting thing I'm seeing on Bionic VM integration tests: our assert on NoCloud is failing: 18:46:44 E       AssertionError: assert 'seed-dir (/var/lib/cloud/seed/nocloud-net,/dev/sr0)' == 'seed-dir (/var/lib/cloud/seed/nocloud-net)' since we detect both /dev/sr0 && the nocloud-dir16:36
blackboxswhttps://jenkins.ubuntu.com/server/view/cloud-init/job/cloud-init-integration-lxd_vm-bionic-daily/18/consoleFull16:36
falcojryeah, I've seen that before...didn't realize that affected this test too16:38
blackboxswsmewhere between Aug 5th and Aug 10th something changed in lxc I bet?16:39
blackboxswfalcojr: hrm, just realizing we are missing adding the following d/changelog entry 17:01
blackboxsw  * d/cloud-init.templates: Add VMware datasource support17:02
blackboxswand representing python3-netifaces17:02
blackboxsw  * d/control: Add dependencies on python3-netifaces for vmware ds17:03
falcojrhmmm, did our upstream snapshot script eat it or something?17:03
blackboxswfalcojr: I think because we only added the patch directly into ubuntu/focal|bionic|hirsute for cloud-init.templates and didn't create an unreleased debian changelog entry via `dch -i` new-upstream-snapshot won't document that in the merged changelog17:06
andyfdrat, netifaces doesn’t build on illumos. luckily I already formed for my initial work.17:06
andyf*forked17:06
falcojrblackboxsw: we did add those changelog entries before though17:08
falcojrhmmm, I thought so...but the history is showing otherwise :/17:10
blackboxswfalcojr: if I git checkout upstream/ubuntu/focal and check d/changelog I see no UNRELEASED entry that represents   * d/cloud-init.templates: Add VMware datasource support17:10
blackboxswlast changelog entry was our previous SRU on focal. 17:10
falcojrdang17:10
blackboxswso we would have needed a separate changelog commit after the VMware datasource addition17:10
blackboxswso I've only pushed upstream/ubuntu/bionic  when I recognized this. and we can easily reject our queued SRU uploads because they haven't been accepted17:11
blackboxswbut, I think we should push your branch one more time with the following additional changelog entries:17:12
blackboxsw* d/cloud-init.templates: Add VMware datasource support17:12
blackboxsw  * d/control: Add dependencies on python3-netifaces for vmware ds17:12
blackboxswminus whitespace damage... I'm checking to see if any other debian/* files were altered and undocs17:12
blackboxswminus whitespace damage... I'm checking to see if any other debian/* files were altered and undocumented17:12
blackboxswandyf: "today I learned" about illumos. thx for the reference. And you and trying to get cloud-init to run on the distro or it already does?17:23
blackboxsw... and the recent dependency on netifaces is causing breakage for you?17:24
falcojrblackboxsw: branches are updated. I was accidentally tracking the wrong bionic branch and pushed straight to upstream. It's just the one commit, but you'll probably want to double check I didn't do anything stupid there either17:26
blackboxswsry 'bout the typos. I was curious if illumos already has a working forked cloud-init or whether that is a project you are currently working on17:26
blackboxswfalcojr: I saw a strange force-push on upstream and was wondering17:26
blackboxswfalcojr: will double check. right17:27
blackboxswonly direct consumers of upstream/ubuntu/* branches that I know about are our PPA builders, so a force push shouldn't cause any damage17:27
falcojrblackboxsw: are you seeing the pylint failures due to cryptography's rust dependency?17:34
falcojrcurious why that's only in the pylint job17:35
blackboxswbbiab. pulled afk for a quick errand 17:45
blackboxsw<- back changelogs look good, rebuilding now18:04
blackboxswtox -e pylint succeeding for me falcojr 18:09
blackboxswthough that note reminds me of an issue I thought we saw somewhere else. and generally this noise storm https://github.com/pyca/cryptography/issues/577118:09
ubottuIssue 5771 in pyca/cryptography "Dependency on rust removes support for a number of platforms" [Closed]18:09
blackboxsws/noise storm/general expression of discontent/ :)18:10
falcojrheh, yeah, I remember when that happened18:20
blackboxswfalcojr: ok uploads re-queued for B, F H, merging PRs now18:20
blackboxswmerge done, syncing ubuntu/* branches to launchpad18:28
blackboxswvia https://jenkins.ubuntu.com/server/job/cloud-init-github-mirror/18:28
akutzIs something going on re: VMware DS with which I need to help? I see a lot of activity, but it's unclear to me what the issue is.18:30
blackboxswakutz: nah, just my bungling the release a bit. Sorry for the highlights. falcojr and I are uploading a new upstream snapshot into Ubuntu Impish and also queuing uploads for SRU publishing (StableReleaseUpdates) into Bionic Focal and Hirsute.  Our snapshot script didn't include a couple of packaging debian/changelog entries (all on our side for Ubuntu deb packaging) to document that we are enabling VMware for discovery.18:34
blackboxswwe need our docs/ducks in a row in the package itself if Ubuntu will accept the uploads.18:35
akutzblackboxsw: Ack. I looked like primarily a packaging issue, but I wanted to reach out and check since I was the ultimate cause for the new DS. Thanks!18:35
falcojrmuch more succinct explanation that I was typing up :)18:36
blackboxswfalcojr: that's a first for me #achievement unlocked18:36
falcojrblackboxsw: are we ready to ping a vanguard then?18:36
blackboxswakutz: if you have access to Ubuntu  Impish cloud images 21.10, one could add an impish-proposed  source to /etc/apt/sources.list and `apt-upgrade; apt install cloud-init; cloud-init clean --logs --reboot` to see if VMwareDatasource is detected. https://cloudinit.readthedocs.io/en/latest/topics/debugging.html#stable-release-updates-sru-testing-for-cloud-init18:38
blackboxswfalcojr: I think we are ready to ping SRU vanguard in #ubuntu-release. (bdmurray's day)18:39
blackboxswakutz: from a distro-side of things Ubuntu Impish is under FeatureFreeze for Impish, so uploads are paused for additional validation (kindof like the process we go through in SRUs for stable releases lke Bionic/Focal/Hirsute). falcojr or I will do a bit of verification testing on impish-proposed and get that upload reviewed and accepted via a feature freeze process. 18:40
akutzblackboxsw: Do you want me to doc the verification process? Because I already verified it via a PPA update and dpkg-reconfigure. Does this new verification buy anything else other than e2e?18:41
akutzAlso, where are the 21.10 images? Do you mean a daily from http://cdimage.ubuntu.com?18:42
blackboxswakutz: noe, if you verified vIa PPA we/your are good. we'll just spot check a view things on Impish to make sure we are still running without regressions. our daily CI runs look reasonably successful (and any failures we've seen  are explainable due to other infrastructure issues).18:43
akutzFound http://www.cloud-images.ubuntu.com/impish/current/18:43
blackboxswright http://www.cloud-images.ubuntu.com/impish/current/18:43
akutzI'll deploy the image if I can grab a few, spare cycles and verify the ISO18:43
blackboxswif you do great, it not no biggie. Just a heads up on timing/context more than anything18:44
akutzAck18:44
akutzIt won't hurt. And I should just need to drop the data into the VMX and do nothing else at this point, so if that works, great. If not, well, crap :)18:44
blackboxswakutz: I also just uploaded a binary compatible debs we are testing to https://code.launchpad.net/~cloud-init-dev/+archive/ubuntu/proposed18:47
akutzAck18:47
blackboxswso you could just pull from that PPA and be reasonably certain it's what we will be publishing in Bionic, Focal, Hirsute and Impish18:48
akutzTo be clear, what's in the current Impish image does not include the new without updating from apt?18:48
blackboxswakutz: it won't until we pass featurefreeze exception verification. Until we pass verification, 21.3-1-g6803368d-0ubuntu1  will only live in "impish-proposed" pocket instead of "impish-updates"18:49
akutzAck18:49
blackboxsw-> lunch18:51
akutzWhat is the default user/pass for cloud image?18:51
akutzNot sure how I test this if I cannot log into the image in order to update it with CI that has the DS when I need CI to create a user account?18:53
rharperno default passwords in cloud images (from Ubuntu), akutz; typically we launch with user-data that includes either a password, or more likely we ssh_import_id: lp:XXXX  (or gh:XXXX)  19:02
akutzAh. Well, I created a new VM with the provided VMDK, but I cannot get data into CI that way since my DS is not yet activated :)19:03
rharperheh, that is a bit of a chicken/egg issue 19:04
akutzThe OVA has some fields for initializing data. I can try that.19:04
rharpernot sure how "loop mountable" VMDKs are ... but if it's possible to mount the filesystem, you could chroot and update root pw for console login 19:05
akutzNah, since I have to add a new apt repo and do that whole dance, there's no reason I cannot just use the OVA to get into the image.19:06
rharperI see19:06
akutz(since the OVA has a field that let's me supply an SSH key)19:07
akutz> ubuntu@ubuntuguest:~$ 19:08
akutzI'm in :)19:08
akutz> cloud-init is already the newest version (21.3-1-g6803368d-0ubuntu1).19:11
akutz> 0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.19:11
akutzI followed https://cloudinit.readthedocs.io/en/latest/topics/debugging.html#stable-release-updates-sru-testing-for-cloud-init and got the above19:11
akutzDoes this mean this image already has the DS? I mean, i guess it's easy enough to check...19:11
akutz$ sudo find / -name DataSourceVMware.py -type f19:12
akutzUm, did my post get lost?19:12
akutzAh, /usr/lib/python3/dist-packages/cloudinit/sources/DataSourceVMware.py19:12
akutzIt found the file19:12
akutzDoes this mean this image *does* have the VMware DS, but it's just not activated?19:13
akutzNo, I looked, and the VMware DS is in the list of activated DSs19:13
rharperso look at /etc/cloud/cloud.cfg.d/90-dpkg.cfg ; 19:13
akutz(just did)19:13
akutzIt's there19:13
rharperand then in /run/cloud-init/cloud.cfg will include the datasource that was detected ; 19:13
rharperbut if you booted via OVA, won't that enable the OVF Datasource? (I haven't been following the VMware datasource changes)19:14
akutzBut my point is that blackboxsw said I'd need to log in first, update CI to proposed, and then clean cloud-init and start over19:14
akutzYeah, I used the OVF DS to get into the thing because I thought the new DS wasn't activated. yet it's very much part of the distro, even though attempting to update cloud-init said no updates necessary19:14
rharperWell, impish is devel, so I think they've already uploaded cloud-init main to impish ,,, the SRU will apply to  the previous releases ;   so not quite sure what blackboxsw was asking to verify ; 19:15
akutz>  if you have access to Ubuntu  Impish cloud images 21.10, one could add an impish-proposed  source to /etc/apt/sources.list and `apt-upgrade; apt install cloud-init; cloud-init clean --logs --reboot` to see if VMwareDatasource is detected. https://cloudinit.readthedocs.io/en/latest/topics/debugging.html#stable-release-updates-sru-testing-for-cloud-init19:16
akutzThat's what he said19:16
rharperfor SRU, we typically launch the previous releases, so 21.04  or 20.04 (focal) , then add -proposed pocket and upgrade to the proposed update to cloud-init 19:17
akutzDo you think he just mistyped 21.10?19:17
rharperpossibly19:25
blackboxswsorry back from lunch 19:46
blackboxswchecking my typos and msg history.... ahh akutz yes per "cloud-init is already the newest version (21.3-1-g6803368d-0ubuntu1)." it looks like pur queued upload into impish-proposed was already accepted and has landed in impish-updates for cloud-init 21.3-1 and yes that means you already have the VMWareDatasource "support" available in the cloud-init deb package.19:48
akutzOkay, so I *should* be able to take the VMDK, create a VM with it, set the properties on the VM that activate the new DS, and boot, right?19:49
blackboxswrharper: akutz yes I thought  we were still stuck in impish-proposed for cloud-init 21.3. But, it was already approved/landed into impish by Canonical foundations team. so the "upgrade" step is unneeded19:50
blackboxswakutz: yes, with 21.3 installed in your image. You should be able to either set the appropriate datasource_list: [VMWare] in /etc/cloud/cloud.cfg.d/99_use_vmware.cfg and see VMWare detected via `cloud-id` or cloud-init query v1.platform19:53
akutzWell, since the DS is already in the dpkg list, I *should* be able to just set its metadata and userdata and boot I should think19:54
blackboxswas long as whatever user-data/meta-data isn't getting a positive match for OVF via ds-identify dscheck_OVF you will get to VMWare 19:55
blackboxswsince DataSourceOVF is sorted before DataSourceVMWare in terms of discovery, environments that match both would be detected as OVF I believe19:55
akutzSure. This is why I'm not going to use the OVA, but the VMDK that doesn't have the OVF properties that will trigger the OVF DS :)19:57
blackboxsw+119:58
andyfblackboxsw: yes I have a mostly working fork for illumos that I would like to get upstreamed, probably piece by piece. i already opened a PR for the first bit as a test.19:58
andyfnetifaces cane19:59
rharperblackboxsw: ah, I see. 19:59
andyfnetifaces came in after I forked (only a week or so ago) and it doesnt build at the moment but I havent investigated yet19:59
andyfblackboxsw: it’s at https://github.com/omniosorg/cloud-init ; the illumos branch there. Some it is a bit hacky so far but I will be cleaning it up.20:01
blackboxswandyf: and just a heads up related to netifaces, It's a recent dependency addtion. and I think upstream will need to talk about whether we need an ongoing dependency on netifaces. VMWware is the first datasource that uses it to handle a couple of default routing corner cases as well as MacOS support I think that are not captured in upstream cloudinit.net and netinfo functions.20:02
blackboxswIf we can find ways to incorporate the missing/unsupported use-cases that python3-netifaces handles for  VMWare into cloudinit.net (and netinfo), we might be able to avoid this additional pkg dep long-term20:03
blackboxswbut, I think we need a broader discussion than just on IRC for this20:03
andyfI have plenty to keep me busy on the port for now. I’ve so far only had successful tests in SmartOS (which is another illumos distro), OmniOS (uses Nocloud) and in Azure. i have lots more testing to do.20:05
gnafuandyf: Just so you know, that's coming in as black text on a black background in my client (Irssi).  Copying/pasting into a text editor revealed the secret messages ;-).20:07
gnafuI suppose some folks' clients have a white background, so it's probably readable for them.20:07
akutzI have a black bg as well.20:08
akutzI had no idea that the andyf had shared anything I didn't see :)20:08
akutzThanks gnafu!20:08
gnafu:-)20:09
akutzYeah, I'm happy to help figure out how to remove the netifaces dependency. I have another colleague at VMware that's also willing to help, and I believe he's working on something right now. Still, I'd like to use this opportunity to figure out if there's a way to move some of the logic into core cloud-init, such as updating the persisted instance metadata with information about a network brought up via DHCP (the primary reason we use netifaces).20:09
akutzIt works:20:20
akutz2021-08-24 20:18:32,348 - __init__.py[DEBUG]: Looking for data source in: ['VMware', 'None'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM']20:20
akutz# tail /var/run/cloud-init/ds-identify.log 20:21
akutzON_NOTFOUND=disabled20:21
akutzpid=482 ppid=46020:21
akutzis_container=false20:21
akutzis_ds_enabled(IBMCloud) = true.20:21
akutzRunning on vmware but rpctool query returned 1: No value found20:21
akutzis_ds_enabled(IBMCloud) = true.20:21
akutzec2 platform is 'Unknown'.20:21
akutzcheck for 'VMware' returned found20:21
akutzFound single datasource: VMware20:21
akutz[up 8.32s] returning 020:21
akutzThat's with the VMDK from http://www.cloud-images.ubuntu.com/impish/current/20:22
akutzand no additional changes needed20:22
blackboxswakutz: excellent. and `cloud-init status --long` to check for errors/and discovered cloud from python20:23
akutzFWIW, if anyone wants to test it locally using Workstation or Fusion, all I did was add the following keys to the VMX file for the VM: guestinfo.userdata = "<base64 cloud-config>", guestinfo.userdata.encoding  = "base64", guestinfo.metadata = "<base64 DS metadata from the VMware DS docs>", guestinfo.metadata.encoding  = "base64"20:23
akutzblackboxsw: Oh yeah, lots of errors re: the SSH key imports20:24
akutzMy SSH key worked, but cloud-init wasn't happy for some reason.20:24
blackboxswinteresting, may be worth a bug. some ssh key handling was touched this release. I'd be curious about tracebacks in /var/log/cloud-init.log20:25
akutzYep. I got distracted. Will post a gist.20:31
akutzstatus: error20:32
akutztime: Tue, 24 Aug 2021 20:18:41 +000020:32
akutzdetail:20:32
akutz('ssh-import-id', ProcessExecutionError("Unexpected error while running command.\nCommand: ['sudo', '-Hu', 'mandy', 'ssh-import-id', 'None']\nExit code: 1\nReason: -\nStdout: -\nStderr: -"))20:32
akutz('ssh-authkey-fingerprints', OSError(5, 'Input/output error'))20:32
akutz('keys-to-console', OSError(5, 'Input/output error'))20:32
akutzblackboxsw: Here's a link to the log and output log - https://gist.github.com/akutz/0944edd37c094030c2b57556add1cbdd20:33
akutzblackboxsw: just updated the gist to include the userdata and metadata yamls20:34
blackboxswakutz: in your example ssh_import_id: None actually is the string "None" not the null that was intended20:38
blackboxswso it gets translates on yaml.load to "None" instead of None20:38
blackboxswwhich is why the tracebacks are showing failures to run ['sudo', '-Hu', 'mandy', 'ssh-import-id', 'None']20:38
blackboxswI thjink20:38
blackboxswcan confirm that same failure locally with that userdata "ssh_import_id: None" instead of "ssh_import_id: null" 20:41
falcojryou can just remove the ssh_import_id key if you're not using it20:49
akutzAck, thanks!21:59
akutzYeah, works sans any errors with null, thanks again!22:06
blackboxswgreat to hear thx for the extra validation akutz loooks like our Bionic, Focal and Hirsute packages just got accepted into *-proposed too. we'll be able to start our SRU validation process tomorrow on all clouds22:38
akutzNo problem, thanks again blackboxsw!22:38
blackboxswditto22:39

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