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

Xat`hello guys !11:13
Xat`cloud-init erases /etc/ssh/ssh_host_*_key file when it starts11:17
Xat`I don't want this behavior, how can I remove this ?11:18
meenaXat`: hello11:35
meenagenerally, it shouldn't erase, but (re)create them. and it should only recreate them if something really signifcant has changed about the server11:36
Xat`meena: I have a 2 SFTP servers behind a load balancer. When sftp client are connecting to the loadbalancer endpoint, they are "forwarded" to one of the two servers. Because of that, sftp client spawns a security alert because ssh fingerprint has changed. This is why I tried to setup host keys from /etc/ssh/ directory.13:24
Xat`But, cloud-init erases them in the 'init' phase13:25
meenaXat`: ooookay. so, you might wanna disable that module13:26
Xat`yeah :) Can I have a list of module or get doc related to specific module13:26
meenahttps://github.com/canonical/cloud-init/blob/master/config/cloud.cfg.tmpl#L7513:26
meenaand then there's this: https://github.com/canonical/cloud-init/blob/master/config/cloud.cfg.tmpl#L8513:27
Xat`I guess ssh-authkey-fingerprints could be good one13:27
meenai dunno all of them, i keep ssh to a bare minimum13:28
meenabuuuuuuut now i'm wondering if i shouldn't be using cloud-init to roll out my git deploy key >_>13:29
Xat`:)13:29
Odd_BlokeXat`: How are the SSH host keys getting generated on the host (if not by cloud-init at boot)?14:20
Xat`Odd_Bloke: using an ansible role15:21
Xat`I am using a lot of ansible stuff, but it seems that cloud-init could help me for some things15:22
Odd_BlokeXat`: OK, sounds like it is sensible to disable the SSH key behaviour then.  For _some_ reason, that specific part of the docs isn't rendering at the moment, here's an older version where it _is_ rendered: https://cloudinit.readthedocs.io/en/19.2/topics/modules.html#ssh15:23
Odd_BlokeYou probably want `ssh_deletekeys: False` in your user data.15:23
Xat`I was not at all aware about it. But now I know I have to deal with it ;)15:24
Odd_Bloke^_^15:24
Xat`Odd_Bloke: yes, I did it15:24
Xat`in combination with ssh_genkeytypes: []15:24
Odd_BlokeAnd did that address your issues, or are you still seeing some behaviour you don't want?15:25
Xat`Odd_Bloke: my issue is now solved ;)15:25
Xat`I have to set both15:26
Xat`thank you guys Odd_Bloke & meena15:26
Odd_BlokeYeah, I was going to point at ssh_genkeytypes next. :)15:26
Odd_BlokeGlad to hear it's resolved! :)15:26
Xat`:)15:26
akikOdd_Bloke: does a list of all the cloud-init tasks default exist somewhere?15:29
akikdefault tasks15:29
Odd_Blokeakik: Can you expand on what you mean by "tasks"?15:29
akikOdd_Bloke: for example that default user creation15:30
akikand that ssh_deletekeys15:30
Xat`akik: I was actually looking for the same doc15:32
Xat`but I used the code instead15:32
Odd_Blokeakik: So there is some stuff that cloud-init does on a per-platform basis (e.g. it will mount a drive to read configuration for ConfigDrive, it will do some specific networking stuff on Azure, etc.) and everything else is contained in config modules which are documented at https://cloudinit.readthedocs.io/en/latest/topics/modules.html15:33
akiki'd like cloud-init to be very clear on what it'll do by default15:33
akikOdd_Bloke: which ones are ran by default?15:34
Odd_BlokeWhich modules run is entirely configurable per-system, so there isn't an explicit list that upstream can give you for your particular system.15:34
Odd_BlokeBut you can see the configuration template that upstream ship here: https://github.com/canonical/cloud-init/blob/master/config/cloud.cfg.tmpl15:35
akikwhat's upstream in this case?15:35
akikubuntu?15:35
Odd_BlokeNo, cloud-init.15:35
Odd_BlokeYou can look at /etc/cloud/cloud.cfg to see what your system is configured to do.15:36
akikfor example i removed the user creation from my user-data, and got that default centos user. that was totally unexpected15:36
Odd_BlokeRight, that's how the CentOS packages configure cloud-init.15:38
Odd_Bloke(And almost all distros do the same, including Ubuntu.)15:38
akiki don't remember if it added NOPASSWD: to sudo config15:38
akikthat shouldn't happen15:39
Odd_BlokeHow would you set the password in the default case that no user-data is passed?15:42
Odd_Blokeblackboxsw: LMAO, GitHub just didn't attach my comments to the right lines at all.16:56
blackboxswyeah that was strange16:56
Odd_Blokeblackboxsw: Search for "1min"16:56
blackboxswfound it Odd_Bloke thanks. That system had a 1 min execution on the cmd ssh-import-id chad.smith :).   I'm reattempting a complex azure network run to see if it hit the same issue16:58
Odd_BlokeOK, thanks!17:09
Odd_Blokeblackboxsw: If you're looking for a break: https://github.com/canonical/cloud-init/pull/17817:10
blackboxsw#startmeeting Cloud-init bi-weekly status17:42
meetingologyMeeting started Tue Jan 21 17:42:43 2020 UTC.  The chair is blackboxsw. Information about MeetBot at http://wiki.ubuntu.com/meetingology.17:42
meetingologyAvailable commands: action commands idea info link nick17:42
blackboxswAt long last, and a bit late. Time for a brief cloud-init status meeting17:43
blackboxswCoud-init upstream uses this meeting as a platform for community updates, feature/bug discussions, and an opportunity to get some extra input on current development.17:43
blackboxswYou can always find the next date and time of the cloud-init status meeting in the topic of this channel.17:44
blackboxswit also serves as a reminder to me that we need to start it as I find it's easy to forget the appointment if it isn't staring us in the face.17:45
blackboxswLet's set next meeting now17:46
=== blackboxsw changed the topic of #cloud-init to: cloud-init pull-requests https://git.io/JeVed | Meeting minutes: https://goo.gl/mrHdaj | Next status meeting February 4 17:15 UTC | 19.4 (Dec 17) drops Py2.7 : origin/stable-19.4 | 20.1 (Feb 18) | https://bugs.launchpad.net/cloud-init/+filebug
blackboxswour previous meeting minutes are recorded on our  github site17:48
blackboxsw#link https://cloud-init.github.io/17:49
blackboxswthe topics we cover in this meeting are the following: Previous Actions, Recent Changes, In-progress Development, Community Charter, Upcoming Meetings, Office Hours (~30 mins).17:49
blackboxsw#topic Previous Actions17:50
blackboxswPrevious  #ACTION bbsw seed initial community charter bitesize bugs   ... DONE.17:50
blackboxsw'bitesize' bugs for cloud-init can be found at the following link17:51
blackboxsw#link bugs.launchpad.net/cloud-init/+bugs?field.tag=bitesize17:51
blackboxswThese bugs should be easy to work in parallel as well as self-contained bits of work that any member of the community could approach as a small chunk of work17:52
blackboxswwe moved from using trello board for tracking these tasks to using launchpad bugs as it eases the ability to search and grab ownership of the specific features/bugs17:53
blackboxsw#topic Recent Changes17:53
blackboxswThe following commits landed in tip of master: (found by git log --since 01/07/2020)17:55
blackboxsw    - Add Rootbox & HyperOne to list of cloud in README (#176) [Adam Dobrawy]17:55
blackboxsw    - docs: add proposed SRU testing procedure (#167)17:55
blackboxsw    - util: rename get_architecture to get_dpkg_architecture (#173)17:55
blackboxsw    - Ensure util.get_architecture() runs only once (#172)17:55
blackboxsw    - Only use gpart if it is the BSD gpart (#131) [Conrad Hoffmann]17:55
blackboxsw    - freebsd: remove superflu exception mapping (#166) [Gonéri Le Bouder]17:55
blackboxsw    - ssh_auth_key_fingerprints_disable test: fix capitalization (#165)17:55
blackboxsw      [Paride Legovini]17:55
blackboxsw    - util: move uptime's else branch into its own boottime function (#53)17:55
blackboxsw      [Igor Galić] (LP: #1853160)17:55
blackboxsw    - workflows: add contributor license agreement checker (#155)17:55
blackboxsw    - net: fix rendering of 'static6' in network config (#77) (LP: #1850988)17:55
blackboxsw    - Make tests work with Python 3.8 (#139) [Conrad Hoffmann]17:55
blackboxsw    - fixed minor bug with mkswap in cc_disk_setup.py (#143) [andreaf74]17:55
ubot5Launchpad bug 1853160 in cloud-init "uptime code does not work on FreeBSD with python 3" [Medium,Fix committed] https://launchpad.net/bugs/185316017:55
ubot5Launchpad bug 1850988 in cloud-init "[Cloud-init 18.5][CentOS 7 on vSphere] Crash when configuring static dual-stack (IPv4 + IPv6) networking" [Medium,Fix committed] https://launchpad.net/bugs/185098817:55
blackboxswThanks Adam, Conrad, andreaf74, Gonéri and meena for improving cloud-init.17:56
blackboxsw#topic In-progress Development17:57
blackboxswFreeBSD, NetBSD improvements are under heavy development, thanks meena and Goneri for all the PRs put of in that regard.17:58
blackboxswAlso robjo has started work on cleanup of sysconfig net rendering per https://github.com/canonical/cloud-init/pull/162 and a mailing list discussion17:58
blackboxswrharper is also midstream on "cloud-init run as a daemon" mode https://github.com/canonical/cloud-init/pull/48   which should improve cloud-init startup times by avoiding having to reload python 4 times for each cloud-init stage17:59
blackboxswAlso in progress, upstream has started to SRU testing for cloud-init 19.4.33 into Ubuntu Xenial, Bionic and Eoan.18:00
blackboxswWe expect to wrap up that testing this week for a publish of cloud-init 19.4.33 to those series18:01
blackboxsw#topic Community Charter18:02
blackboxswAs a note, any community member is welcome to participate in SRU testing of cloud-init if those changesets in the SRU affect your cloud platform or features.18:02
blackboxswWe have added a guide for SRU testing on Ubuntu here18:02
tribaalduly noted :)18:03
blackboxsw#link https://cloudinit.readthedocs.io/en/latest/topics/debugging.html#manual-sru-verification-procedure18:03
blackboxsw:)18:03
blackboxswahh tribaal we should pull in your PR for manual testing of Exoscale too if you think it's ready https://github.com/cloud-init/ubuntu-sru/pull/6418:04
tribaalit's not unfortunately :/18:04
blackboxswahh, ok *good*, thought it was waiting on review18:05
blackboxswok can table that for another SRU (which will be around Feb 14th likely)18:05
tribaalno worries, happy to help test the current one anyway18:06
blackboxswcommunity notice: we are targeting Feb 18th as our cutoff for upstream cloud-init version 20.1 (which will be SRU'd to Ubuntu Xenial, bionic and Eoan). If there are features  of bug fixes that you'd like to get into cloud-init 20.1 please raise them as PRs or discussion on the mailinglist or in channel18:06
blackboxsw#topic Office Hours (next ~30 mins)18:08
blackboxswThis time is spent on any cloud-init feature/bug/branch discussions. quetions or concerns and topics are welcome. In the absence of topics we'll groom the review queue.18:08
blackboxswI'm wrapping up some significant change suggestions the networking stuff for sysconfig on https://github.com/canonical/cloud-init/pull/16218:09
blackboxswI should have that review done in about an hour18:10
blackboxswI've added myself as the "assignee" to that PR to indicate it as priority for me18:10
blackboxswalso, note in SRU testing  I've run into a repeated issue with cloud-init's ssh-import-id  taking 1 minute to import a single ssh pubkey on Azure bionic advanced networking vms. (2 nics + ipv6 + multiple IPs).  I'll be debugging this a bit today to make sure it is not a regression for this cloud-init SRU 19.4.3318:11
blackboxswif anyone has any feedback or issues associated with this cloud-init v 19.4.33 SRU, they can comment on the SRU bug or raise a new bug or comment in IRC18:12
blackboxsw#link https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/185972518:12
ubot5Ubuntu bug 1859725 in cloud-init (Ubuntu) "sru cloud-init (19.3.41 to 19.4.33) Xenial, Bionic and Eoan" [Undecided,New]18:12
blackboxswok, that about wraps today's status meeting. We'll have the next one February 4th to chat again about getting features ready for 20.118:55
blackboxswThanks for tuning in.18:55
blackboxsw#endmeeting18:55
meetingologyMeeting ended Tue Jan 21 18:55:32 2020 UTC.18:55
meetingologyMinutes:        http://ubottu.com/meetingology/logs/cloud-init/2020/cloud-init.2020-01-21-17.42.moin.txt18:55
meenahow do i keep missing these meetings19:17
blackboxswmeena: it's ok, I nearly missed it too19:30
blackboxswhrm Azure advanced vm still seeing the same 1 min issue on ssh-import-id.19:30
blackboxswlooks like the Azure vm with ipv6 is timing out on ipv6, then eventually falls back to ipv4. connect(3, {sa_family=AF_INET6, sin6_port=htons(443), inet_pton(AF_INET6, "2001:67c:1560:8003::8003", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = -1 ETIMEDOUT (Connection timed out)19:35
blackboxswI need to check initial ip config there  vs the config post cloud-init upgrade rendered netplan is the same both prior to upgrade and afterward, yet prior to upgrade doesn't have the ipv6timeout19:48
blackboxswprobably a failure for me to create the right ipv6 config on the vm20:42
blackboxswOdd_Bloke: approved https://github.com/canonical/cloud-init/pull/178#pullrequestreview-346223273   though I think we need to track somewhere (maybe just a trello card on the SRU template board?  to remove python-six from depends in ubuntu(xenial|bionic|eoan) debian/control branches during next SRU.22:04
Odd_Blokeblackboxsw: We're still a ways away from actually being rid of six, so it would be premature at this point.22:09
Odd_BlokeBut I'll add a task to work that out before we can consider it Done.22:09
meenagrep -wc six22:21
meena> but we need to make sure we drop python-six as a package dependency from ubuntu/xenial|bionic|eoan debian/control files.22:28
meenaoy, i thought six was a builtin22:28
Odd_BlokeNope, but it is a single file drop-in, pretty much.22:32
Odd_Blokeblackboxsw: If you need a break, more six removal: https://github.com/canonical/cloud-init/pull/17922:53
blackboxswyeah, I'm basically in azure cli ipv6 setup issues for manual sru testing so it's a 15 min downtime while awaiting the deployment run to discover that I misconfigured ipv6 routing network security groups22:54

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