/srv/irclogs.ubuntu.com/2017/04/26/#cloud-init.txt

=== rangerpb is now known as rangerpbzzzz
=== cpaelzer_ is now known as cpaelzer
=== sambetts|afk is now known as sambetts
=== shardy is now known as shardy_lunch
feklehi! does anyone know a way to install a newer version than cloud-init 0.7.5 on CentOS 7 ? any repos/rpms?11:23
feklethis old version in centos7 unfortunately doesn't work with openstack and chef, as discussed here yesterday.11:24
feklei tried installing the fedora 25 package, however it doesn't install due to python abi differences (centos is 3.4, cloud init wants 3.5)11:25
=== shardy_lunch is now known as shardy
=== rangerpbzzzz is now known as rangerpb
powersjhttps://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/32324615:37
powersjEnables artful15:37
=== smatzek_ is now known as smatzek
=== sambetts is now known as sambetts|afk
rharperpowersj: I'm trying to build the centos7 rpm in lxd container with smoser's gist, and there looks to be some unittest failures for non-ubuntu; known issue? http://paste.ubuntu.com/24461774/17:41
powersjrharper: I saw those as well17:42
powersjhaven't put in a fix yet or looked into what to do17:42
rharperok, I can push a MR with fixes17:42
rharperit's just not mocking out distro properly17:42
smoserthat isnt specific to centos17:43
rharpernon debian will fail17:44
rharperif that's what you mean17:44
smoserit should not be looking at that path, ever. (/etc/cloud/)17:44
smoserhow would that pass on my desktop ?17:44
rharperI dunno, it works today, right ? nosetests ?17:44
rharperpretty strange17:45
rharperI don't have those files but trunk passes locally17:45
smoseryeah, you're right. its not mocking distro properly i think17:49
smoserthose tests *have* passed before in centos and even python 2.617:50
smosersee e8730078df8c99696b1b684e09c803eef7c4926c17:50
rharperhrm17:56
rharpersmoser: I think it's fallout from us not running apt unless there is config17:57
rharperyeah18:01
rharperwe pass an empty config 'apt: {}'  which then prevents the default apt templating from firing18:01
rharperif you pass a non-empty apt config, then it passes;  what I can't understand yet is why it passes on ubuntu but fails under centos18:02
rharpere80dbb80987ba44be2899e34fbbbf7d48389b6b518:03
rharperso, on ubuntu we have the apt command18:03
rharperbut on centos we dont18:03
smoserright18:05
rharpershall I send a PR or do you want to fix ?18:06
smoserif you have it, please do18:10
smoserrealisitcly we shoudl be mockking the which calls18:11
smoserrharper, http://paste.ubuntu.com/24461986/ <-- is another piece of it18:11
rharpersmoser: only a simple workaround (adding non-zero config to the dict passed to the apt_configure module)18:13
smoseractually, iguess ew dont need the importlib portions . those fell out from trying to run tox on the tests/vmtests/18:13
rharpervmtest?18:13
smoserer... integration tests18:13
smoserthe default 'tox -e centos6' ran on tests/18:14
rharpergotcha18:14
smoserwhich failed, and i saw it needed importlib18:14
smoserbut didnt' realize that was from the tests/cloudtests18:14
smoserrharper, i'll look18:21
smoseri think i have areasonable way18:21
rharpersmoser: ok18:23
* rharper built a centos7 rpm anyhow to test passthrough network18:23
blackboxswok smoser powersj rharper i have an cut at github travis integration for unit tests ++ a project README https://github.com/blackboxsw/cloud-init/pull/118:41
blackboxswhad to sort out hithub's default clone depth of 50 not being enough to "see" our latest official tag so tools/read-version wasn't working in the travis env.18:42
blackboxswyou'll notice the above PR has travis PR checks voting on the merge request. I am still working on jenkins integration which would also give us integration test votes on the project.18:45
powersjblackboxsw: this is awesome19:00
smoserrharper, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32326519:44
rharpersmoser: reading19:54
rharpersmoser: http://paste.ubuntu.com/24462666/  ;  where would we get python-oauthlib for centos 7 ?20:19
smoserits there on cent620:21
rharperI'm on 720:22
rharpermaybe bad mirror ?20:23
rharperI see it in my cent7 lxd container20:23
smoserrharper, i dont love that set of tests as it is20:27
smoserthe and i dont love one more level of indentation for every patch20:27
smoseractually, the docroartor on that fuction would have owrked i think.20:27
rharperI don't either20:27
smoseroh. but patch.object doesnt decorate20:28
rharperyou don't need to patch object20:28
smoseror does it20:28
smoseryour'e right, but thats what it does now20:28
rharperyou can even just patch it outright before calling the function via an add_patch()20:28
rharperor decorator20:28
smoseradd_patch () ?20:30
rharperone of the base unittest classes added an add_patch method20:35
rharperwhich does an auto start and stop on remove20:35
rharperhrm20:35
rharperguess not, we have that one in curtin20:35
rharperit's handy20:35
rharperhttp://paste.ubuntu.com/24462767/20:37
rharperlooks like the maas centos image doesn't have epel-release package installed by default20:37
rharperso that's why it didn't find python-oauthlib20:37
rharperrather annoying that the lxd image and the centos image in maas aren't the same despite being the same release (7.3.116  or something)20:38
rharpersmoser: harlowja: just updated https://bugs.launchpad.net/cloud-init/+bug/1603533/ ;  I built cent7 rpm , installed it but it complains at runtime;22:09
ubot5Ubuntu bug 1603533 in cloud-init "Can't build correctly using brpm on cent7" [Medium,Fix released]22:09
rharperthanks ubot522:09
=== rangerpb is now known as rangerpbzzzz
harlowjarharper kk, need to build that more often to expose those things23:55

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