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

blackboxswThanks falcojr for putting up the PRs for cloud-init SRU in Ubuntu. reviewing them now.16:51
blackboxswfalcojr: I think we forgot to add Upcloud to those PRs in debian/cloud-init.templates*pot  and looks like we probably need to add that to ubuntu/devel too and perform a minor upload into hirsute for that change too17:10
blackboxswhttps://github.com/canonical/cloud-init/pull/851#pullrequestreview-61777789117:11
falcojrooooooh, yeah, inside the card I saw RbxCloud and thought we were doing that instead of UpCloud17:12
blackboxswsorry falcojr , my bad on the trello card creation17:14
blackboxswso I think if we are going to SRU that change, we also need another hisute upload which enables UpCloud  too.17:14
falcojryeah17:14
blackboxswif you want to gen that ubuntu/devel branch I'll review it a dput17:14
falcojrI'll make the changes17:14
blackboxsw*and dput. thanks17:15
falcojrblackboxsw: hirsute: https://github.com/canonical/cloud-init/pull/85517:20
blackboxswthanks reviewing now17:21
blackboxswfalcojr: I think we probably need a new cloud-init bug for the enabling of UpCloud since we are going to SRU this functionality kindof simpler than https://bugs.launchpad.net/bugs/176277317:24
ubot5Ubuntu bug 1762773 in cloud-init (Ubuntu) "IBM Cloud datasource not enabled by default." [High,Fix released]17:24
falcojrblackboxsw: I'm not sure I follow. Why does this require a separate bug?17:27
blackboxswfalcojr: only that any functional changes that we SRU need a bug because they are not specifically involved in our SRU exception process I thought. Since this is a debian packaging specific change related to only the given distro and not upstream commits17:31
blackboxsws/distro/specific Ubuntu release/17:32
falcojrcan I simply reference https://github.com/canonical/cloud-init/pull/743 ? We have a lot of functional changes these days that don't have specific bug numbers. Or are you saying that because it's debian packaging specific change that it needs a bug?17:35
blackboxswfalcojr: I'm trying to look at prior art, maybe we don't actually need a process bug for all debian/template changes. I may be making that up17:35
blackboxswfalcojr: you are right. no bug needed17:37
blackboxswthe IBM one was a one-off where a bug was filed because we forgot to enable it17:37
blackboxswnot because it was required17:38
falcojrsounds good...I've pushed to the rest of the branches the UpCloud change too17:38
blackboxswfalcojr: your hirsute visual diff looks strange. did you do a `dch -i` and a new line for debian/cloud-init.templates: enable UpCloud by default ?17:42
blackboxswI've force pushed my ubuntu/devel to https://github.com/blackboxsw/cloud-init/tree/ubuntu/devel17:44
blackboxswas a comparison point17:44
blackboxswfalcojr: I think we need a new changelog entry in ubuntu/devel and we need to now also run debconf-updatepo on a few of those PRs to update debian/po/templates.pot17:52
falcojrblackboxsw: sorry, taking a lunch break now17:54
blackboxswsame. good idea17:57
falcojrblackboxsw: I'm assuming I need to make the po changes across all the releases?19:17
blackboxswfalcojr: I don't think paride backported that functionality to xenial, bionic or focal19:21
blackboxswjust groovy and hirsute19:22
blackboxswI think he stopped on the earlier series to avoid churn19:22
blackboxswyeah I see no debian/cloud-init.po files on X B F19:22
blackboxswyeah I see no debian/cloud-init.pot files on X B F19:22
falcojrah, gotcha19:23
falcojrwait, I see it on focal19:24
blackboxswsorry I mean debian/po/templates.pot19:24
falcojrwell...at least debain/po directory19:24
blackboxswright I just saw that to19:24
blackboxswso no on xenial and bionic19:24
blackboxswbut yes on focal groovy19:24
blackboxswbut yes on focal groovy hirsute19:25
falcojrand actually xenial has them too :D19:25
falcojrI wonder if bionic was missed by accident19:25
hamalq#cloud-config19:28
hamalq---19:28
hamalqhostname: hamza19:28
hamalqfqdn: hamaza.ows.oath.cloud.19:28
hamalqpreserve_hostname: true19:28
hamalqhi am using the configuration above in creating an insttance but the hostname always become localhost19:28
hamalqam i missing something19:28
hamalq?19:29
falcojrhamalq: I think you want preserve_hostname: false19:30
hamalq` preserve_hostname is set, then the hostname will not be altered.`19:31
hamalqi want the hostname to be short hostname19:32
hamalqmmm sorrrry i get it now19:38
falcojryeah, preserve_hostname really just means "don't touch anything"19:39
hamalqam trying to make a rhel machine take the short hostname19:42
hamalqwhich does not work at all19:42
blackboxswhamalq: this works for me on ubuntu using `lxc launch ubuntu-daily:xenial tmp-x -c user.user-data="$(cat 1.yaml)"`     https://paste.ubuntu.com/p/Y9yX8qJgXF/19:43
blackboxswif that content from the pastebin is in a file called 1.yaml19:43
blackboxswfalcojr:bionic is weird.19:45
blackboxswit was in there in 201619:46
blackboxswfrom comittish 7b0efb97c3667d4d1335e384433877a13e06538019:46
blackboxswfalcojr: I think we want something like this commit in bionic 1d88413b4e22408c0db24eed09c7a8daa84d0cb4 but checking it out now19:47
hamalqi just tried that no luck rhel always take FQDN19:47
blackboxswhamalq: this reminds me of a bug/discussion, let's see if I can find that19:48
blackboxswhamalq: https://bugs.launchpad.net/cloud-init/+bug/172441419:49
ubot5Ubuntu bug 1724414 in cloud-init "rhel distro selects FQDN as hostname" [Low,Triaged]19:49
blackboxswhamalq: if someone wanted to submit a change to that default behavior it'd be here https://github.com/canonical/cloud-init/blob/master/cloudinit/distros/rhel.py#L94-L9919:51
hamalqblackboxsw: i can do the change19:51
blackboxswwe'd have to push that up for review and get redhat and or centOS folks in on the review as that might be a "breaking" change for some people who rely on fqdn being chosen, but that's where to start I think19:52
hamalqso i have to do the change then wait for review19:53
blackboxsw+1 all contributions welcome https://cloudinit.readthedocs.io/en/latest/topics/hacking.html19:53
falcojrhamalq: I don't think we could accept the change at this point19:54
blackboxswyeah you push up a PR, someone on upstream will review it, it'll land in tip.... then eventually make it into the given distros. It looks like from logic that if you don't provide fqdn that RedHat would use hostname19:54
falcojrwe had a PR a few months ago to do exactly this, but we rejected it due to the regression potential19:54
blackboxswahh falcojr right, but did we discuss if that behavior could be behing another config flag? I can't really remember19:54
blackboxswor did folks discuss that we just tell cloud-init community to not provide fqdn if they want to use hostname?19:55
blackboxswor provide a runcmd: [hostnamectl set-hostname <myhost>]19:56
falcojrI'm not sure...there were multiple conversations IIRC19:56
blackboxswyeah I'm thinking we should revisit the bug https://bugs.launchpad.net/cloud-init/+bug/1724414 tomorrow to get an update on it. Because if we aren't going to fix it, we should close this bug I think as wontfix19:57
ubot5Ubuntu bug 1724414 in cloud-init "rhel distro selects FQDN as hostname" [Low,Triaged]19:57
falcojr+1, I'll add it to discuss19:58
blackboxswin the meantime, wouldn't rhel-users be able to supply hostname: <something>   and no fqdn: and rhel should prefer hostname only19:58
blackboxswat least I *think* so via https://github.com/canonical/cloud-init/blob/master/cloudinit/distros/rhel.py#L94-L9919:58
hamalqan option can be added to enable the short hostname behaviour19:59
blackboxswhamalq: what would be your desired behavior in this case? if fqdn is supplied and hostname, are you expecting aliases for fqdn, but the ability to `ping/ssh hamza` etc?20:01
falcojralso, as more context: https://bugs.launchpad.net/cloud-init/+bug/107675920:01
ubot5Ubuntu bug 1076759 in cloud-init "sysconfig fqdn network" [Undecided,Fix released]20:01
falcojris the original reason rhel defaults to fqdn20:01
hamalqAccording to RFC 1035, the FQDN could up to 255 bytes. Setting hostname to FQDN will fail if FQDN > 64 byets.20:02
falcojrhttps://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/ch-sysconfig is the updated dead link there. The hostname goes into /etc/sysconfig/network and needs to be fqdn......or at least used to20:02
blackboxswfalcojr: approved ubuntu/devel. I'm running sbuilt and will push in ~5 mins20:05
hamalqyes that true , but it says it could be any string20:05
hamalqblackboxsw: if the hostname is provided the hostname should be taken20:09
hamalqand the fqdn can be used for https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/ch-sysconfig20:10
blackboxswhamalq: ok I think we'll look at this again tomorrow when Odd_Bloke also returns as he had some opinions on this too. We have a community office hours meeting tomorrow 17:15 UTC if you happen to be available20:12
blackboxswwe just chat in this IRC channel (in case you hadn't seen it before)20:13
blackboxswfalcojr: not sure what we want to do about ubuntu/bionic lack of translation files for cloud-init.templates at the moment.20:28
blackboxswit's not critical, but it is a gap in behavior across Ubuntu releases20:28
blackboxswwe can take it as a bug or a trello card for next SRU.20:29
blackboxswit's been this way a while20:29
falcojrI can add a card to discuss it20:30
blackboxswyeah sounds good. I think we can get through groovy and focal. but need to leave xenial and bionic incomplete.20:30
blackboxswbecause we can't run debconf-updatepo anyway on xenial as it is20:31
blackboxswor I can't at least.20:31
blackboxsw /usr/bin/xgettext: error while opening "../grub.templates.h" for reading: No such file or directory20:31
blackboxswfalcojr: I think we have a typo in Upcloud vs UpCloud in templates https://github.com/canonical/cloud-init/pull/852/files20:41
blackboxswon focal20:41
falcojrgood catch, thanks20:45
falcojrblackboxsw: for approved ones, should I merge before or after upload (or does it matter)?20:48
blackboxswfalcojr:  since I've built and dput the hirsute version cloud-init it might be easier for me to build-and-push since it'll reference the upstream orig.tar.gz in ../out on my local system. otherwise you have to download the orig.tar.gz into ../out  and then you can run build-and-push.20:52
blackboxswhirsute is already uploade .20:52
blackboxswhirsute is already uploaded.20:52
blackboxswand I'm mid sbuilt-id on focal.20:52
blackboxswI was going to just push both groovy and focal and we can sort what we want to do w/ bionic/xenial tomorrow20:53
blackboxswif that's okay (at least I'll get those sponsorship points to trade in for a candy cane at the end of the year)20:54
blackboxswand generally, if you are using uss-tableflip/scripts/build-and-push it'll do the upload, then the merge afterwards I think20:55
blackboxswand actually, the more I think about it. we can still queue the uploads on xenial nad bionic without the translation stuff as we won't actually burn any versions if we decide we want to add/fix  pot files on xenial and bionic for this release20:56
falcojr+1 on queuing the uploads today20:58
blackboxswok queuing groovy now21:13
blackboxswfalcojr: since you and Odd_Bloke get in waay before me. I'll queue the uploads after final review here for X, B, F and G. if alls good then you can hit up SRU folks in #ubuntu-release tomorrow early if you and Dan are of the same mind on skipping translation stuff for X and B21:16
blackboxswsince I think it already doesn't exist (well) in either series21:17
blackboxswfalcojr: you need a debconf-updatepo againt on your ubuntu/focal branch21:18
falcojrhttps://github.com/canonical/cloud-init/pull/852/commits/fc89817101d09cd8b557a3363a531e8776cc490321:19
falcojrblackboxsw: it's in that commit21:19
falcojr(and same for the other releases)21:21
blackboxswfalcojr: in that commit I see +msgid "Upcloud: Upcloud"21:22
blackboxswshouldn't it be UpCloud: UpCloud21:22
blackboxswcamelCase?21:22
falcojr!@#$%21:22
blackboxswqbert strikes again21:22
falcojrI gotcha now21:22
blackboxswI think all the other releases were good on the camelCase front21:23
falcojrpushed21:24
blackboxswbionic uploaded21:25
blackboxswworking on focal now21:26
blackboxswfocal uploaded21:36
blackboxswok xenial/bionic uplaoded too23:24
blackboxswuploaded even23:25

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