/srv/irclogs.ubuntu.com/2017/09/14/#cloud-init.txt

smosercliffw, that's on our roadmap to accomplish01:10
smoserthe goal would be that you'd not have to do anything and it'd all just come up like magic.01:11
powersjsmoser: thanks for merge!01:35
powersjkvm is looking better, I'll go over it one more time tomorrow and do some more testing: https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/32764601:35
blackboxswsmoser: rharper, for tomorrow morning, I've queued up all changes in https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330384. just looking for an official approve before I push/merge.03:57
powersjtot doesn't build...16:39
powersjblackboxsw: something is up with https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/33071216:42
powersjtox passes fine16:42
powersjbut when I try building now I get: https://paste.ubuntu.com/25534973/16:43
blackboxswbiulding deb or rpm?16:43
blackboxswdeb16:44
blackboxswchecking16:44
powersjdeb16:44
powersjwhat I don't understand is why our CI didn't find these16:48
blackboxswagreed, same here16:48
powersjare you able to reproduce locally?16:49
blackboxswpowersj: nope. not with make deb16:51
blackboxswlemme try a direct call to packages/bddeb16:51
powersjI use ./packages/bddeb16:52
powersjwell make deb failed for me as well :\16:52
blackboxswhrm. lemme look at that stack trace again16:53
blackboxswI'm thinking stale pyc files maybe, not sure16:53
blackboxswI have a fresh checkout though. hmm16:53
powersjtwo unmocked errors16:53
powersjsame...16:54
blackboxswwhat's your version of httppretty16:54
blackboxswI'll check mine16:54
powersj git rev-parse HEAD16:54
powersjf761f2b5f58c8cf13cfee63619f32046216cf66a16:54
powersj?16:54
blackboxswaccd83c97fa3b3b928af2a7955febad410471fc2 for me16:54
blackboxswhold up... lemme check master16:55
powersjaccd isn't master16:55
blackboxswI think I was in the chef branch specificall16:55
blackboxswyeah16:55
blackboxswsorry was on a branch. checking now16:56
blackboxswhmm make deb  and ./packages/bddeb works for me there too16:57
blackboxswcsmith@uptown:~/src/cloud-init (master)$ git rev-parse HEAD16:57
blackboxswf761f2b5f58c8cf13cfee63619f32046216cf66a16:57
powersjhmm16:58
blackboxswRemoving python3-httpretty (0.8.6-2)    # I'm dropping my xenial system packages to see if something changes16:58
blackboxswohh wait unmet build dependency if I don't have that system package17:00
blackboxswpowersj: dpkg-query --show python3-httpretty17:01
blackboxswpython3-httpretty0.8.6-217:01
blackboxswI'm wondering if we are hitting an incompatibility in our build envs17:01
powersjdpkg-query --show python3-httpretty17:01
powersjpython3-httpretty0.8.14-117:01
blackboxswI'm on xenial here, checking zesty17:01
blackboxswhmm zesty fails for a different reason17:14
blackboxswhttp://pastebin.ubuntu.com/25535133/17:14
powersjxenial lxc fails with resizefs test issues17:14
powersjyeah that ^17:15
powersjI run artful, so was trying xenial in a lxc17:15
blackboxswok I'll work master for those two branches on zesty and artful and see what we can sort17:15
blackboxswI think we are dealing w/ either differences in nose or differences in httpretty17:16
blackboxswfor the system packages17:16
=== smatzek is now known as smatzek_
=== smatzek_ is now known as smatzek
smoserblackboxsw, you have a handle on that reesizefs test issues ?17:26
smoser(sorry for pulling that :-(17:26
blackboxswsmoser I'm looking at that specifically right now from within an lxc.17:26
blackboxswit's good, it passed CI too17:26
blackboxswbut a system package in the lxc on zesty++ is probably behaving differently. I can reproduce w/ osetests3 /root/cloud-init/tests/unittests/test_handler/test_handler_resizefs.py cloudinit/config/cc_resizefs.py on a fresh zesty container17:27
powersjsmoser: KVM branch ready for another review https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/32764617:32
powersjtests completed in description and updated commit msg17:33
blackboxswwhoa smoser powersj  am I crazy?17:47
blackboxsw.. don't answer that yet:    http://pastebin.ubuntu.com/25535264/17:47
dustymabehey smoser: https://code.launchpad.net/~dustymabe/cloud-init/+git/cloud-init/+merge/330701/comments/86623817:47
blackboxswos.access in a zesty container is returning True for W_OK on a read-only file17:47
blackboxswI need my eyes/work checked on that pastebin17:48
naccblackboxsw: i've seen odd behaviors with containers, what's the backing store?17:48
powersjdustymabe: thanks for following up! Now smoser can get that one in17:49
blackboxswnacc: ext417:49
naccblackboxsw: sorry, i meant the lxd storage pool17:49
naccoh it's on the ext4 disk?17:49
dustymabepowersj: np17:49
dustymabe:)17:49
dustymabebtw do you guys have any idea when the next release of cloud-init will be?17:49
powersjNext week :)17:50
blackboxswdustymabe: we are trying to cut branches to get them in by tomorrow for 0.7.10. yeah as powers says ;)17:50
blackboxswneed a week of testing/validation17:50
dustymabesweet17:50
blackboxswand fixing the bugs I introduced :/17:50
dustymabe:)17:50
powersjhttps://lists.launchpad.net/cloud-init/msg00100.html17:52
powersjThere is the mailing list announcement17:52
blackboxswnacc: I'm sorry I'm dense on the lxc front. lxc info shows storage type dir for me17:53
blackboxsw  storage: dir17:53
blackboxsw  storageversion: ""17:53
smoserdustymabe, powersj thanks. i'll pull.17:53
blackboxswnacc: but I don't think that's what you are asking. I'm trying to recall if I provided any unique storage pool setup on this install17:54
naccblackboxsw: ok17:54
smoserdustymabe, and thanks again.  you did a really good job with that.  6 character change... but loads of good sluething and doc. thanks!17:54
naccblackboxsw: and on a xenial container, does the read/write work?17:55
naccblackboxsw: ah i wonder if the uid mappings mess with it too?17:55
naccblackboxsw: i guess it shouldn't, from within the container17:56
smoserdustymabe, you would consider that this "fixes" https://bugzilla.redhat.com/show_bug.cgi?id=149050517:56
ubot5bugzilla.redhat.com bug 1490505 in cloud-init "cloud-init fails when calling `xfs_growfs /dev/mapper/atomicos-root` on Fedora Atomic Host" [Unspecified,New]17:56
smoserright ?17:56
smoseri'm going to c hange the commit message to include17:57
smoserrhbz: https://bugzilla.redhat.com/show_bug.cgi?id=149050517:57
smoseras larsks had done in a commit of his17:57
blackboxsw+1 smoser good to know on that. I was wondering whether we duplicate bugzilla bugs  in LP or how that works17:59
dpb1blackboxsw: you can add a bugwatch in launchpad if you ever need to18:00
dustymabesmoser: thanks!18:00
dustymabesmoser: yes once we pull the patches in and rebuild i'll confirm18:01
dustymabebut I tested it out in a locally built version and it worked fine18:01
smoserdustymabe, right. i was just clarifying that you consider it to *fix* the bug rather than just be related to the bug.18:03
smoserthanks. its 'tox'ing here and pushing18:03
dustymabe+118:04
smoserblackboxsw, i dont really have a strong feeling on what to do18:04
smoseri just knew that larsks had committed some things with a reference, and wanted to keep that going in case he was using anything to read such messages.18:05
powersjsmoser: "default to /srv/citest/kvm-nocloud or something." what about "/srv/images"?18:06
powersjbecause that's what I already updated it to ;)18:08
smoserpowersj, well, then what happens when you run on the same system as curtin ?18:11
powersjwell I am pushing to /srv/images/server18:12
blackboxswok so powersj smoser the 'make deb' 'packages/bddeb'  error I ran into with resizefs was because I was running as root.18:13
powersjthat used to work though18:14
blackboxswso our os.access(<path>, W_OK) always returns True regardless of file perms18:14
powersjah18:14
blackboxswI'll tweak the test to mock os.access return val18:14
blackboxswso we don't care if root runs it versus unpriv user18:14
* blackboxsw will also fix the OMNIBUS/chef bug if I can in this branch18:15
powersjsmoser: ok so I'll go with mirror_dir: '/srv/citest/kvm-nocloud'18:15
blackboxswtest bug18:15
powersjsmoser: as far as renaming the class you suggested class KVMNoCloudInstance right? 1) do this to the images, platform, and snapshot files as well? 2) do I need to rename the files as well?18:17
smoserblackboxsw, so why did it used to work ?18:17
smoserpowersj, i think for now rename them all.18:18
smoserone could argue that the images that you have could be generic for all kvm18:19
smoserbut then one could argue that they were generic for even more than kvm.18:19
powersjright18:19
powersjfile name stay kvm.py?18:19
smoseri say we rename to KVMNoCloud<Stuff> and then at a later date we can genericize them to just kvm.18:19
smoserwhat do you think about the file ?18:20
smoseri think at some point we're going to say "this should get renamed"18:20
powersjpart of me says be verbose now, and make filename as well kvmnocloud18:21
smoseri think that makes sense.18:24
powersjok I'll update the image dir, filenames and class names and resubmit18:24
powersjsmoser: one more, on the CLI when we invoke which backend, should it also be kvmnocloud or remain kvm?18:25
smoserbikesheds are fun18:27
smoserso, now i'm thinking... sorry.18:27
powersjlol18:27
smoserNoCloudKVM18:27
smoseras i think it makes sense to have the platform first18:27
smoseras the backend is somewhat arbitrary18:27
* powersj will do pretty much whatever smoser says at this point 18:27
powersjdo whatever*18:28
smoserie, we could potentially have an AWSInstanceStore18:28
smoserand AWSEbs18:28
powersjsmoser: ok and the platform name for the cli? nocloudkvm as well?18:29
powersjor just kvm18:30
powersjI'm thinking nocloudkvm18:30
smoseri think 'nocloud' there18:30
smoseryeah18:30
smoseror nocloud-kvm18:30
powersjnocloud-kvm it is (I like the best)18:30
powersjsmoser: creating a dir in /srv requires root?18:41
powersjI guess my past runs have worked using /srv/images since it was already there and setup.18:48
powersjbut if someone runs this the first time it will fail18:48
smoserpowersj yeah.18:54
smoserwe can make it ~/citest18:54
smoserdefault to that.18:54
smosercurtin defaulted to the /srv path18:54
naccyeah i did somethingn similar on my home machinne18:54
smoseras we'd like them generally shared18:55
naccfor the purpose of testing as my user18:55
smoserbut make it configurable18:55
smoser(environment is "configurable" enough for me)18:55
smoserthat is what curtin uses18:55
powersjsmoser: it is configurable in the yaml file, do you want more than that?18:55
smoserah. thats fine enough.18:55
powersjok18:55
smoserbut /tmp not ok.18:55
powersjpushed renames and that fix to https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/32764618:55
smoserpowersj, ok. i'm reviwing 'collect-logs' from blackboxsw now. then to you18:56
powersjok thanks18:56
blackboxswpowersj: man, I'm on an artful container ./packages/bddeb still succeeds for me18:57
blackboxswno chef unit test failures18:58
blackboxswI had run 'make ci-ubuntu-deps' first though18:58
blackboxswhttps://www.irccloud.com/pastebin/1tJ4ifK7/18:59
powersjblackboxsw: trying a artufl container now19:02
powersjblackboxsw: agreed, so something on my local system is causing it19:06
smoserhow's it fail on your system ?19:06
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330774 here's the fix for leaking os.access as root user19:06
powersjsmoser: https://paste.ubuntu.com/25535666/19:07
powersjUsing python3-httpretty 0.8.14-119:08
blackboxswhrm19:08
smoserblackboxsw, question at https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/33077419:11
blackboxsweww. right-o19:12
blackboxswsmoser: I think you are right. we'd always see it as writeable in cloud-init19:12
blackboxswso, I need to fix that logic19:14
blackboxswfix or drop... hmm /me attempts to specify resize user-data to lxc to watch it break19:19
smoserblackboxsw, well, it will say it can't tehre19:20
smoserin a container19:20
smoserhm..19:21
smoserwell, it doesnt seem to do that well (looking at /var/log/cloud-init from a container)19:21
blackboxswsmoser: I'm not seeing the check that would trigger that rejection19:21
smoser?19:21
blackboxsw    if not os.access(devpath, os.W_OK):   # will never be true right?19:21
blackboxswbecause we are root19:22
blackboxswDevice '/dev/mapper/ubuntu--vg-root' did not exist in container. cannot resize: dev=/dev/mapper/ubuntu--vg-root mnt_point=/ path=/19:23
blackboxswahh19:23
smoserhttp://paste.ubuntu.com/25535747/19:23
smoseryeah. ends up getting there somewhere.19:23
blackboxswso we don't get down that far19:23
blackboxswwe bail in the ENOENT handling19:24
blackboxswok so that said, container logic below line 197 is probably unused paths right?19:24
blackboxswonly thing non-container  read-only devpath, which likely can't be triggered as root user19:25
smoserwell, it'd mostly be bogus path.19:25
smoserblackboxsw, in an iscsi root19:39
smoserwith overlayroot19:39
smoser(like maas)19:39
smoserwe see19:39
smoser2017-09-14 19:33:42,855 - cc_resizefs.py[WARNING]: Device 'overlayroot' did not exist. cannot resize: dev=overlayroot mnt_point=/ path=/19:39
smoserhttp://paste.ubuntu.com/25535835/19:39
smoseroh. hmm.. but that is 'overlayroot' that it finds as its dev.19:40
smoseroh. hmm.. but that is 'overlayroot' that it finds as its dev.19:41
blackboxswstrange, I'm not quite sure what we should do here https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330774/comments/86625819:46
smoserblackboxsw, ok. i verified that the check for writable is pointless19:53
smoseras root at least19:53
smoserin an overlay root on read-only iscsi19:53
smoseri just hacked and changed devpath to be /dev/disk/by-label/cloudimg-rootfs19:54
blackboxswin that case what was the dev path perm?19:55
blackboxsw400?19:56
blackboxsws/perm/mode19:56
smoserhttp://paste.ubuntu.com/25535925/19:57
smoserso yeah, that check is pointless19:57
smoserin the overlayroot path, it norlaly gets 'overlayroot' as its root device19:57
smoserfrom /proc/1/mounts19:57
smoserand that doesnt exist19:58
smoserso it warns19:58
smoserhack that so it used /dev/sda1 (the actual device on the filesystem)19:58
smoserand it sees its a overlayroot filesystem type19:58
smoserwhich it doesnt know how to resize19:58
smoserhack *that* so it gets ext419:58
smoserand in this particular case, resize2fs realizes there wasnt a resize to be done :)19:58
smoserso it just exited19:59
blackboxswgotcha ok, so we can drop the os.access check then right?19:59
blackboxswthat whole conditional20:00
blackboxswpushed the update dropping that check20:05
blackboxsw--force pushed20:06
blackboxswsmoser: is that description valid? https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/33077420:09
smoserblackboxsw, i have to run.21:24
smoserbut i had a ahah21:24
blackboxswsee ya smoser have a good one21:24
smoseri remembered one other time i tried to test if something was writable21:24
smoserand the filesystem actually was lying to me21:24
smoserif you want to test if something is writable , you can say:21:25
smoser hey filesystem can i write to that file?21:25
smoser(thats what we're doing now)21:25
smoseror you can open it for writing21:25
smoserand not write anything21:25
smoserthe second path gives you more reliable data :)21:25
smoseri think probably safe if you do that notrunc and then dont write anything.21:26
blackboxswsorry 1:1 just ended21:36
blackboxsw"i think probably safe if you do that notrunc and then dont write anything."  I parsed that safe, if you do 'that' (perform the os.access call?) on trunk and don't write anything21:38

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