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

=== jmcgnh_ is now known as jmcgnh
=== jmcgnh is now known as jmcgnh_
=== jmcgnh_ is now known as jmcgnh
smoserotubo: https://github.com/canonical/cloud-init/pull/721 i dont want to lose that... i think we're down to just one WARN message for you to remove.13:29
otubosmoser, sorry, Scott. Had a PTO and was full of other stuff to finish this week. I'll try to update today.13:33
otubosmoser, thanks for the heads up.13:34
smoserotubo: great. hope youhad a nice vacation.13:34
otubosmoser, my tox is failing pylint with "tests/integration_tests/clouds.py:7: [E0611(no-name-in-module), ] No name 'Openstack' in module 'pycloudlib'" did anything changed lately?14:44
otubosmoser, other than that, everything looks ok. I'll push the changes now, also added some other fixes blackboxsw requested.14:44
Odd_Blokeotubo: Openstack support was introduced to pycloudlib relatively recently, so that likely indicates that you just have an older version of pycloudlib in your environment.14:52
otuboOdd_Bloke, makes sense, given that I'm running tox on RHEL-8.3, that should be indeed the case :-)14:56
Odd_Bloketox installs pycloudlib, so a `tox --recreate -e pylint` will likely make it go away.15:14
=== johnsonshi_ is now known as johnsonshi
hamalqhi i have a question : why ubuntu , opensuse , debian prefer short hostname while rhel prefer hostname as fqdn as https://github.com/canonical/cloud-init/blob/f35181fa970453ba6c7c14575b12185533391b97/cloudinit/distros/__init__.py#L259, https://github.com/canonical/cloud-init/blob/f35181fa970453ba6c7c14575b12185533391b97/cloudinit/distros/rhel.py#L9418:13
hamalqbecause of that the hostname in rhel will hit the 64 hostname limit which will fail cloud init18:14
Odd_Blokehamalq: So the comment on that part points to a now-dead URL, but you can find it in the Wayback Machine: http://web.archive.org/web/20171223014319/https://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-sysconfig.html18:21
Odd_BlokeIf you look at 27.1.22 on that page, it says "HOSTNAME=<value>, where <value> should be the Fully Qualified Domain Name (FQDN), such as hostname.expample.com, but can be whatever hostname is necessary."18:21
hamalqbut i tried setting hostname hamalq on a rhel machine and it works18:39
hamalqOdd_Bloke: ^^ so i think this should work just fine, clould init use hostname, hostnamectl to set hostname on rhel machine and both are ok with short hostnames18:45
hamalqand the /etc/resolv.conf will have the search option with domain by default ( by cloud init)18:49
hamalqso if the hostname is hostname1.expample.com the hostname will be hostname1 and in resolve conf the search will be expample.com18:50
Odd_Blokehamalq: Right, that would be "*can* be whatever hostname is necessary": it's still true that it "*should* be" the FQDN, so that's reasonable default behaviour.18:57
hamalqyes but that cause problems with hostname max limit 64 thats the problems i face and opensuse , debian, ubuntu already moved to short hostname bcz of the same issue with hostname max19:00
hamalqso changing the default will not cause problems and will solve an issue that may cause cloud init set hostname failure19:03
hamalqand it will align rhel with ubuntu , debian, opensuse behavior19:04
Odd_Blokehamalq: I don't think anyone can categorically say that changing the default behaviour of code that runs on every cloud instance boot after 8 years will not cause problems.19:19
Odd_BlokeWe provide configuration options for people who don't want the default behaviour (https://cloudinit.readthedocs.io/en/latest/topics/modules.html#set-hostname): are you seeing issues when using those?19:21
hamalqi can change and the tests can run :) , and i will check that option19:22

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