/srv/irclogs.ubuntu.com/2015/05/28/#juju-dev.txt

natefinch-afkanyone familiar with the upgrade tests?  I added upgrade steps to move the rsyslog config files from /var/log/juju to /var/lib/juju ... but the tests fail because the tests mock out a bunch of stuff and evidently don't set up the log directory.02:39
anastasiamacaxw_: wallyworld: backort of storage-add http://reviews.vapour.ws/r/1803/02:47
axw_looking02:48
anastasiamacaxw_: \o/02:49
=== natefinch-afk is now known as natefinch
wallyworldnatefinch-afk: isn't t just a case of adding a LogDir() metod to fakeConfigSetter02:50
natefinchwallyworld: could be.  upgrade_test.go is 1000 lines long... finding what particular part I need to tweak in what particular way is not always obvious.02:51
wallyworldi just guessed by looking at what setup test did, hopefully it works02:54
natefinchwallyworld: oh yeah, I didn't think to look at setuptest02:54
wallyworldactuially, matbe not setup test, i forgot what i looked at, but see NewFakeConfigSetter02:55
wallyworldit has some of the COnfig methods but not all02:55
wallyworldi find that both useful and difficult in Go02:56
wallyworldhard to know what implements what02:56
natefinchwe just mock out and fake out so much of our code to run the tests... it's hard to know what actual code is getting run.02:59
natefinchevery test we have runs hundreds of lines of setup code, most of which is very far away from the test itself.03:01
natefinchwallyworld: I seriously have no clue how to even begin to do this.  Adding LogDir() to fakeConfigSetter does not seem like it will populate that directory with the correct expected files.03:09
wallyworldit won't - you need to do that03:09
wallyworldwith c.MkDir()03:09
wallyworldand then pass that dir to fakeconfigsetter03:10
wallyworldso it can be returned from the LogDir() func03:10
wallyworldjust guessing03:10
natefinchI can't even really tell where this test ends up creating a fakeConfigSetter03:10
wallyworldsee TestContextInitializeWhenNoUpgradeRequired03:11
wallyworldlooks like the test sets it up03:11
menn0thumper: reporting dropped log messages: http://reviews.vapour.ws/r/1804/04:21
menn0thumper: btw, i really don't like the tests for logsender and I have a plan for reworking them to be more unit-testy04:22
=== kadams54 is now known as kadams54-away
thumpermenn0: ack05:12
axw_wallyworld: FYI I have the deadlock in hand, just working through updating all the tests and so on06:32
wallyworldaxw_: awesome, so the worker uses a tomb etc. did you get rid of the singleton?07:06
axw_wallyworld: I did, but now I'm putting it back (sort of)07:07
axw_wallyworld: it's a huge PITA to change all of the tests07:08
wallyworldyeah :-(07:08
axw_wallyworld: so I'm changing it so there's a worker, and it updates a singleton which you can call and will fail if there's no active worker07:08
axw_wallyworld: changing *most* of the tests was fine, but then JujuConnSuite things were a nightmare, because they have their own API server which needed to have resources threaded through... just not worth the effort right now07:09
wallyworldi hate jujuconnsuite07:09
wallyworldi'm off to soccer soonish, will look in more detail when i get back07:10
axw_wallyworld: sure. I've not proposed yet, still fixing tests07:11
axw_enjoy07:11
wallyworldwill do, not quite leaving yet07:11
wallyworldaxw_: with your change, will tests still need to start their own worker loop, or did you get to remove that ickiness too?07:16
axw_wallyworld: which tests?07:17
axw_wallyworld: the uniter tests will still need to07:17
wallyworldaxw_: william put a worker loop in dummy provider, and menno also added one for some agent tests07:18
wallyworldhmmm, i think the agent tests are on master though07:18
axw_wallyworld: didn't see anything in dummy provider. I don't think my change will improve on that07:18
wallyworldmaybe william's code not landed yet07:19
wallyworldif blocking calls were removed, that would help with the problem07:20
wallyworldi guess with your changes though, it's a matter of starting a worker rather than a loop directly07:20
wallyworldand maybe blocking calls can be aborted when the worker fies07:21
wallyworlddies07:21
axw_wallyworld: if the worker isn't started, lease/leadership calls will error out07:21
axw_wallyworld: so they won't hang forever07:21
wallyworldgreat, that's an improvement07:21
axw_wallyworld: not sure if that's enough to cover all the tests07:21
wallyworldgotta start somwhere07:22
axw_fwereade: http://reviews.vapour.ws/r/1806/08:25
axw_FYI08:25
axw_wallyworld: ^^08:25
fwereadeaxw_, reviewed; basically awesome, but I have a few quibbles09:03
dimiternfwereade, can you stamp http://reviews.vapour.ws/r/1777/ please?09:03
fwereadewallyworld, axw_: and, yes, I suspect I didn't land the branch that put lease manager in the dummy provider, dammit, sorry09:06
axw_fwereade: I guess we don't really need an exported error for the BlockUntilLeadershipReleased call at all, do we? I could just create an error inline09:43
fwereadeaxw_, true09:43
fwereadeaxw_, but you need the same error in several circumstances, right?09:43
fwereadeaxw_, so an unexported errStopped is probably a good idea09:44
axw_fwereade: just that one method in leadership, but I'll do that anyway09:44
fwereadeaxw_, shouldn't claim and release have similar?09:45
fwereadeaxw_, we don't want to leak the lease error to the clients, and we definitely don't want to let tomb.ErrDying out of the worker09:45
axw_fwereade: their cancellation happens in the lease package. so... I could export an error from there instead09:45
axw_fwereade: fair enough. ok, so I'll export an error from lease, but trap it in leadership and translate09:46
axw_I was hoping not to put that in the lease contract09:47
fwereadeaxw_, well that's sort of why I was advocating a worker.ErrStopped09:47
axw_I see09:47
axw_ok then, that'll do09:47
fwereadeaxw_, from the POV of a client it barely matters which worker was stopped or why09:48
fwereadeaxw_, it's as simple as "I cannot fulfil your request because the necessary components are not running"09:48
fwereadeaxw_, the non-running components ought to have their own failures logged anyway, so there's little benefit to leaking anything else out of the methods09:49
axw_fwereade: yep, sounds good09:49
mupBug #1459610 was opened: juju status --format=tabular > 80 characters wide <juju-core:New> <https://launchpad.net/bugs/1459610>10:30
mupBug #1459611 was opened: juju status --utc does not display utc and is confused <juju-core:New> <https://launchpad.net/bugs/1459611>10:42
axw_fwereade: updated, PTAL when you can10:52
fwereadeaxw_, cheers10:52
mupBug #1459611 changed: juju status --utc does not display utc and is confused <juju-core:New> <https://launchpad.net/bugs/1459611>10:54
mupBug #1456957 changed: rsyslog worker should not add machines that are not ready yet <cpec> <logging> <rsyslog> <juju-core:Won't Fix> <juju-core 1.22:New> <juju-core 1.23:New> <juju-core 1.24:New> <https://launchpad.net/bugs/1456957>11:00
mupBug #1459611 was opened: juju status --utc does not display utc and is confused <juju-core:New> <https://launchpad.net/bugs/1459611>11:00
mupBug #1459616 was opened: 'juju status' timestamps should use rfc3339 or ISO8601 <juju-core:New> <https://launchpad.net/bugs/1459616>11:00
wwitzel3sorry I missed the first half, but the last half was useful :)11:03
anastasiamacwwitzel3: it was just as great for me too! I had all my questions answered :D11:14
wallyworldericsnow: you ocr? can you look at http://reviews.vapour.ws/r/1805/ sometime during your day?12:01
wallyworldfwereade: just as an fyi ^^^^^12:02
wallyworldsince we discussed it12:02
fwereadewallyworld, cheers12:02
thumperI'm outa here12:09
fwereadeperrito666, woudl you also cast an eye over http://reviews.vapour.ws/r/1805/ with a view to understanding how/whether it interacts with the restore-mode api12:31
* perrito666 casts eyes12:47
marcoceppiIs the environment UUID exposed in the API?13:17
fwereademarcoceppi, Client.EnvironmentInfo13:32
fwereademarcoceppi, and you get the tag, which is "environ-<uuid>" when you log in13:32
mupBug #1459679 was opened: MinUnitsSuite teardown fails <ci> <intermittent-failure> <unit-tests> <juju-core:Incomplete> <juju-core 1.24:Triaged> <https://launchpad.net/bugs/1459679>13:40
mupBug #1459679 changed: MinUnitsSuite teardown fails <ci> <intermittent-failure> <unit-tests> <juju-core:Incomplete> <juju-core 1.24:Triaged> <https://launchpad.net/bugs/1459679>14:01
wwitzel3ericsnow: ping14:04
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
perrito666how can I go from a name to a Tag?17:09
wwitzel3perrito666: ?17:14
wwitzel3perrito666: what do you mean?17:15
wwitzel3perrito666: you have string name?17:15
perrito666yes, and I want a way to get a tag17:16
wwitzel3perrito666: if you don't know the type, you can just use ParseTag which will switch over the different tag types for a match17:18
wwitzel3perrito666: if you know the tag type you want, you can call ParseUnitTag(s) for example17:19
perrito666wwitzel3: what I have is what a unit will return by calling Name()17:19
perrito666I was not sure if that parsed to tag17:19
wwitzel3perrito666: yes, it will17:21
perrito666k tx17:21
wwitzel3perrito666: all u.UniTag does is wrap names.NewUnitTag(u.Name())17:21
wwitzel3perrito666: so it will be the same result, except NewUnitTag panics and ParseUnitTag has an error return, so just depends on the behavior you want17:22
perrito666tx a lot man17:22
wwitzel3np17:22
* perrito666 adds the appropriate string in the appropriate parts17:22
marcoceppihow is juju backup different than just, say, a bundle?17:47
mupBug #1459761 was opened: Unable to destroy service/machine/unit <juju-core:New> <https://launchpad.net/bugs/1459761>17:52
=== arosales_ is now known as arosales
mupBug #1459761 changed: Unable to destroy service/machine/unit <destroy-machine> <local-provider> <lxc> <juju-core:Triaged> <https://launchpad.net/bugs/1459761>17:58
mupBug #1459761 was opened: Unable to destroy service/machine/unit <juju-core:New> <https://launchpad.net/bugs/1459761>18:07
=== kadams54 is now known as kadams54-away
ericsnowmarcoceppi: what do you mean by "bundle"?  a charm bundle?18:33
mupBug #1457011 changed: init system discovery script fails with: [[: not found <cloud-init> <compatibility> <regression> <tech-debt> <juju-core:Fix Released by ericsnowcurrently>18:37
mup<juju-core 1.23:Fix Released by ericsnowcurrently> <juju-core 1.24:Fix Released by ericsnowcurrently> <https://launchpad.net/bugs/1457011>18:37
mupBug #1459775 was opened: init system discovery script has bashisms <juju-core:In Progress by ericsnowcurrently> <juju-core 1.24:In Progress by ericsnowcurrently> <https://launchpad.net/bugs/1459775>18:37
=== kadams54-away is now known as kadams54
mupBug #1457011 was opened: init system discovery script fails with: [[: not found <cloud-init> <compatibility> <regression> <tech-debt> <juju-core:Fix Released by18:43
mupericsnowcurrently> <juju-core 1.23:Fix Released by ericsnowcurrently> <juju-core 1.24:Fix Released by ericsnowcurrently> <https://launchpad.net/bugs/1457011>18:43
mupBug #1459775 changed: init system discovery script has bashisms <juju-core:In Progress by ericsnowcurrently> <juju-core 1.24:In Progress by ericsnowcurrently> <https://launchpad.net/bugs/1459775>18:43
mupBug #1457011 changed: init system discovery script fails with: [[: not found <cloud-init> <compatibility> <regression> <tech-debt> <juju-core:Fix Released by ericsnowcurrently>18:52
mup<juju-core 1.23:Fix Released by ericsnowcurrently> <juju-core 1.24:Fix Released by ericsnowcurrently> <https://launchpad.net/bugs/1457011>18:52
mupBug #1459775 was opened: init system discovery script has bashisms <juju-core:In Progress by ericsnowcurrently> <juju-core 1.24:In Progress by ericsnowcurrently> <https://launchpad.net/bugs/1459775>18:52
mupBug #1459785 was opened: systemd-related tests may fail under windows <systemd> <windows> <juju-core:In Progress by ericsnowcurrently> <juju-core 1.24:In Progress by ericsnowcurrently> <https://launchpad.net/bugs/1459785>18:52
mupBug #1459785 changed: systemd-related tests may fail under windows <systemd> <windows> <juju-core:In Progress by ericsnowcurrently> <juju-core 1.24:In Progress by ericsnowcurrently> <https://launchpad.net/bugs/1459785>18:55
mupBug #1459785 was opened: systemd-related tests may fail under windows <systemd> <windows> <juju-core:In Progress by ericsnowcurrently> <juju-core 1.24:In Progress by ericsnowcurrently> <https://launchpad.net/bugs/1459785>19:07
=== kadams54 is now known as kadams54-away
perrito666does anyone know why 1.18 would not bootstrap to ec2?19:28
* perrito666 looks a sinzui 19:28
sinzuiperrito666: 1.18 did/does19:32
perrito666I have this error https://bugs.launchpad.net/juju-core/+bug/135893319:32
perrito666or related19:32
mupBug #1358933: localHTTPSServerSuite.TestMustDisableSSLVerify fails in lxc <ci> <test-failure> <juju-core:Fix Released by sinzui> <https://launchpad.net/bugs/1358933>19:32
perrito666mm, or just related19:32
sinzuiperrito666: and cloud health shows it did 16 minutes ago, so AWS hs not changed to break 1.2819:32
perrito666it was that bug, juju 1.18 deppends on ca-certificates yet the package doesn t19:34
sinzuiperrito666: that sounds true. the ca-certificates is delievered with ever desktop system19:35
perrito666sinzui: I am running juju from inside an lxc container19:35
perrito666there's a corner case :p19:36
sinzuiperrito666: sure easily fixed by the edge user19:37
perrito666indeed19:37
sinzuiThough I hope that wasn’t the only reason devs swore juju in lxc was unsupported19:38
perrito666alghough I dont think it would hurt the package to depend on its dependencies even if they are installed by default19:38
cmarsperrito666, they might not be, if you install ubuntu server with the "minimal virtual machine" option19:39
cmarsinstalled by default, that is..19:39
perrito666I assume using lxc by hand is not all that common but I dont feel all that edgy19:39
cmarsmonocultures are bad. i like edgy :)19:40
ericsnowcherylj: ping19:55
cheryljericsnow: what up19:57
ericsnowcherylj: I have some concerns with http://reviews.vapour.ws/r/1797/19:57
ericsnowcherylj: just wanted to talk about it real quick :)19:57
cheryljericsnow: sure.  Reading through your comments now19:59
ericsnowcherylj: cool19:59
cheryljericsnow: to answer your question about adding in a start for the service with systemd - the short answer is that the container never halted if I didn't explicitly start the service.20:04
cheryljWhen I was debugging, I saw that the service was in an inactive state once I added in the correct After and Install info20:04
ericsnowcherylj: yeah, it kind of makes sense20:05
cheryljAnd I guess you had a different take on who should make the decision about the cloud-init AfterStopped target.20:06
ericsnowcherylj: relatedly, how does the shutdown service get removed?  or does is simply stick around but do nothing?20:06
ericsnowcherylj: yeah, the code in service/systemd shouldn't have any knowledge of cloudinit20:07
ericsnowcherylj: also, part of what the cloudbase guys did was to pull all the cloudinit-related code into one place (under cloudconfig)20:08
cheryljericsnow: the ExecStopPost disable works just fine.  It completely removes the service such that any containers created from that template to not have it in their registered services20:08
ericsnowcherylj: oh yeah :)20:08
cheryljericsnow: I can go in and make your suggested changes20:08
ericsnowcherylj: cool20:08
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away

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