/srv/irclogs.ubuntu.com/2017/12/06/#cloud-init.txt

=== Wulf4 is now known as Wulf
* powersj will fix integration test failures shortly15:13
Raboosmoser, dpb1 just wanted to update you on the debugging. I haven't had time to turn on debug for cloud-init on trusty yet. But I have learned a bit since, it only gets stuck when I have a root ext4 and a data xfs partition. cloud-init works when I got one big root partition for instance. And i've been able to replicate this on a virtual machine. So it's going to be easier to debug.15:29
smoserhum.15:47
smoseri suspect that it is not really cloud-init that is hanging, but a dependency (local-filesystems) or something that is not being met15:48
rharperRaboo: your image has a ext4 rootfs and an xfs partition ?  what's the partition layout?15:55
rharperI just saw this the other day w.r.t xfs filesystem being resized, https://www.spinics.net/lists/linux-xfs/msg13555.html15:56
Raboorharper well what I do is i partition the disk, and dd the cloud image into the ext4 partition, grow the image into the partition, mount it, fix networking, fstab, grub and some stuff. Then reboot and could-init bootstraps the node with chef and stuff16:06
Raboorharper something like this https://hastebin.com/otowajicox.bash16:09
rharperfancy! using hastebin16:09
Rabooyeah smoser sent me a hastebin link the other day, so i figured i'ed try it16:10
rharpernice16:10
Rabooit's yours?16:10
rharperno16:10
rharpersmoser had been using it since one can get raw output without "logging" in , like we have to the ubuntu one;16:11
rharpernow I just need pastebinit to have hastebin16:11
Rabooit appears to have console tools16:12
rharperRaboo: so, putting ext4 on the first partition should mean that resizefs on root will get ignored; as it isn;t the last one;   but maybe there is something going on that we missed w.r.t growpart/resizefs16:13
rharperRaboo: did you have a cloud-init.log from the failed boot/hang ?16:14
Raboorharper i will change this config to DEBUG on line 33 https://hastebin.com/odahevojix16:14
Rabooto see if I get more info, just not right now16:15
rharpersure16:15
Raboobut exact same partition layout works in xenial16:16
Rabooand now I know that it got to do with the parition layout.16:16
rharperwhere was the failing case if not xenial ?16:20
Raboojust after ssh keys generation it gets stuck16:22
rharperbut what distro release?16:23
Rabooubuntu trusty16:26
rharperok16:26
smoserrharper, blackboxsw https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/173186816:52
ubot5Launchpad bug 1731868 in cloud-init (Ubuntu) "vmware reported as 'EC2', 'None'" [Undecided,New]16:52
smoserthat one..16:52
smoserwith comment from sabdfl16:53
blackboxswyep let's get a fix for that16:53
blackboxsweek16:53
smoserwe have no way there to determine "this is vmware" really. :-(16:54
rharpernow, where to get a Vsphere setup ?16:54
* blackboxsw thinks I might have one.16:54
blackboxswwill dig16:55
rharperwell, vmware does similar things as kvm does to identify itself16:55
smoseryou can determine vmware, yes16:55
smoseryou can't determine easily that there is an ovf without a mount16:55
rharperright16:55
smoserfrom dsidentify16:55
smoser http://paste.ubuntu.com/26126298/16:55
rharperman, pylint on tests has lots of stuff; gonna be a big one =)16:57
rharperhttps://github.com/PyCQA/pylint/issues/149816:59
powersjsmoser: do you want me to enable pylint for all of tests or start with integration tests?17:16
smoserpowersj: all would be good.17:27
smoserdid you see what was in  my tree ?17:27
smoserhere17:27
smoserhttp://paste.ubuntu.com/26126566/17:28
powersjah no17:28
powersjsmoser: do we need tools/hacking.py?17:41
powersjstill using pep8 :\17:42
rharperpowersj: I'm working on smoser's pylint diff right now17:42
powersjrharper: oh are you going through fixing things?17:43
rharperyes17:43
powersjthen I shall stop17:43
powersjthx :D17:43
rharpernp17:43
rharpersmoser helpfully handed the patch to you as well =)17:43
dojordan@blackboxsw, sorry to bother but any update on my PR?18:15
blackboxswdojordan: I'll push comments here in a couple mins (was camping on them until I tested). Admitedly, I ratholed on another bug that came in.18:16
blackboxsw"rat-holed" even a word? anyway, will wrap up your review now18:16
dojordanhaha not sure if its a word but sounds good18:17
=== dhill_ is now known as dhill|food
blackboxswdojordan: couple comments added18:36
blackboxswback in a few18:36
blackboxswto wrap up the review18:36
dojordanthanks, ill get started on those18:42
rharperoi! pylint 1.7.1 doesn't like our add_patch, finally worked out how to ignore member checks with m_* which is how we designate  mock patch members19:11
smoser?19:16
smoserdoesnt like add_patch ?19:16
smoserhm..19:16
rharperyeah, says m_foo is non-member19:18
rharperbecause add_patch does a set_attr19:18
rharpersmoser: so pylint can't know that the string inside add_patch() is going to get set that way (not statically I guess)19:19
smoserrharper: https://github.com/PyCQA/pylint/issues/69719:23
rharperrelated, but not the same19:24
rharperhttps://github.com/PyCQA/pylint/issues/149819:24
rharperwe actually get the E110119:24
rharpertests/unittests/test_datasource/test_ovf.py:191: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member19:25
rharperbut it's reasonable to mark m_.* and mock_.* as generated-members; that's what our  CiTestCase.add_patch() does19:25
smoserhm..19:28
smoserrharper: well, the end result in thelink i provided is19:28
smoserClosing this. I think it is not worth investing effort into something relying heavily on patching things and magic, as mock is doing it. if anyone wants to spend some effort fixing this, you might have a look at how astroid brain modules are implemented (https://github.com/PyCQA/astroid/tree/master/astroid/brain)19:28
rharperI saw those modules too19:29
rharperI mean, seems reasonable to do what I did, the lint is catching stuff (real issues)19:29
smoserbasically, it is "dont run pylint on code with mock"19:29
rharperit's generally clean with mock19:30
smoser?19:30
rharperit's the dynamic set_attr for our patch that is gitting hit19:30
smoseri'm confused.19:30
rharperthe bulk of the errors, came out from our use of self.add_patch() in CiTestCase subclsses which specify a mock.patch dynamically in the setUp() method19:31
rharperadding m_.*, mock_.* to .pylintrc to tell pylint to recognize any m_* members as 'generated members of a class' means it won't error E1101 on all of those mock'ed methods19:32
rharperhttp://paste.ubuntu.com/26127428/19:32
smoserhttp://paste.ubuntu.com/26127442/19:34
smoserthat is my run.19:35
rharperwrite, grep no-member;19:36
rharperthose m_* go away if you update your .pylintrc19:36
rharperurg, python2.7 ConfigParser has readfp, that's deprecated in py3; which uses read_file (but that's not in py27)19:39
smoserugh19:41
smoserblackboxsw: fyi, don't use git merge --squash.19:41
smoserunless you know of an arg that says to keep the author19:41
blackboxswwhoa really?19:41
* blackboxsw checks logs of what I just landed19:42
smoseras i stole credit for powers' commit 4701679119:42
blackboxswahh smoser yeah I generally do a --squash then a commit --amend --author afterward before pushing (though I forgot 1 time)19:42
blackboxswd90318b21d0379e24337bcb92a0a90ebfa359c35 yeah here I stole robjo's commit ownership by accident :/19:43
blackboxswforgot the post-commit ammend that I usually do19:43
smoserneed a lander19:43
smoserstupid humans19:43
smoserincapable of simple tasks19:44
blackboxswyes. push button landing19:44
blackboxswor tarmac for git really.19:44
rharperanother pylint annoyance;  referencing class properties (which may trigger code) but with no assignment makes it unhappy, but if we d foo = class.prop; then flake says, you didn't do anything with foo19:50
blackboxswhrm can't get vsphere login working at the moment19:54
smoserweee!19:56
smoserblackboxsw, rharper hangout ? /wanted to catch up where we are.20:03
rharpery20:04
blackboxswsure20:04
rharpersmoser: here's where I'm at on the linting branch, http://paste.ubuntu.com/26127753/20:25
rharperthat passes just about everything; save some things in tools/20:25
rharperneeds a flake fiix up for one two locations for #pylint disable I did20:25
smoserhttp://paste.ubuntu.com/26128142/21:33
smoserblackboxsw: ^21:33
smoserand dpb121:33
smoseri have to walk out th edoor though. i'll be back in later and can polke it at it some more.21:33
blackboxswsmoser: will give it some runs on vkm21:36
rharpersmoser: https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/33486822:48
rharperthat's the pylint merge, all clear here22:48
smoseri'll try this in a bit. http://paste.ubuntu.com/26128501/22:50
smoserrharper: and will read your mp in a bit22:50
smoserdinner and such now22:51
smoserthanks rrh22:51
rharpernp22:54
blackboxswsmoser: your paste approach worked great on my local OVF kvm setup23:31
blackboxswI'm crazy. nevermind. tweaking the script a bit23:46
blackboxswstill got disabled from ds-identify. checking things out now23:47
blackboxswahh minor tweak needed23:52
blackboxswhttp://paste.ubuntu.com/26128864/23:56
blackboxswneeded to define DI_BLKID_OUTPUT23:56

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