/srv/irclogs.ubuntu.com/2021/04/14/#cloud-init.txt

hamalqfalcojr: we are trying to keep the default removing select_hostname from rhel will cause issues with default behaviour00:26
falcojrI wasn't suggesting changing default behavior00:27
falcojrI'll write up a diff00:28
hamalqthe idea if we remove the select_hostname from rhel ( which prefer fqdn ) it will be back to distro select_hostname ( which prefer hostname)00:33
hamalqand freedbsd the same which will cause the behavior change00:34
hamalqfalcojr: ^^00:34
falcojrhamalq: commented on the PR00:40
hamalqhow is that change different than what i already changed00:44
hamalq```if util.get_cfg_option_bool(self._cfg, "prefer_fqdn_over_hostname",` will not have the CFG since it send to cloud.Cloud right00:45
hamalqfalcojr: done tthe change u requested although the main ticket was suggesting rmoving the select_hostname from rhel.py and was refused00:59
falcojrThat's because it changed the functionality to do something different. This doesn't do that in absence of the config option, does it?01:05
falcojrIf it does, then ignore my suggestion 😁01:06
hamalqok i will trust on u on that01:07
hamalqanyway the change is there01:07
=== cpaelzer_ is now known as cpaelzer
=== hjensas|afk is now known as hjensas
mbarrosohello all; is it possible to specify multiple data sources ? we have a use case for kubevirt where we are injecting ssh-keys over ConfigDrive metadata but would like to use NoCloud networkData (the format is a lot nicer imo).10:09
smosermbarroso: it is not possible.13:26
smosermy first thought was that cloud-init 'net-convert' could convert from network-config-v1 or v2 (netplan) to openstack.13:29
smoser(which woudl allow you to just have it do the conversion for you)13:29
smoserbut net-convert does only outputs eni,netplan,sysconfig.  its not full A<->B.13:30
mbarrososmoser: thanks :) but other than the conversion, would it be possible for cloud-init on bootup to pick up data from 2 different data sources ? e.g. get the userdata (or metadata) from one of them, and the networkdata from another ?13:44
mbarrosorharper: sorry to ping you personally, but do you happen to know if it is possible for cloud-init to pick up data from 2 different data sources on vm bootup? e.g. get the userdata (or metadata) from one of them, and the networkdata from another ?16:18
blackboxswmbarroso: it's not really in the general architecture of cloud-init, some datasources have grown the ability to "see/collect" metadata from two different potential sources (like flat files in a /var/lib/cloud/seed directory) but generally the metadata is taken exclusively from one discovered "source" .16:28
blackboxswSo trying to merge 2 separate datasource metadata and prioritize which metadata overrides other data is probably a fairly complex feature to design in cloud-init proper.16:29
blackboxswright now most datasources hard-code where they grab user-data, network-data and vendor-data. There isn't a configuration primitive defined that allows us to override where to grab the data "outside" of the discovered datasource logic which is unique to each datasource16:30
mbarrosoblackboxsw: thanks for your reply. Guess we'll have to port the network config to the openstack format when we use that ssh injection feature. thanks again for the reply.16:42
hamalqblackboxsw: falcojr and me fixed the integration test problem can i get +1 https://github.com/canonical/cloud-init/pull/85917:20
blackboxswhamalq: great thanks for working on this. let17:24
blackboxswlet's see if we have any loose ends here.17:24
hamalqsure thanks17:24
rharperblackboxsw: for approved PRs, do you just click the squash and merge button these days? I19:31
rharperlooking at https://github.com/canonical/cloud-init/pull/86619:31
rharperjust doc change, but wanted to check before I "push the button"19:31
blackboxswrharper: I realize we hadn't doc'd that process. For I merge we manually click the squash and merge button and manually cut-n-paste the desired comment msg into the PR ensuring it's got the right line width and no leading spaces etc.19:32
blackboxswultimately we should instrument logic to do this for us as it's error-prone19:33
blackboxswcurrently no github actions that handle a custom label etc.19:33
rharperyeah ... I miss just "push the button" / autoland ;     and the Co-authored line? keep or remove ?19:33
blackboxswrharper: I drop the Co-authored line in almost all cases if it was inconsequential (mostly github adds it for anyone you clicked the "update branch" button)19:34
rharperok19:34
rharperand you leave the (#XXX) in the subject ?19:34
rharperdoc: Replace remaining references to user-scripts as a config module (#866)19:35
blackboxswyep19:35
rharperok19:35
rharpercool, thanks for the step-by-step19:35

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