/srv/irclogs.ubuntu.com/2016/07/29/#juju-dev.txt

redircouple easy ones: http://reviews.vapour.ws/r/5325/01:00
redirhttp://reviews.vapour.ws/r/5323/01:01
redirone last easy straggler: http://reviews.vapour.ws/r/5323/01:29
=== natefinch-afk is now known as natefinch
menn0thumper: TestHostedModelWorkers is sooo unreliable on Windows02:01
menn0I might take a look if I get a chance later one02:02
menn0on02:02
thumperok02:06
natefinchpretty simple review anyone? https://github.com/juju/schema/pull/1302:11
natefinchredir: thanks for the review btw02:33
menn0thumper: I just assigned you this as I think you knew what it was :-p https://bugs.launchpad.net/juju-core/+bug/160759903:43
mupBug #1607599: new unit ends up on wrong machine after migration <migration> <juju-core:New for thumper> <https://launchpad.net/bugs/1607599>03:43
thumperok, no problem03:44
mupBug #1607599 opened: new unit ends up on wrong machine after migration <migration> <juju-core:New for thumper> <https://launchpad.net/bugs/1607599>03:50
menn0thumper: migrationmaster now does status reporting: http://reviews.vapour.ws/r/5326/03:52
redirnatefinch: np03:53
mupBug #1501569 changed: MachineSuite failed <ci> <intermittent-failure> <unit-tests> <juju-core:Won't Fix> <https://launchpad.net/bugs/1501569>04:02
mupBug #1501569 opened: MachineSuite failed <ci> <intermittent-failure> <unit-tests> <juju-core:Won't Fix> <https://launchpad.net/bugs/1501569>04:08
mupBug #1501569 changed: MachineSuite failed <ci> <intermittent-failure> <unit-tests> <juju-core:Won't Fix> <https://launchpad.net/bugs/1501569>04:20
mupBug #1582881 changed: destroying a subordinate returns an error but seems to work <juju-core:Expired> <https://launchpad.net/bugs/1582881>04:20
mupBug #1607601 opened: There is no way to see assigned user ACLs <juju-core:Triaged> <https://launchpad.net/bugs/1607601>04:20
mupBug #1607601 changed: There is no way to see assigned user ACLs <juju-core:Triaged> <https://launchpad.net/bugs/1607601>04:29
mupBug #1582881 opened: destroying a subordinate returns an error but seems to work <juju-core:Expired> <https://launchpad.net/bugs/1582881>04:29
mupBug #1582881 changed: destroying a subordinate returns an error but seems to work <juju-core:Expired> <https://launchpad.net/bugs/1582881>04:32
mupBug #1600301 opened: cmd/jujud/agent MachineSuite.TestHostedModelWorkers fails because compute-provisioner never really starts <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:In Progress by menno.smits> <https://launchpad.net/bugs/1600301>04:32
mupBug #1607601 opened: There is no way to see assigned user ACLs <juju-core:Triaged> <https://launchpad.net/bugs/1607601>04:32
mupBug #1607608 opened: "juju shares" doesn't make sense any more <juju-core:New> <https://launchpad.net/bugs/1607608>04:32
mupBug #1600301 changed: cmd/jujud/agent MachineSuite.TestHostedModelWorkers fails because compute-provisioner never really starts <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:In Progress by menno.smits> <https://launchpad.net/bugs/1600301>04:38
mupBug #1607608 changed: "juju shares" doesn't make sense any more <juju-core:New> <https://launchpad.net/bugs/1607608>04:38
blahdeblahAnyone know how I can work around this error?  ERROR cannot add unit 1/1 to service "glance": cannot add unit to service "glance": inconsistent state04:45
blahdeblahSeems to be coming from here: https://github.com/juju/juju/blob/1.25/state/service.go#L89904:45
blahdeblahIt happened when I tried to "juju add-unit glance --to lxc:21"04:46
mupBug #1600301 opened: cmd/jujud/agent MachineSuite.TestHostedModelWorkers fails because compute-provisioner never really starts <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:In Progress by menno.smits> <https://launchpad.net/bugs/1600301>04:50
mupBug #1607608 opened: "juju shares" doesn't make sense any more <juju-core:Triaged> <https://launchpad.net/bugs/1607608>04:50
mupBug #1607611 opened: User commands "See also" help sections need work <juju-core:New> <https://launchpad.net/bugs/1607611>04:50
menn0axw: you should really stop biting yourself04:55
axwmenn0: too bad you can't edit launchpad comments ;p04:55
axwthat's two people now04:55
menn0axw: https://bugs.launchpad.net/juju-core/+bug/1600301/comments/404:55
mupBug #1600301: cmd/jujud/agent MachineSuite.TestHostedModelWorkers fails because compute-provisioner never really starts <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:In Progress by menno.smits> <https://launchpad.net/bugs/1600301>04:55
menn0haha04:56
blahdeblahaxw: Why are you biting yourself? https://www.youtube.com/watch?v=W_bQ_vMtnbo05:17
axwblahdeblah: :p05:19
mupBug #1607620 opened: vsphere provider doesn't use region/endpoint from clouds.yaml <juju-core:Triaged> <https://launchpad.net/bugs/1607620>05:21
menn0axw: ping05:36
axwmenn0: pong05:37
menn0axw: I've been looking at bug 160030105:37
mupBug #1600301: cmd/jujud/agent MachineSuite.TestHostedModelWorkers fails because compute-provisioner never really starts <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:In Progress by menno.smits> <https://launchpad.net/bugs/1600301>05:37
menn0and I think I see what's happening05:37
menn0it's a miracle it even works at all05:37
axwmenn0: was I right with my comment about multi-model? or is it something else?05:38
menn0the only reason it works is that the test spins in a tight loop and just happens to see the compute-provisioner come up just long enough before it dies with a "model is not prepared" error05:38
menn0on windows it fails a lot more before things are slower or the timings are different05:38
menn0if I reduce the test's loop frequency it fails reliably05:39
menn0axw: there appears to be some stuff in there to support multi-model05:39
menn0axw: maybe there just needs to be some extra setup done in the dummy provider... right now the test just creates the hosted model in state with no other setup05:40
menn0axw: I know very little about the dummy provider05:40
axwmenn0: ok. the code's a bit inscrutable, but it looks like we only enter things into the "state" map during bootstrap. and if there's nothing in there for a model UUID, we get "model is not prepared"05:42
axwhence my comment. I may be missing something though05:42
menn0axw: yep that's what I had figured out too05:42
* menn0 checks if there's another way to get something into dummy.state05:42
menn0axw: failing that, what would you say to having this test - and the other 2 or 3 that use a similar structure - skipped05:43
menn0axw: i'll keep working on it but that seems like a reasonable short term solutionm05:43
axwmenn0: seems fine. we need a better way of telling that workers are started05:44
menn0axw: I'll bring it up with will05:44
menn0axw: he last touched these tests05:44
axwmenn0: we'll find out pretty quick if the compute provisioner isn't working ;)05:45
menn0axw: I wonder if it's enough to just statically check the manifolds config to ensure the workers we expect are listed05:45
menn0axw: and then rely on other tests (featuretests and CI) if something isn't wired up05:45
axwmenn0: yeah, I think that'd probably be enough. it's not something that's likely to break often - and if it did, it would be very obvious05:46
axwwell, I think it would? maybe not. might be wondering why the machine never gets provisioned...05:47
axwmenn0: the other thing we could do is stop using the dummy provider...05:48
menn0axw: but what then?05:48
menn0for this test I mean05:48
axwmenn0: something more programmable. it wouldn't need to do much really - just as long as EnvironProvider.Open works05:49
menn0axw: here's the PR that skips the 3 flaky tests: http://reviews.vapour.ws/r/5328/06:02
menn0axw: I'm emailing Will now regarding a better fix.06:02
axwmenn0: ok, ta06:02
blahdeblahanastasiamac: So, re: juju add-unit, this failed on 8 services across 2 different nodes, but retrying them all again worked! \o/06:02
axwmenn0: shipit, thanks06:02
anastasiamacblahdeblah: \o/06:03
blahdeblahWhich is kinda weird, but yay anyway06:03
blahdeblahI was only ever adding one unit at a time06:03
anastasiamacblahdeblah: worthy of a bug :) and the reference to the code that u've paster is brilliant!06:03
anastasiamacplz add it to the bug too ;)06:03
blahdeblahFor the record, all I did was pattern match the error message + guess.  I find go code incredibly hard to read, and couldn't trace the logic of it to save my life.06:04
blahdeblahIs it really worth a bug report when it's not likely to get fixed?06:05
anastasiamacblahdeblah: it's worth a bug and i think it's some kind of race :)06:06
blahdeblahOK06:06
blahdeblahwill do06:06
anastasiamac\o/06:06
menn0axw: merging and i've emailed Will06:09
menn0axw: I need to EOD06:09
menn0axw: if the merge fails can you retry pls?06:09
axwmenn0: no worries. have a good weekend06:09
menn0axw: you too, cheers06:10
frobwaredooferlad: you up? about?07:13
mupBug #1607689 opened: Cannot launch lxd container in MAAS provider with local image mirror <juju-core:New> <https://launchpad.net/bugs/1607689>08:54
TheMuemorning09:12
frobwarewhy oh why does azure take so long to tear itself down09:48
mupBug #1607727 opened: JUJU_GUI_SIMPLESTREAMS_URL cannot be specified except by environment variable <juju-core:New> <https://launchpad.net/bugs/1607727>10:30
frobwaredooferlad, macgreagoir: PTAL @ http://reviews.vapour.ws/r/5330/10:35
frobwarefwereade_: looks like your OCR - any opinion on http://reviews.vapour.ws/r/5330/ welcome...10:38
fwereade_frobware, ack10:38
frobwarefwereade_: ty - needs +2 from somebody else on sapphire10:39
fwereade_frobware, yeah, I can't pretend to expertise there ;)10:39
frobwarefwereade_: it's sooooo much better than what we have. in fact, it appears to work! OoO10:40
fwereade_frobware, nice :D10:40
macgreagoirfrobware: I'm retesting with my lp:1603473 -based env.10:44
frobwaremacgreagoir: is this different to the testing you were doing yesterday?10:46
macgreagoirNo, just now with the pr, really.10:47
macgreagoirAny worth?10:47
mupBug #1607727 changed: JUJU_GUI_SIMPLESTREAMS_URL cannot be specified except by environment variable <juju-core:Won't Fix> <https://launchpad.net/bugs/1607727>10:48
mupBug #1607689 changed: Cannot launch lxd container in MAAS provider with local image mirror <juju-core:New> <https://launchpad.net/bugs/1607689>11:06
fwereade_frobware, can we reasonably drop the e/n/i and e/n/i-juju globals and supply them explicitly in this CL?11:32
fwereade_frobware, in good healthy ioc style ;p11:33
mupBug #1607749 opened: juju bootstrap fails with MAAS trunk and juju beta12 <juju-core:New> <https://launchpad.net/bugs/1607749>11:36
frobwarefwereade_: we can - I'm just wary that I'm a) away for two weeks and unsatifactorily w.r.t your comment I'm trying to close a few other PRs too.11:38
frobwarefwereade_: it is just wrong11:38
frobwarefwereade_: I very deliberately made -- func raiseJujuNetworkInterfacesScript(oldInterfacesFile, newInterfacesFile string) -- take arguments. :)11:40
frobwarefwereade_: let me come back to this once I've closed on a few other things.11:41
fwereade_frobware, fair enough, but please do come back to it: bug#, or card, or whatever's most likely to ensure it gets dealt with as soon as practically possible11:42
frobwarefwereade_: https://canonical.leankit.com/Boards/View/122969419/12354783211:45
fwereade_frobware, <311:46
fwereade_frobware, LGTMed11:47
mupBug #1607749 changed: juju bootstrap fails with MAAS trunk and juju beta12 <juju-core:New> <https://launchpad.net/bugs/1607749>11:52
mupBug #1607749 opened: juju bootstrap fails with MAAS trunk and juju beta12 <juju-core:New> <https://launchpad.net/bugs/1607749>11:55
mupBug #1607766 opened: juju-upgrade-mongo should ask for confirmation <juju-core:New> <https://launchpad.net/bugs/1607766>12:31
MmikeHi, lads - can I get some traction (or at least info) on bug #1457575 ?13:00
mupBug #1457575: archive/tar: write too long <backup-restore> <canonical-bootstack> <intermittent-failure> <juju-core:Fix Released> <juju-core 1.24:Fix Released> <juju-core 1.25:Triaged> <https://launchpad.net/bugs/1457575>13:00
mgzMmike: weeelll... that's a confusing bug status13:02
Mmikemgz: what can I do to un-confuse it? :) (the subject is a bit vague, yup)13:03
mgzI wish my link was still valid...13:03
mgzMmike: I'm guessing we just marked it fixed because we stopped seeing it in CI13:04
mgznot because anyone actually fixed it13:04
mgzthis is probably not much good to you unless I can work out what changed13:04
Mmikemgz: I just tested it locally (in our stsstack), and while it is fixed in latest 1.24, it is still failing in 1.25.613:05
mgzwelp13:05
mgzI wonder what the diff looks like if I try to merge 1.24 to 1.2513:06
MmikeHave a customer that is hitting this issue - I'll suggest a workaround, as to delete stale log files and then try backups again. But the customer would appreciate if he sees some traction on this bug )13:06
Mmikemgz: maybe it's matter of just some tactical include missing :D13:07
* Mmike is joking, of course13:07
mgzthere's no commit on the 1.24 branch mentioning that bug number or the symptom...13:08
Mmikemgz: maybe the issue never existed in 1.24 (or was already fixed by the time bug was first reported), so it was 'Invalid' for 1.2413:11
Mmikes/was/should be/13:11
frobwarefwereade_: does my comment regarding the lack of default gateway need not be catastrophic, hence warning vis-a-vis error?13:12
mgzMmike: maybe. we have one failure in CI on 1.24 from 2015-0513:12
mgzthe others are on master/feature branches (1.25)13:12
mgzMmike: given you have repo steps, I think it's probably just something we need to get assigned to someone to fix13:13
Mmikethat's be neat13:13
* Mmike would look to cheryl, for no apparent reason, had she been here when I wanted to look :D13:14
* Mmike thinks his english broke13:14
fwereade_frobware, hmm... if it *is* reasonably expected, can or should it be an INFO? honestly I was pretty much convinced by davecheney's rubbishing of most logging levels13:17
fwereade_frobware, I think the place we generally need more sophistication is in the provenance of log messages13:18
frobwarefwereade_: that logging statement I added today - I've had the patch for a while. One wonders whether we should log anything at all. And if so, let's make it just informational.13:18
fwereade_frobware, +113:19
mupBug #1607786 opened: juju backups won't backup whole /var/log/juju directory <juju-core:New> <https://launchpad.net/bugs/1607786>13:28
mgzMmike: so... this looks reasonably fixable, though the differnce between 1.24 and 1.25 isn't totally clear13:29
mgzthey do have different utils versions but nothing in the log looks like a relevent utils/tar change13:29
Mmikemgz: also, it seems that the actual size of all-machines.log file which triggers the bug is not the same each time - I tested this against maas provider (so my bootstrap machine was a node in maas cluster), and I had to kick the allmachines.log to 1.5GB for the bug to kick in13:32
Mmikenow I'm testing against openstack provider (so my state machine is some kvm instance), and it worked ok for 300MB file, failed for 600MB file13:33
mupBug #1607794 opened: withoutControllerSuite.TestWatchMachineErrorRetry unexpected change <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:Triaged> <https://launchpad.net/bugs/1607794>13:34
mgzMmike: oh...oooo13:35
mgzI wonder13:35
mgzI bet the size is just helping us hit the bug by making the process slower13:36
mgzMmike: the log is still being written during backup right?13:36
mgzso... theory-of-bug13:36
mgzwe start backup, pass the name all-machines.log to tar.TarFiles to stick in our tar13:37
mgzthat code stats the file to get the size13:37
Mmikemgz: keep in mind that if I repeat the test with the exact same file sizes, it doesn't fail on 1.24.713:37
mgzstarts io.Copy the contents across13:38
mgza new line goes into the log - it's now longer than it was when statt-ed13:38
mgzwe hit the error case in tar.Write13:39
mgzwhich doesn't let you write more than you said you were going to13:39
mupBug #1607794 changed: withoutControllerSuite.TestWatchMachineErrorRetry unexpected change <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:Triaged> <https://launchpad.net/bugs/1607794>13:40
mgzMmike: I can try a trivial patch to test that theory if you're up for trying a custom binary13:41
Mmikemgz: sure thing, would be happy to13:42
mgzhow are even the utils tests slow..13:45
mgz0.004s runtime 5 seconds compiling I guess13:46
mgzokay, passed13:46
mgzhttp://paste.ubuntu.com/2140185913:47
mgzMmike: building you some binaries... presume amd64 is fine?13:48
dooferladfrobware: If you have a moment, http://reviews.vapour.ws/r/5333/ is ready to fix that LXD gateway bug13:49
* dooferlad goes to get tea13:49
Mmikemgz: yup, amd6413:49
frobwaredooferlad: I wasn't sure what stage things were for you so I was also working this: http://reviews.vapour.ws/r/5331/13:50
mgz...now I wish I added some more debug statements as well13:50
mgzbuild takes aaages13:51
mupBug #1607794 opened: withoutControllerSuite.TestWatchMachineErrorRetry unexpected change <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:Triaged> <https://launchpad.net/bugs/1607794>13:52
natefinchdoes anyone know how to use juju/schema?  I can't understand the API13:53
natefinchrogpeppe: ^13:58
rogpeppenatefinch: sure, what don't you understand?13:59
rogpeppenatefinch: FWIW it's one of the very oldest packages in juju...13:59
mgzMmike: okay, I went back and added a bunch of debugging in case I'm wrong13:59
natefinchrogpeppe: I expect there to be some sort of "Validate" method or something... I'm adding some logic to validation options, except that I can't find code that actually does validation14:00
rogpeppenatefinch: Coerce is the method to use14:00
rogpeppenatefinch: it's not just validation, but it also converts to a standard form14:00
rogpeppes/method/function/14:01
Mmikemgz: ack, just let me know where to get the binary from14:01
natefinchrogpeppe: ahh, I think it's the FieldMap function that is the entrypoint I'm trying to find14:05
frobwaremgz: how often is the daily(??) PPA generated?14:06
natefinchlol, I hope there's only one answer to that14:06
mgzfrobware: by default, when master is blessed14:06
frobwaremgz: ty14:06
mgzso, 99 days ago14:07
mgzhm, what happened to lillypilly14:12
mgzMmike: so, I have a file, but I don't have routing from my build machine to mombin, which is the new lillypilly14:21
mgzMmike: so, if you can get to my canonistack box, pull it straight from there?14:21
Mmikemgz: how large is it, can you email it to me?14:22
Mmikemgz: or you can add my keys from https://launchpad.net/~mariosplivalo/+sshkeys14:22
mgzMmike: scp 10.55.60.255:~/juju-1.25-gztardebug.tar.xz .14:22
mgzdone ssh-import-id already14:23
Mmikeack14:23
Mmikemgz: what username should I use?14:24
mgzubuntu14:24
mgzhas the juju and jujud binaries for 1.25 tip with this change applied, so unpack somewhere and ./juju bootstrap --upload-tools14:25
Mmikeack14:26
Mmikeit's downloading14:26
mgzexpectation is either no error with your steps, or same error but with +GZ and extra details on the end14:27
MmikeBuilding tools to upload (1.25.6.1-trusty-amd64)14:33
Mmikemgz: shouldn't the version stting be changed?14:33
Mmikeeh, sorry, my fault14:33
Mmikewrong binary :)14:34
mgz:D14:36
mgzit should report 1.25.7.114:37
Mmikemgz: testing it now14:46
Mmike-rw------- 101/4    1572890664 2016-07-29 14:45 var/log/juju/all-machines.log14:49
Mmikemgz: it worked ok, it put that large file into root.tar14:49
Mmikesec, I'll pastebin14:49
Mmikemgz: http://paste.ubuntu.com/21407167/14:50
mgzMmike: now I want to build one that I think will fail with the extra debugging to be sure...14:50
Mmikesure thing14:51
Mmikei'm going to be around for the next hour and a half14:51
mgzI guess it looks like we have the fix though14:51
mgzhm, the other thing that could matter is the go version14:53
mgzMmike: scp ubuntu@10.55.60.255:~/juju-1.25-gztarbad.tar.xz .14:58
mgzI worry that may actually pass too given it's go 1.6 but hopefully now14:59
mgz*not14:59
Mmikemgz: few mins, pls15:07
mupBug #1605714 opened: juju2 beta11: LXD containers always pending on ppc64el systems <oil> <oil-2.0> <juju-core:New> <https://launchpad.net/bugs/1605714>15:10
=== frankban is now known as frankban|afk
perrito666this is glorious https://twitter.com/fatih/status/75904929253110988915:39
Mmikemgz: sorry, had mtgs, testing it now15:43
mgzMmike: no worries, thanks for all your help15:47
Mmikemgz: it failed, as expected: http://paste.ubuntu.com/21412575/15:52
natefinchperrito666: gah, I should have finished my code to do that: https://github.com/natefinch/graffiti15:54
mgzMmike: woho15:55
Mmikethat's a good 'woho', right? :)15:55
mgzMmike: yeah, though... I did get my debug statement slightly wrong, annoyingly15:56
mgzMmike: I'm happy to propose this15:56
mgzwill be in 1.25.7 and it seems like the best workaround is minimising the logs/avoid getting the logfile written to mid-backup15:57
Mmikemgz: excellent, thank you very much!15:57
Mmikemgz: may I ask you to throw a short update on the bug so that I can point the customer there too?15:57
mgzMmike: I shall indeed summarzie from irc and assign to me15:58
Mmikemgz: muchos gracias, senor!15:58
* Mmike signs of for the week16:06
mupBug #1457575 opened: archive/tar: write too long <backup-restore> <canonical-bootstack> <intermittent-failure> <juju-core:In Progress by gz> <juju-core 1.24:Fix Released> <juju-core 1.25:In Progress by gz> <https://launchpad.net/bugs/1457575>16:10
mgzperrito666: so... you want to review some code for me?16:15
mgzI have a slight issue in that I can fix this much easier than I can test it16:16
mupBug #1457575 changed: archive/tar: write too long <backup-restore> <canonical-bootstack> <intermittent-failure> <juju-core:In Progress by gz> <juju-core 1.24:Fix Released> <juju-core 1.25:In Progress by gz> <https://launchpad.net/bugs/1457575>16:25
mupBug #1457575 opened: archive/tar: write too long <backup-restore> <canonical-bootstack> <intermittent-failure> <juju-core:In Progress by gz> <juju-core 1.24:Invalid> <juju-core 1.25:In Progress by gz> <https://launchpad.net/bugs/1457575>16:31
mupBug #1607855 opened: introspectionSuite.SetUpTest unable to listen to socket <ci> <intermittent-failure> <regression> <unit-tests> <juju-core:Triaged> <https://launchpad.net/bugs/1607855>16:31
mupBug #1607858 opened: MachinerStateSuite.TestSetsStatusWhenDying timeout waiting for status to change <ci> <intermittent-failure> <regression> <unit-tests> <windows> <juju-core:Triaged> <https://launchpad.net/bugs/1607858>16:31
mgzany OCR today?16:48
perrito666mgz: fwereade_  or what is left of himm16:49
mgz...what did you do to him...16:51
mgzperrito666: this one is right up your alley though, https://github.com/juju/utils/pull/227 (and 228)16:52
fwereade_mgz, LGTM16:53
mgzI looked quite seriously at adding a test, but that meant rewriting so much of the implementation to take non io/os things16:55
fwereade_mgz, so I imagined16:55
fwereade_mgz, perhaps a comment is warranted?16:55
mgz// Limit data copied to the size of the file on first stat to prevent ErrWriteTooLong from tar if file grows16:58
mgzor something like that?16:58
perrito666mgz: oh, that is not right16:58
mgzfrom archive/tar I guess16:58
perrito666mgz: where in the world did you see tar not whining about files changing during copy?16:59
mgzperrito666: for the log case it's reasonable. for other cases of getting files rewritten under you it's perhaps a higher level code fault, but can only be recovered by abandoning the tar and recreating16:59
fwereade_mgz, yeah, I had "CopyN lest f grow during Copy" in my head, which is unhelpfully terse16:59
mgzperrito666: it does whine, that's the issue. breaks backup.17:00
fwereade_mgz, perhaps it's worth a doc comment actually17:00
perrito666mgz: do add a doc comment, out of the top of my head I can think quickly in another file that might change and we definitely dont want to truncate17:01
mgzyeah, doesn't hurt to be explicit about the function behaviour17:01
perrito666which is agent.conf17:01
fwereade_mgz, "if it succeeds, it has copied at least the full contents of the file at the time it was passed" or something17:01
perrito666fwereade_: not entirely true17:01
mupBug #1607859 opened: MachineWithCharmsSuite.TearDownTest left sockets in a dirty state <ci> <intermittent-failure> <regression> <unit-tests> <xenial> <juju-core:Triaged> <https://launchpad.net/bugs/1607859>17:02
mgzif the file is being in-place mutated we're at the mercy of the filesystem implementation anyway17:02
perrito666if it succeeds will copy at least size(file) at the time it was passed  <- this is more realistic17:02
fwereade_heh, yes17:02
mgzif we're doing rewriting correctly by linux rules, agent.conf is not a problem17:02
mgzbecause we have a handle to the old file17:02
mgzso we just back up the old version17:03
perrito666mgz: I suddenly fear we are not17:03
mgznot the agent.conf.new that gets renamed agent.conf17:03
mgzperrito666: well, that's a bug then :)17:03
perrito666are we actually doing that?17:03
mgzwe really should be17:03
perrito666someone, not me, should check17:03
fwereade_perrito666, we darn well should be17:03
mgztruncate and write is asking for bugs on linux17:03
perrito666fwereade_: never even loked at that part of the code17:03
fwereade_perrito666, agent/agent.go:622 has utils.AtomicWriteFile17:04
perrito666sweet17:04
natefinchrelatively easy review anyone?  https://github.com/juju/schema/pull/13/files17:12
=== ses is now known as Guest16266
mgzfwereade_: added some text on the master branch for your delectation17:18
Guest16266abentley, sinzui is there a way to populate my local db with issues?17:25
mgzissue #1: I have lost my irc nick17:26
mgzI suspect you can dump the live reports db, or at least some of it, and pull it in locally17:26
sinzuiGuest16266: import issues form reports.vapour.ws?17:27
=== ses is now known as Guest24158
natefinchgah, juju/schema is so weird17:50
perrito666k bbl, about 1h17:50
mupBug #1607895 opened: juju2, maas2, two credentials yields confusing error message <landscape> <usability> <juju-core:New> <https://launchpad.net/bugs/1607895>18:02
mgzif anyone is alive still, I have the utils dep bump branches up20:12
mgznatefinch: you have a vested interest in reviewing, also picks up one of your bug fixes20:13
natefinchmgz: link me?20:13
mgzhttp://reviews.vapour.ws/r/5338/ http://reviews.vapour.ws/r/5337/20:14
natefinchmgz: the CopyN thing is weird.... what causes that?20:18
natefinchmgz: i.e. - when copy copy more than that?20:18
mgzthe way the writeContents function works is that it opens the file at the start20:18
mgzstats it20:18
mgzthat information (including the filesize) it then put in the tar header20:19
mgzthen we kick of io.Copy with the file handle20:19
mgzif io.Copy takes long enough, the file might have been appended to by the time it finishes20:19
mgzso, we're writing more data than we promised we would in the header20:20
natefinchI get it20:20
mgzto prevent borked tarfiles, the archive/tar package has a check for that and throws20:20
mgzas we're talking logfiles in practice, just taking their contents (length) at time of opening is sane20:20
mgzanything else should be using atomic file updates20:21
natefinchright20:21
natefinchlgtm'd20:21
mgznatefinch: ta!20:21
=== natefinch is now known as natefinch-afk
sidarta /j #lxcontainers21:13
perrito666mgz: Y U ESCALATE ON FRIDAY?21:31
mgzperrito666: so I can land and get a CI run while I frolick over the weekend? :)21:32
perrito666you are a sick puppy (and just sent me to look up a word)21:33
mgzperrito666: much of my pleasure on irc is making you learn more obscure english language and culture21:35
mgzthough, this one really is pretty innocent (and lose the k when not being archaic)21:35
perrito666mgz: you wont stop until you see me having afternoon tea with scones, arent you?21:36
mgzI feel scones are not a great stretch for you21:36
perrito666mgz: can I get more english than that?21:37
* perrito666 has an actual tea pot in his work desk21:37
mupBug #1607964 opened: juju2, maas2, lxd containers started with wrong IP, rely on dhclient to switch things <kanban-cross-team> <landscape> <juju-core:New> <https://launchpad.net/bugs/1607964>21:41
mupBug #1607971 opened: [juju 2.0 ] cannot remove or destroy machine in pending state <oil> <oil-2.0> <juju-core:New> <https://launchpad.net/bugs/1607971>22:14
redirI am going EoW soon and will be on Holiday next week. See you all the following week.23:13

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