/srv/irclogs.ubuntu.com/2014/11/03/#juju-dev.txt

wallyworldmenn0: only took 3 attempts, but fix has landed, will take a bit to wash through CI, but critical regression fix committed00:20
menn0wallyworld: glad it's in00:21
wallyworldmust. not. comment.00:21
wallyworldsadly we still have work to do to make out test suite reliable00:22
bodie_rick_h_, simply that a change to the charm repo in master is causing juju core tests written against the bit that was removed, to fail00:27
bodie_it's not really critical to what I'm trying to do right now, but I want to land some changes to charm, and if v4 master isn't working perhaps I shouldn't rebase my changes on master00:28
bodie_I'll try to get ahold of rogpeppe / uros (who's that?)00:29
menn0hmmm, although LP shows no critical regressions the buildbot is still blocking merges due to bug 1388493']00:42
mupBug #1388493: generate-tools --streams loses content of other streams <ci> <metadata> <regression> <juju-core:Fix Committed by wallyworld> <https://launchpad.net/bugs/1388493>00:42
menn0and bug 138807300:42
mupBug #1388073: set-env no longer accepts empty values <ci> <compatibility> <regression> <set-env> <juju-core:Fix Committed by tasdomas> <https://launchpad.net/bugs/1388073>00:42
rick_h_bodie_: urulama sorry00:43
rick_h_bodie_: roger's lead, the two have been working with charm for some charmstore stuff/etc and are up on the charm package info these days.00:44
bodie_ah, okay.  thanks rick_h_ :)00:52
menn0wallyworld_: do we officially support concurrent local provider environments on the one host machine?02:58
wallyworld_um, no02:59
wallyworld_not to my knowledge02:59
wallyworld_i'm not sure it would even work02:59
davecheneymenn0: it works02:59
davecheneybut you'd be bonkers to try02:59
davecheneywe did it in japan02:59
davecheney27 local providers02:59
wallyworld_\o/02:59
davecheney* footnote: that was in versino 1.1402:59
davecheneygawdknows what's changed since then03:00
menn0wallyworld_, davecheney: the reason I ask is that i've just figured out why the rsyslog worker works for all but 1 environ03:00
stokachuim going to try it03:00
menn0wallyworld_, davecheney: it writes out configuration files using different certs but all listening on the same rsyslog port03:01
menn0wallyworld_, davecheney: so only one environment has working logging03:01
davecheneymenn0: rump-row03:01
wallyworld_menn0: ah, i'm currently wondering why juju debug-log is broken03:01
menn0and even if you go back to one env03:01
wallyworld_nodes are failing to send stuff to machine 0 due to certificate issues03:02
menn0the old rsyslog config doesn't appear to get removed03:02
menn0so logging is broken from then on03:02
menn0you need to clean up /etc/rsyslog.d manually03:02
menn0it's taken me quite some time to figure that out :)03:02
wallyworld_menn0: i'm seeing this03:02
wallyworld_2014-11-03 02:56:34 ERROR juju.worker runner.go:219 exited "rsyslog": x509: certificate is valid for ip-10-46-174-79.ec2.internal, not juju-rsyslog03:02
menn0wallyworld_: that's the one03:02
wallyworld_menn0: this is a critical regression for alpha303:03
wallyworld_as debug log is just broken03:03
menn0wallyworld_: it's only for the local provider though03:03
wallyworld_menn0: nope, also aws03:03
wallyworld_and probably evrything else too :-(03:03
menn0wallyworld_: sorry03:03
wallyworld_that line i just pasted was from an aws deploy03:03
menn0wallyworld_: I just re-read that error.03:04
menn0wallyworld_: I was seeing something different03:04
wallyworld_ah, ok03:04
menn0x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "juju-generated CA for environment \"rsyslog\"")03:04
wallyworld_it may well be the same root cause, not sure03:04
menn0wallyworld_: don't think so03:04
wallyworld_regardless rsyslog and hence debug log is stuffed03:05
menn0wallyworld_: the thing i've been investigating is definitely local provider specific when you have multiple environments set up03:05
menn0sure03:05
wallyworld_:-(03:05
menn0wallyworld_: the client side of the connection sets the expected server name to a hardcoded value of "juju-rsyslog"03:08
menn0wallyworld_: see composeTLS() in worker/rsyslog/worker.go03:09
wallyworld_menn0: yeah, i'm backing out that change to see if it works03:09
wallyworld_was changed 10th october03:09
wallyworld_so recently03:09
* wallyworld_ waits imatiently for aws to start up an instance or two03:10
davecheney%  git push --set-upstream origin 100-fix-issue-6903:11
davecheneyfatal: https://gopkg.in/juju/charm.v4/info/refs not valid: is this a git repository?03:11
davecheneyI hate gopkg.in03:11
davecheneyhttps://github.com/juju/charm/pull/7003:11
davecheneyanyone ?03:11
davecheneywallyworld_: thanks for the review03:14
davecheneyi'm going to wait for rog03:14
davecheneythis is his baby03:14
davecheneyand I have just slapped it, soundly03:14
wallyworld_sure, looked ok to me.... but im not 100% familiar with it03:15
davecheneywallyworld_: i'm changing the semantics of the method from what it promised, but didn't deliver03:18
davecheneyto what it does03:19
wallyworld_right :-)03:19
davecheneyi tried to do it the other way, ie make the methods return a *copy* of the receiver03:19
davecheneybut of course all the tests expect the current behavioru03:19
davecheneyso all broke03:19
davecheneyso, this change renames the method to _say_ what they _do_03:19
davecheneyas well as making them thread safe03:20
* wallyworld_ nods03:20
wallyworld_davecheney: do you know anything about unit tags gaining a suffix? eg unit-flannel-2[2016]03:24
wallyworld_menn0: that one line change to remove "juju-rsyslog" worked03:25
wallyworld_but i'm not sure of the implications of just removing it03:25
menn0wallyworld_: good.03:26
wallyworld_the commit message says03:27
wallyworld_tls.Config clients should use a meaningful ServerName This also fixes an issue with the rsyslog tls.Config not using a ServerName at all.03:27
wallyworld_well, trouble is, if the rsyslog tls.Config uses a service name, it breaks03:27
menn0wallyworld_: the docstring for composeTLS (added in that rev) says that setting ServerName is required to support pre-1.20.9 certs03:27
menn0wallyworld_: so I suspect taking that line out is going to bring back the problem of rsyslog cert issues when upgrading from 1.20 to 1.2103:28
menn0wallyworld_: better check with wayne i guess03:28
wallyworld_yeah03:28
menn0i have to run some errands03:28
wallyworld_i'm not an expert on this stuff03:28
menn0neither am i03:29
* wallyworld_ raiss a criitical bug03:29
menn0sigh03:29
menn0back in a bit03:29
davecheneywallyworld_: tag ? nope03:36
davecheney'fraid I wasn't watching03:37
davecheneysmells like an actions thing03:37
wallyworld_davecheney: np. unit agent logs now have tags like "unit-mysql-0[15930]"03:37
wallyworld_could be actions related i guess, not sure03:37
wallyworld_davecheney: a quick look at the names package doesn't seem to reveal any related changes03:38
davecheneyyup03:39
davecheneydoesn't look like that is whyere they are coming from03:40
davecheneyit is rsyslog ?03:40
davecheneyputting the PID on the end ?03:40
wallyworld_yeah, i just came to the same conclusion ook at the code, so it must be a logging artifact03:41
davecheney[$PID] is the smell03:42
wallyworld_the whle rsyslog thing has been radically changed recently03:44
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
wallyworld_davecheney: what's the official way to construct a name from a tag? eg if I have "unit-mysql-1", I want to get "mysql/1"05:50
wallyworld_jam: connection dropped, sorry if this comes twice, how's your TLS knowledge? i'm not sure what to do with bug 1388688 - 1.21 is broken, but apparently the change was made so that 1.20.9 could be connected to06:58
mupBug #1388688: juju debug-log is broken <debug-log> <regression> <rsyslog> <juju-core:Triaged> <https://launchpad.net/bugs/1388688>06:58
jamwallyworld_: it didn't, looking07:01
jamwallyworld_: is this a fresh bootstrap, an upgrade, an ... ?07:02
wallyworld_jam: fresh bootstrap07:03
wallyworld_1.21 tip07:03
davecheneywallyworld_: names.NewUnitTag(string).String()07:03
davecheneywallyworld_: it depends07:03
davecheneyif you have "unit-mysql-1"07:03
davecheneywhere did you get it from ?07:03
jamwallyworld_: I worked with wwitzel a bit on trying to figure out what the right fix was for this.07:03
wallyworld_davecheney: it's the prefix of a log file entry07:04
jamspecifically we have a variety of issues around TLS and cert names07:04
jamthey want you to either put a hostname in the field07:04
jamor put IP addresses in another field07:04
jambut if we do IP addresses we have to create a new certificate anytime any IP addresses change07:04
wallyworld_for juju < 1.20.9 only?07:04
jamwe *were* putting the phrase "anything" as the server hostname for API connections, but nothing for stuff like rsyslog07:05
jamand then generating certs with "Hostname: *"07:05
jamwhich matches "anything"07:05
jamat one point, someone switched us to start using IP addresses07:05
jambut then upgrade breaks07:05
wallyworld_oh :-(07:05
jambecause it uses one cert that doesn't have IP addresses07:06
jamand when we discussed it07:06
jamit felt a lot better to use07:06
jamHostname: *07:06
jamand meaningful "ServerName" fields07:06
jamand then maybe we could eventually migrate to Hostname: juju-meaningfulname instead of *07:06
jamnow, it looks like the cert that existed actually put a DNSName into the Hostname field07:06
jaminstead of Hostname: *07:07
wallyworld_and we generate the cert?07:07
jambut (a) not all clouds give you DNS names, and (b) the DNS name is specific to a machine, and not to all of the API servers in HA mode07:07
jamwallyworld_: yeah, we generate the cert and how we connect to it07:07
jambut it looks like we're having trouble because we changed it, and now we need to support all the possible ways it could have been generated.07:07
jamI thought the IP address stuff was only in the 1.21-alpha stuff07:08
jamI'd have to dig deep to know what was done when and whereb07:08
jambecause we seem to have changed these things in *micro* releases, which isn't a very good practice07:08
jamwallyworld_: is it possible to wait for wwitzel, or do you need it asap ?07:08
wallyworld_jam: i've marked it as a critical regression and in my view, we cannot release alpha3 till it's fixed. we can talk to wayne when he comes online07:09
wallyworld_cause debug log is broken07:09
jamwallyworld_: to be clear, the issue you are seeing is that 1.21-alpha3 agents are unable to talk to a 1.21-alpha3 API server's rsyslog daemon, correct ?07:10
wallyworld_jam: yes, a fresh bootstrap with upload tools07:10
davecheneywallyworld_: you can use names.ParseTag(...)07:10
wallyworld_on local provider and AWS07:10
wallyworld_davecheney: thanks, will look into that07:11
dimiternmorning07:23
TheMuemorning08:31
voidspacemorning all09:06
mattywmorning everyone09:24
fwereadetasdomas, ping09:29
* fwereade waves at everybody09:30
voidspacefwereade: hah, when I started reviewing wayne's branch there were no reviews for it09:52
voidspacefwereade: when I publish my review some have appeared...09:52
fwereadevoidspace, extra reviews are not in any way a problem09:52
voidspaceheh :-)09:53
jamhi fwereade10:02
fwereadejam, heyhey10:02
voidspacejam: I'm there10:55
mattywfwereade, just noticed you pinging tasdomas  - I think he's off today11:55
fwereademattyw, cheers11:58
mattywfwereade, do we have a way to enabling client logging to a file?12:06
fwereademattyw, I *think* we do but I don't recall offhand12:07
mattywfwereade, --log-file thing.log12:23
fwereademattyw, heh, thanks12:24
fwereadebah, so, the bot's complaining about 1388073 and 1388493 -- both of which STM to be fix committed12:40
fwereadeanyone?12:40
jamfwereade: bot only lets go once it is Fix Released for a while now12:46
jamfwereade: which IIRC, is Curtis seeing the actual CI test runs pass12:47
fwereadejam, ah, ok, makes sense12:47
wallyworld_fwereade: one remaining critical bug open on 1.21 is bug 138868812:50
mupBug #1388688: juju debug-log is broken <debug-log> <regression> <rsyslog> <juju-core:Triaged> <https://launchpad.net/bugs/1388688>12:50
wallyworld_sorta need to ask wayne about it12:50
* fwereade sees `tls.Config` in the first few lines and grumbles expressively to himself12:50
wallyworld_if not for that, we could release 1.21 alpha i think/hope according to the dashboard12:51
fwereadewallyworld_, ok, does he have a mail waiting for when he wakes up?12:51
wallyworld_no, i was waiting for him to show up12:52
wallyworld_i talked to jam a little also12:52
fwereadewallyworld_, that's very good of you, but isn't it late?12:52
wallyworld_well, kinda12:52
wallyworld_i also want to talk to curtis12:52
wallyworld_to make sure everything else is ok for the release12:53
=== lazyWeekend is now known as lazyPower
=== tvansteenburgh1 is now known as tvansteenburgh
* fwereade points wwitzel3 and wallyworld_ in each other's direction13:39
wallyworld_wwitzel3: bug 1388688 is a critical regression because debug log is broken, i'm not sure how to fix to make both 1.21 and 1.20 happy13:40
mupBug #1388688: juju debug-log is broken <debug-log> <regression> <rsyslog> <juju-core:Triaged> <https://launchpad.net/bugs/1388688>13:40
wwitzel3wallyworld_: ok, taking a look13:40
wallyworld_ty13:40
wallyworld_wwitzel3: here's some discussion from earlier http://pastebin.ubuntu.com/8803081/13:42
wwitzel3wallyworld_: thank you13:45
wallyworld_np, thanks for looking13:45
wwitzel3I should of never upgraded, ugh14:10
wwitzel3my xmonand broke, my graphics is no longer using hardware rendering, my system python installation broke, I get weird kernel errors randomly, oh and the whole machine freezes up every 2-4 hours14:11
=== ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Open critical bugs: 1388853
sinzuijam, alexisb can you arrange for someone to address bug 1388853. We still haven't had a single blessed revision for alpha314:42
mupBug #1388853: ppc64el unittests consistently fails <ci> <ppc64el> <regression> <test-failure> <juju-core:Triaged> <https://launchpad.net/bugs/1388853>14:42
wwitzel3wallyworld_: ok, well I have a "fix" for it based on what jam was saying.14:56
wwitzel3wallyworld_: keeps both the clients happy14:56
wwitzel3natefinch, perrito666: ping15:08
natefinchwwitzel3: coming15:08
natefinchwwitzel3: perrito666 is at ods15:08
wwitzel3thumper and me are on-call reviewers today, so will need someone to take a look at http://reviews.vapour.ws/r/324/, it fixes bug #138868815:08
mupBug #1388688: juju debug-log is broken <debug-log> <regression> <rsyslog> <juju-core:Triaged by wwitzel3> <https://launchpad.net/bugs/1388688>15:08
wwitzel3ping fwereade, wallyworld_, voidspace ^15:19
fwereadewwitzel3, tests?15:22
fwereadewwitzel3, (and are you sure it'll work across all the versions in play?)15:23
wwitzel3fwereade: yes, I confirmed it works for both versions15:25
fwereadewwitzel3, awesome15:25
fwereadewwitzel3, needs a unit test too, would lgtm with that15:25
wwitzel3fwereade: as for tests, no idea how we would test it15:25
voidspacewwitzel3: are you appending * inside the body of the loop?15:26
fwereadewwitzel3, and that's a good point too15:26
wwitzel3voidspace: oops, I was, need to push the updated diff, I noticed it after I initially pushed :)15:26
voidspacecool :-)15:27
fwereadewwitzel3, it looks like we're writing that stuff out somewhere15:28
fwereadewwitzel3, can the tests not read the certs back in and check their properties?15:28
wwitzel3fwereade: yep, we can do that15:28
wwitzel3fwereade: you're right, that is better than nothing15:29
fwereadewwitzel3, cool, thanks15:29
alexisbsinzui, looking15:32
alexisbsinzui, I am not seeing the attachment on that bug15:37
sinzuialexisb, :( I will try again15:39
sinzuialexisb, I added the log this time15:43
alexisbawesome, thanks sinzui15:43
wwitzel3fwereade, voidspace: added tests that check the issuer, subject, and dnsnames for the cert.15:48
voidspacewwitzel3: did you push the tests?15:50
voidspacewwitzel3: don't think they're showing on RB yet15:50
voidspacechecking github15:50
alexisball, please consider  bug 1388853 top priority15:50
mupBug #1388853: ppc64el unittests consistently fails <ci> <ppc64el> <regression> <test-failure> <juju-core:Triaged> <https://launchpad.net/bugs/1388853>15:50
wwitzel3voidspace: weird, yeah, they aren't showing in RB15:50
alexisbas 1.21 is still blocked and release was targeted for last weds15:50
voidspacewwitzel3: yeah, I'm looking at it on github15:51
voidspacewwitzel3: github sometimes throttles (drops) API calls15:51
mgzalexisb: I have a plan of sorts of that bug15:51
alexisbmgz, please share15:51
mgzI'm going to change the compiler version that runs the tests15:52
mgzwe fixed the juju parts of the bug on friday,15:52
mgzit's just the current version of gccgo on trusty blows up with these tests - that's a change since brussels15:53
alexisbmgz ack, how can the core team help at this stage?15:55
voidspacewwitzel3: looks good to me15:55
voidspacewwitzel3: the code adds a * after any HostPorts15:56
voidspacewwitzel3: worth having a hostport in the test, so that code is exercised?15:56
mgzalexisb: will yell if I need it15:57
alexisbmgz, ack, thanks15:57
voidspacedimitern: ping16:01
dimiternvoidspace, pong16:02
voidspacedimitern: I have ec2-api-tools installed16:02
voidspacedimitern: and the right AWC environment variables set16:02
dimiternvoidspace, yeah?16:03
voidspacedimitern: and I can access the account using those credentials from code (goamz)16:03
voidspacedimitern: the command line client always reports16:03
voidspaceClient.Unauthorized: Not Authorized16:03
voidspacedimitern: do you have any idea why that might be?16:03
voidspacethe intarwebz are not helping on this16:03
voidspacethe only references I can find are to Java exceptions16:03
bodie_who should I discuss changes to charm with? rogpeppe?16:04
rogpeppebodie_: if you like :)16:04
dimiternvoidspace, not sure if this can be the cause, but I had to set a couple of additional env vars for aws:16:04
voidspacedimitern: ah16:04
voidspacemaybe16:04
voidspacedimitern: you remember which ones?16:05
bodie_rogpeppe, there is a change in charm v4 that breaks juju core state/charm_test TestTestingCharm, which tests against the "metered-custom" dummy charm that was removed from charm in 190b3a5d16:06
bodie_rogpeppe, I want to make some additions to charm but I wasn't sure what to base them on since it seems like v4 is now not compatible (the commit in godeps is fine)16:06
dimiternvoidspace, try these - http://paste.ubuntu.com/8804761/16:07
bodie_rogpeppe, should I just open a PR to replace the missing piece?  I think we might want to move to v5 anyway since I have some Actions related changes I want to make charm more correct.  I don't want deprecated bad bits to build up, but they are not serious... just irritating16:08
rogpeppebodie_: are you saying that there have been some backwardly incompatible changes made to v4, or that you want to make some backwardly incompatible changes in the charm package?16:08
voidspacedimitern: that worked!16:08
voidspacedimitern: it might be worth updating the container addressability doc, which only mentions the key pair16:08
voidspacedimitern: I can do that16:08
voidspacedimitern: I think it was the EC2_KEYPAIR one which did it16:09
voidspacebut I'll verify16:09
bodie_rogpeppe, both.  but the backwards incompatibility that was added to v4, can easily be reversed.  and my changes don't have to be backwardly incompatible, but I would ideally like to remove the pieces they deprecate.16:09
voidspacedimitern: nope, that on its own wasn't enough16:09
bodie_rogpeppe, does that clarify?16:09
voidspacedimitern: it was EC2_URL16:09
rogpeppebodie_: in a call currently, will get back to you in 15 mins or so16:10
bodie_sure thing :)16:10
dimiternvoidspace, I think it was one of the key vars16:12
dimiternvoidspace, one name is deprecated, but accepted the other is the "new" one you're supposed to use16:12
dimiternvoidspace, I have some connection issues - did you see what I sent last?16:12
dimiternvoidspace, ah, ok16:12
dimiternvoidspace, please update the doc then :)16:12
voidspacedimitern: no, I have the key vars in my env already - just adding EC2_URL is sufficient to make it work16:12
voidspacedimitern: done16:12
dimiternvoidspace, cheers!16:12
wwitzel3voidspace: yeah, probably, it is funny .. we have NewRsyslogConfigHandler = newRsyslogConfigHandler in export_test.go, but then we never actually override or test it :P16:13
voidspacewwitzel3: hah16:13
wwitzel3voidspace: I was hoping that wasn't the case, guess I'll have to write a suite for it16:13
bodie_rogpeppe, fwiw, I think it would be good to roll forward to v5 since there are some old half-baked Actions definitions in a dummy charm in v4, that I want to remove, not deprecate.  but as long as it is clear that they are old and smelly, it doesn't change the actual behavior of charm.  it's testing-related only.16:14
bodie_same goes for the breaking commit in v4.16:14
rogpeppebodie_: i'm not sure we need to hold to quite such a stringent backwards compatibility policy for testing-related code16:14
bodie_rogpeppe, I think TheMue had a good point: tests shouldn't be written against implementation details (dummy charms) of v4 anyway :)16:15
bodie_but, maybe that's a little bit of a funky point (dummy charms) which I'm not sure how to approach16:16
bodie_anyway, I will make my changes compatible, but there is some cruft building up and I'd like the charmers to have a proper example of what Actions should look like in a charm16:17
rogpeppebodie_: out of the call now16:17
rogpeppebodie_: i'm generally in agreement with TheMue's point, and i've been pondering a good direction for a while now.16:18
bodie_yeah, it is a pretty subtle and maybe small pothole16:19
rogpeppebodie_: i recently made a backwardly incompatible change to one of the testing repo charms too16:19
rogpeppebodie_: i don't think we need to count the testing-related packages as part of the v4 contract.16:19
rogpeppebodie_: although it's good to keep backwardly compatible when we can, obviously16:20
bodie_my only concern is that if I want to make changes, I can't work on top of charm master if it's breaking juju master16:21
voidspacedimitern: the task breakdown and estimates in the Juju Container Addressability document are based16:41
voidspacedimitern: on AllocateAddress picking an address for us, and not on us managing addresses (and picking one from the right subnet)16:41
voidspacedimitern: I'm not sure that changes a lot regarding estimates - except it means more work in the container provisioner16:42
voidspacedimitern: unless I'm reading it wrong16:42
dimiternvoidspace, that's correct, we might need to inflate the estimate there16:42
voidspacedimitern: right16:42
voidspacedimitern: there is a "Track the IP addresses we have allocated for each subnet" which could cover it16:42
dimiternvoidspace, does the estimate there seem sane to you?16:43
voidspacedimitern: 2-3wks probably has enough wiggle room to cover it :-)16:44
voidspacedimitern: the other estimates seem ok to me16:44
voidspacein a hand-wavy kind of way...16:44
dimiternvoidspace, :) cheers!16:44
rogpeppebodie_: sure you can - juju master is only broken when the juju-core deps are updated, no?16:48
rogpeppebodie_: the most important thing about compatibility is keeping go get working16:48
bodie_gotya :)16:48
rogpeppebodie_: with the testing deps, the broken deps are usually only one level, between tests and testing package16:50
rogpeppebodie_: so, just to summarise, your backwardly incompatible changes only involved changes to the testing charms repo?16:50
bodie_that's right, but they don't have to be backwardly incompatible.  I would just like them to be :)16:52
rogpeppebodie_: i think you should go for it16:54
rogpeppebodie_: for bonus points, check that the charmstore repo passes its tests with the new package16:55
=== fabrice is now known as fabrice|family
rogpeppebodie_: and we should perhaps think about moving toward entirely removing testing/repo16:56
rogpeppebodie_: there will be places where it's still useful, but i think a better way would be to have charm testing repos inside the packages/repos that *use* the charm package16:57
bodie_rogpeppe, perhaps a good approach would be for charm to expose some methods for generating mock charms for core tests that need to integrate with charm16:58
bodie_(looking forward)16:58
rogpeppebodie_: that's another decent approach that might be good16:59
rogpeppebodie_: the only down side is that if every test is doing that, it can lead to a lot of disk churn16:59
rogpeppebodie_: a lot of tests don't really care about the details of the charms - they just need *some* example charm to reploy17:00
rogpeppedeploy17:00
bodie_heh, was still mid comprehending your thoughts17:00
* bodie_ scribbles "listen better" note with all the others17:01
bodie_I'm not really seeing how that solves the problem since it's like turning the deps inside out, where clients must define the interactions they expect with charm.  but I don't really have an opinion either way yet -- I was thinking of generating in-memory fake charms though, but I didn't think about how much file interaction there is with charm17:02
rogpeppebodie_: another thing it might be interesting to do is make it easier to have an all in-memory charm17:02
rogpeppebodie_: ha17:03
bodie_+1!  brb, meeting17:03
rogpeppebodie_: i think it depends how one thinks of the testing charms17:03
rogpeppebodie_: i think of them like they're testing data - a test wants to see what will happen when we do something with a given charm. it could specify that charm in the testing code, or as external data.17:04
rogpeppebodie_: the external-data approach is arguably more readable, as the charm's in the form that it is usually specified17:05
bodie_rogpeppe, maybe it's as simple as having a function that cranks out a memory representation of the charm files, and then loads them as if they were a "real" charm file17:06
rogpeppebodie_: but the in-testing-code is more flexible17:06
bodie_it's dumb, but it could be an easy out17:06
rogpeppebodie_: it's easy enough to do17:07
rogpeppebodie_: apart from the 100s of tests that would need changing in juju-core17:07
rogpeppebodie_: and it's the thought of that that leads me to suggest a half-way house, where juju-core has its own charm testing repo17:08
rogpeppebodie_: so then we don't need to change all those tests17:08
rogpeppebodie_: (assuming we get juju-core to prime the charm package on the location of the juju-core charm repo)17:08
=== kadams54 is now known as kadams54-away
=== tvansteenburgh is now known as tvan|lunch
wwitzel3voidspace: updated the test to exercise the rsyslogHosts conditional logic18:08
voidspacewwitzel3: looking18:10
voidspacewwitzel3: LGTM18:11
wwitzel3voidspace: thanks18:13
mgzupdate on ppc blocker, bug 138885318:13
mupBug #1388853: ppc64el unittests consistently fails <ci> <ppc64el> <regression> <test-failure> <juju-core:Triaged> <https://launchpad.net/bugs/1388853>18:13
mgzthe crash stuff is dealt with by having a newer compiler than is available in trusty, our test machine has this18:14
mgzif needed, ppa:ubuntu-toolchain-r/ppa can get you one as well18:15
mgzthe remaining failures documented in that bug seem like ppc-specific test issues which just need fixing, naming of arch/tools issues and such like18:15
alexisbnatefinch, can someone in the appropriate timezone take a look? ^^^18:16
mgzI can tell anyone who wants to take it up how to get on our actual ppc machine if needed18:16
alexisbmgz, can you make sure there is an updateint he bug18:16
mgzalexisb: yeah, I'm also going to close the previous bug as that just got very confused18:17
natefinchalexisb: yep18:19
natefinchmgz: writing up how to get on our PPC machine in a place we can easily find it would be very useful18:19
mgznatefinch: we don't have a general machine for playing on, just the one we use as the jenkins slave18:20
mgzalexisb, natefinch: added details to the bug18:33
natefinchmgz: thanks18:41
voidspaceg;night all18:59
=== tvan|lunch is now known as tvansteenburgh
katcoericsnow: i may be looking at this wrong, but it looks like my review request didn't have a diff generated? http://reviews.vapour.ws/r/327/19:43
ericsnowkatco: yeah, look like it :(19:43
ericsnowkatco: that still happens infrequently19:43
katcoericsnow: did i do something wrong/different, or is that a known issue?19:44
ericsnowkatco: it happens infrequently enough that I haven't looked into it19:44
ericsnowkatco: not your fault19:44
katcoericsnow: k, ty sir :)19:44
ericsnowkatco: you can still use rbt to post the patch19:45
katcoericsnow: righty-o19:45
=== kadams54 is now known as kadams54-away
menn0waigani: morning20:17
waiganimenn0: morning20:19
katcoam i correct in assuming landings are blocked?20:19
menn0yes they are20:19
menn0due to bug 138885320:19
mupBug #1388853: ppc64el unittests consistently fails <ci> <ppc64el> <regression> <test-failure> <juju-core:Triaged> <https://launchpad.net/bugs/1388853>20:19
katcook, thanks menn020:19
katcoyeah, figured, but wanted to ask just to be sure20:19
menn0martin has done a good analysis. the problems looks pretty simple to fix so i'm going to have a go.20:19
katcogood luck, menn0. may the source be with you.20:20
mwhudsongood morning20:21
menn0mwhudson: howdy20:21
mwhudsonsomeone put "dummy-admin dummy-admin just now just now" in the expected output of a test?20:22
menn0mwhudson: someone has20:22
mwhudsonoh dear20:23
mwhudson(well, unless the test uses a synthetic time source, which it apparently doesn't...)20:23
menn0mwhudson: and it could even be thumper ...20:23
menn0mwhudson: although I think I might have reviewed that one20:23
mwhudsonin a way that's good because i have no problems with telling thumper that he's done something stupid :)20:24
menn0LOL20:24
mwhudsonwhereas i might be a bit more circumspect with someone i didn't know so well :)20:25
menn0i'll fix that and have a look at the other problem too20:25
menn0although I can't get that to happen on my machine20:25
menn0I suspect you actually need to be on a ppc64 host20:26
mgzmenn0: I can tell you how to access the jenkins build slave if that would help20:26
menn0mgz: i have a few ideas to try first but could you send me the details anyway20:28
mwhudsonmenn0, waigani, davecheney: email standup i guess?20:30
menn0mwhudson: unless you would prefer otherwise?20:31
waiganiI'm easy either way20:31
mwhudsoni am currently in a cafe on extremely slow 3g so email sounds good :)20:31
waiganiemail it i20:31
waiganis20:31
menn0cool20:33
=== kadams54-away is now known as kadams54
mgzmenn0: https://pastebin.canonical.com/11981720:40
menn0mgz: cheers20:44
waiganimenn0: I may have hit a chicken and egg21:24
menn0waigani: in what way21:24
menn0?21:24
waiganimenn0: there is a settings doc which uses a global env key as it's key21:25
waiganimenn0: it holds the configuration for the environment21:25
waiganimenn0: the key is now perpended with the env-uuid21:26
waiganimenn0: and the doc exists, with a docID _id, before the upgrade step is run21:27
waiganimenn0: so during the upgrade step, it gets perpended with the env-uuid again21:29
waiganimenn0: and the test also fails as len(oldDocs) != len(newDocs) - that one I can fix easy enough21:30
katcowallyworld_: noooot sure what happened, rejoining21:30
menn0waigani: give me a sec21:30
menn0waigani: ok21:32
waiganimenn0: yep, went you get a sec - does it jog anything from the workarounds you had to do?21:32
menn0waigani: sounds like you might need to add another little hack21:33
menn0waigani: but i'm not clear on why the env-uuid gets added twice21:33
menn0waigani: can you explain that?21:33
waiganimenn0: good question, give me a sec I'll see...21:34
waiganimenn0: because I used the global env key in one of the dummy docs to migrate.21:36
waiganimenn0: so if I remove that and make the test expect len(oldDocs) + 1, the test should pass21:37
waigani or remove the envion doc from the newIDs returned...21:39
waiganiah no, okay I'll stop thinking out loud and sort this21:40
menn0waigani: ok. let me know if you need a sounding board again :)21:40
waiganimenn0: thanks :)21:43
menn0This is one half of fixing the CI blocker. can someone PTAL? http://reviews.vapour.ws/r/329/21:48
davecheneymenn0: can you just delete the check fo rthe duration21:49
davecheneyit's unknowable21:49
natefinch+121:50
menn0davecheney, natefinch: but I've made the test accept any possible duration. is that not ok?21:50
menn0at least then the test ensure that we're getting the right shaped output21:51
davecheneymenn0: fells like solving the wrong problem21:51
davecheneynow that test will fail when tim changes the printing of an _arbitrary_ duration21:51
menn0but if I do that there's nothing testing that the duration emitted by "user list" is sanely formatted at all!21:54
menn0davecheney: ^21:55
menn0davecheney: or put another way, there's nothing test that the duration formatting function is in use21:55
menn0testing even21:56
natefinchthis is why I like internal tests ;)21:57
menn0davecheney, natefinch: as this is becoming yet another testing debate and I just want to get this CI blocker sorted so that I can get back to useful work I will just do as you ask21:59
natefinchmenn0: for the record, I'm ok with either fix21:59
davecheneymenn0: natefinch same22:02
menn0natefinch, davecheney: so what, leave the branch as it is?22:03
menn0I just started relaxing the regex further22:03
natefinchmenn0: I put a ship it on it22:03
menn0ok22:03
davecheneymenn0: do the absolute minimum required to get the test passing22:06
davecheneyas you say22:06
davecheneythis is a pointless testing debate22:06
davecheneyone of N22:06
menn0thanks. i've sent that off for merging.22:07
menn0now for the other half of the ticket.22:07
wallyworld_menn0: i can pick up the ppc64 test failure22:23
katcowallyworld_: fwiw i had to clear out my cookies... looks like time-changes mess with something w/ google apps22:23
wallyworld_\o/22:23
katcowallyworld_: the time changes from brussels probably triggered it on my laptop, daylight savings time for my main comp22:23
* katco shrugs22:23
* wallyworld_ shrugs too22:24
katcosoftware!22:24
menn0wallyworld_: ok. it looks related to your changes from yesterday.22:24
wallyworld_menn0: yep - i had to add extra metadata to account for 1.20 being wrong but clearly when run on non amd64, the expected list of metadata entries is different22:25
menn0wallyworld_: the fix for the other part of the ticket (TestUserList) just landed22:27
wallyworld_menn0: awesome, ty22:27
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
lazyPowerRan into an interesting AWS issue with a customer that I've not seen before - if anyone has a moment to take a look - https://launchpad.net/bugs/138901423:34
mupBug #1389014: juju AWS EC2 "unit-get public-address" gives private address  <juju-core:New> <https://launchpad.net/bugs/1389014>23:34
davecheneylazyPower: is the custoemr using vpc23:41
davecheney?23:41
davecheneythemonk@redqueen:~$ juju run -e amazon --service my-charm1 "unit-get public-address"23:41
davecheney172.31.4.3223:41
davecheney^ how did this work23:41
lazyPowerdavecheney: no idea its themonk in #juju though23:41
lazyPowerexactly!23:41
lazyPowera) how do you get an IP, b) how do you get the *same* ip23:42
davecheneyhow was their server able to contact 172.31.4.32 ?23:42
davecheneythat is a private ip23:42
lazyPowerand c) how do you get a private ip23:42
davecheneylazyPower: juju just returns whatever the aws metadata services tells it23:42
davecheneyso if aws says you'r ip address is 1.1.1.123:42
davecheneythat's why juju knows as well23:42
lazyPowerdavecheney: <themonk> lazyPower, what is 'provisioned in a VPC' ?23:44
lazyPoweri'm going to say the answer is probably no...23:44
lazyPowerdavecheney: do you have a minute to pop in #juju and interface with themonk over his AWS issue? If not no biggie - he's got an open bug that he can track.23:46
davecheneycurl http://169.254.169.254/latest/public-ipv423:46
davecheneythis is what juju does23:46
davecheneyjoin #juju23:46
=== kadams54 is now known as kadams54-away
davecheneyurgh23:46
davecheneysorry, i thought I was in that channel23:46
davecheneyi have so many called #juju23:46
lazyPowerall good davecheney :) I have the same issue between canonirc and freenode. so i know the feeling.23:47

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