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

=== paride8 is now known as paride
falcojrthe cloud-init SRU has hit proposed pockets13:32
Odd_Blokemwhudson has pointed out that subiquity uses the passwords in cloud-init-output.log, so it's possible we'll need to address that regression in this SRU.13:35
Odd_Bloke(I'm awaiting confirmation on the impact SRU'ing it would have: subiquity pulls things from a variety of sources, so I'm not exactly sure myself.)13:36
Odd_BlokeI've filed https://bugs.launchpad.net/cloud-init/+bug/1921124 for this issue, and I've started preparing a fix locally: if we don't need it for the SRU, we can land it later, but if we do need it for the SRU then it's top priority.14:40
ubot5Ubuntu bug 1921124 in cloud-init "Randomly-set credentials not available within the instance" [Undecided,In progress]14:40
Odd_Blokefalcojr: If you could take a look, I'd appreciate validation of my path choice logic; we'll probably need mwhudson to confirm that it will work for subiquity too.14:40
falcojrsince it's not world readable anymore, what about cloud-init-output.log ?15:03
* falcojr runs away and hides15:03
falcojrBut seriously...I think your arguments for /run make the most sense. I'm a little less worried about anywhere else given that the password is only good for first login15:06
falcojrbut I'm also wondering...could subiquity access the console log and use that?15:07
Odd_Blokefalcojr: That's worth investigating: my guess is no, as it's reading directly from the filesystem in the code in question, but there may be a way of implementing that functionality differently.15:14
chillysurferhey, Odd_Bloke !! any thoughts on when you think this pr should be able to get a review and merge? https://github.com/canonical/cloud-init/pull/78019:58
blackboxswsmoser: otubo is this reasonable/correct https://github.com/canonical/cloud-init/pull/721#discussion_r600871109   I think we need to block otubo's LVM resize on this right?21:53
mwhudsonOdd_Bloke: so, let me try to explain how i want ssh to work in the installer live session without talking about implementation23:05
mwhudsonif no config is supplied, there should be an installer user with a random password that is known to subiquity so that it can be shown to the user23:06
mwhudsonit should be reasonably straightforward to supply a pre-arranged password or ssh public key that the user can use to log in instead23:06
mwhudsonis it easy to read the cloud-init config to see if the default user was given a password, i wonder23:09
mwhudsonor easier to just grep /etc/shadow or whatever23:09
mwhudson    (users, groups) = ug_util.normalize_users_groups(cfg, cloud.distro)23:10
mwhudson    (default_user, _user_config) = ug_util.extract_default(users)23:10
mwhudsondoesn't seem too bad23:10
smoserblackboxsw: i think you're right.23:22

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