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

blackboxswmruffell: not a pain thanks for the query. We've finished all verification testing, I have sent an email to the SRU team to see if the final verification  by the solutions testing team was enough (bionic-only) to meet the merit of the SRU exception process we hold https://wiki.ubuntu.com/CloudinitUpdates#Solutions_Testing. I believe we are all good on testing and just awaiting a +1 from SRU team in03:33
blackboxsw#ubuntu-release channel.03:33
blackboxswmruffell: watch bug https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1881018 for the updated Fix Released status and release comment from SRU team members. It should be this week in the next couple days.03:34
ubot5Ubuntu bug 1881018 in cloud-init (Ubuntu) "sru cloud-init (19.4.33 to 20.2-45) Xenial, Bionic, Eoan and Focal" [Undecided,In progress]03:34
mruffellblackboxsw: thanks Chad! I will be patiently waiting.03:35
blackboxswjust added a comment for clarity and I'm marking SRU tags appropriately so it's not blocked on me per-se03:37
blackboxswhttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1881018/comments/1603:37
ubot5Ubuntu bug 1881018 in cloud-init (Ubuntu) "sru cloud-init (19.4.33 to 20.2-45) Xenial, Bionic, Eoan and Focal" [Undecided,In progress]03:37
=== vrubiolo1 is now known as vrubiolo
=== hjensas is now known as hjensas|afk
=== hjensas|afk is now known as hjensas
=== vrubiolo1 is now known as vrubiolo
=== vrubiolo1 is now known as vrubiolo
=== vrubiolo1 is now known as vrubiolo
langjvHey all - im attempting to run cloud-init 20.2 on RHEL8 to rule out a possible "bug" in the provided releases from RHEL (18.x). It installs fine - but im having issues making it "work". After installing, i "systemctl enable cloud-init" to get it to run at boot, but upon boot, it doesn't actually run14:29
langjvIs there some secret to making the latest RPM's provided on the cloud-init repos "work?14:29
langjvhttps://pastebin.com/A26uGCWb14:31
otuboOdd_Bloke, Hi! I'm still getting familiar with the tests, sorry for the long back and forth there. Quick question here, don't I still need to inherit test_helpers.FilesystemMockingTestCase in order to mock the filesystem to create a fake swap and further swapon?15:16
otuboOdd_Bloke, or I'm missing something here?15:16
otubolangjv, can you provide more logs?15:30
langjvso - there "are no logs" because nothing runs - the logfiles dont even exist15:34
langjvbut as soon as i start the service - it runs and logfiles get created15:35
langjvi am trying again enabling the following services (cloud-config, cloud-final, cloud-init-local, cloud-init(15:35
langjvcomparing the RHEL release (these 4 exist and are enabled by default) to the 20.2 release (these 4 exist but are not enabled by default) im hoping that enabling all 4 will cause it to "work" when i turn on the image15:36
otubolangjv, 20.2 is not officially supported by rhel, so there might some pieces missing on the rpm. Did you built yourself?15:36
langjvno i used the one released on the cloud-init repos. I was asked to try it to rule out issues im seeing in: https://bugs.launchpad.net/cloud-init/+bug/1886428 with the "supported" version15:37
ubot5Ubuntu bug 1886428 in cloud-init "Cloud-Init on RHEL8 cannot parse #cloud-config user-data" [Undecided,New]15:37
otubolangjv, right. I can take a look t that issue, since it's reproducible in 18.5.15:42
otubolangjv, let me know if enabling all 4 services make it work15:42
langjvotubo it did not work with all 4 services enabled either - weird: https://pastebin.com/j4VVLMss16:02
otubolangjv, do you really need to run 20.2 or you're just investigating that bug?16:03
langjvinvestigating that bug - someone here asked me to try it to see if it fixed my issue yesterday16:06
langjvit does seem like "same issue" though in 20.2 - just manifesting differently16:06
langjvhttps://pastebin.com/72YY6NqW16:06
langjvcloud-init is enabled but no datasource found, disabling16:07
langjvI had found this yesterday: https://kb.vmware.com/s/article/7459716:07
langjvand set the needed smbios property on my image - but it "seems" to not be working ( i am on 5.1.0.3 of VIO so a "fixed" version)16:08
langjvam using "OpenTelekomCloud" to allow me to test with both 18.5 and 20.216:08
otubolangjv, in which cloud are you running the vm on?16:09
langjvVMWare VIO16:09
otubolangjv, AFAIK there's another known issue with rhel and vmware, it changes its instance-id on every reboot making cloud-init think it's the first time it runs. Not sure if it's related. But worth looking into.16:12
langjvwasnt aware of that - ill keep an eye out for it.16:16
langjvi think my current issue is efinitely related to datsource though. im switching back to 18.5 to attempt to reproduce again16:18
langjvhttps://pastebin.com/0YpFzT9b16:18
otubointeresting16:33
Odd_Blokeotubo: No worries, happy to help you get up to speed!  I'm not really around today, so we can either discuss how to proceed with doing this via pytest in the PR, or you can go ahead and subclass from FilesystemMockingTestCase and write unittest tests; I'm happy with either. :)16:35
otuboOdd_Bloke, awesome, I'll try somethings here and update the PR. Thanks for the reviews!16:36
elsmorianHi, I'm trying to debug our cloud init config, its trying to run a bootcmd looks like and it's failing, and we are getting: https://pastebin.com/k17MtCkS16:39
elsmorianBut I can't see anything in that tmp directory so can't see what it is trying to run, traceback in the logs is also not super helpful. Is there anywhere else I can see more info, or run it so it will show what that tmp shell script contains? - logs: https://pastebin.com/q0nLdigr16:44
meenaelsmorian:   well, funny story, exit code 2 could very well mean ENOENT16:54
meenaor was that EACCESS?16:57
meenaWhere's the OS source code (on your phone) when you need it?16:58
meenahttps://docs.rs/libc/0.2.71/libc/constant.ENOENT.html thank you rust17:01
meenaelsmorian:  so, what's your config look like? maybe if we see that, we can get a better feel for why the file doesn't materialise17:03
elsmorianmeena: Ah, interesting, so maybe the missing entity is the cause..17:04
meenathat's what i just said17:05
elsmorianmeena: so I'm a bit new to this as a lot is templated by terraform by someone else and I'm just getting up to speed. Which config files would be the most useful17:05
elsmorianmeena: 👍17:05
meenaor tried to say17:05
meenalet's look at the result that cloud-init sees then17:05
meenacloud-init query17:05
elsmoriancloud-init query --all? or something more specific?17:07
elsmorianArgh, I have to disappear again, `cloud-init query --all` looks like it has some pointers to the things it's trying to run though, I will check that they they all point to things that are there, thanks for the pointer!17:19
meena😽17:21
AnhVoMSFT@Odd_Bloke @blackboxsw how do I skip lxd when running tox integration test?18:26
powersjAnhVoMSFT, you can use --platform to specify which platform you want to run on18:29
AnhVoMSFTyou would think setting enabled: false flag in the platforms.yaml file for lxd would have done it :)18:31
langjvotubo thanks for your help earlier - my bug is this: https://kb.vmware.com/s/article/74597 - the reason i couldn't fix it is because the "flavor" arg fix is slightly different than the "image" arg fix. Which if course i didn't catch. Eventually got it though. RHEL requires "OpenTelekom" for now until upgrading to 19.2 but otherwise "working" now it18:55
langjvseems.18:55
ahasenackhi all, is there a way to set http_proxy globally via cloud-init? I'm thinking in /etc/environment19:19
ahasenacka quick google pointed me at the proxy settings for apt, but I want then in the default environment19:19
ahasenackhm, sounds like a long standing bug: https://bugs.launchpad.net/cloud-init/+bug/108940519:20
ubot5Ubuntu bug 1089405 in cloud-init "setting up system proxy via cloud-config might be nice" [Wishlist,Triaged]19:20
meenathat should be a module19:22
meenacc_proxy19:22
ahasenackwrite_files apparently can be used19:23
meenayeah, but, it'd not be complete, given a specific distro and it's needs19:24
meenaespecially with regards to package proxies19:25
meenagem, pip, cargo, maven, apt, yum, pkg,19:26
ahasenacksounds like a module for populating /etc/environment would be more appropriate19:27
ahasenackwhich I think was smoser's suggestion in that bug19:27
ahasenackwrite_module worked for me, btw19:28
meenaahasenack:  different platforms have different ideas where to put the global environment into19:28
meenawhich i think means, i should write a parser for login.conf for distros/freebsd.py19:34
meenawe could also do with an augeas lense19:40
smoseri would hpe i never suggested putting http_proxy variables in /etc/environment20:37
smoseri think generally thats a terrible idea20:37
smoserok. looks like in the final comment i came around to some sanity.20:38
smosercloud-init generically taking an environment dictionary20:38
smoseri think i've posted such rants elsewhere20:44
smoserbut here is one20:44
smoser https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1671320/comments/120:44
ubot5Ubuntu bug 1671320 in maas (Ubuntu) "MaaS should set /etc/environment with appropriate proxy settings for rescue mode" [Wishlist,Triaged]20:44
meenait's really unfair to demand our Unix such concepts as consistency21:16
meenaif you want to consistently configure a proxy on a system, you should do it on Windows, or else configure a transparent proxy21:17
meenasmoser:  so we last sentence sounds good, but i'm not sure if you're suggesting each service have a module with a proxy config, or if you'd have one proxy module where you list which services you'd like to be proxied21:21
smoseri'd like nothing to do with the nonsense that is http proxy configuration on unix21:31
smoserif we just set an 'environment' for cloud-init, and let the user set what they wanted, then programs it called would get that environment.21:32
smoserand you'd get what your after without cloud-init having to know about proxy21:32

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