/srv/irclogs.ubuntu.com/2016/09/14/#juju-dev.txt

wallyworld*so00:00
menn0wallyworld: I look forward to cleaning that up. the code in the area pissed me off last time I made changes there.00:00
menn0:)00:00
wallyworldlol00:01
wallyworldgood to clean up shit which pissed you off00:01
perrito666Eschatological refactoring, interesting00:01
wallyworldmenn0: the thing to bear in mind is that we filled a 32GB root partition with repeated charm deploy/model removal for a few users on a few models00:02
wallyworldso if we see a pathway to fix that then good00:02
wallyworldthis is a step in the right direction00:02
wallyworld"Eschatological" is a fancy word00:02
menn0wallyworld: well with will's improvements and the removal of the cache we should be good then00:02
wallyworldmenn0: i'll believe it when i see it - this is a very large whack a mole i fear00:03
perrito666It's not so weird in Spanish00:03
wallyworldi don't even know what it means, will need to look it up00:03
perrito666Wallyworld https://en.m.wikipedia.org/wiki/Scatology00:05
perrito666Apparently in english they use different words in Spanish is the same word for all meanings00:05
wallyworldoh i know what that word means00:05
wallyworlddidn't recognise the one starting with "e"00:06
perrito666So yes we share a word for shit and religion aren't we cool00:06
wallyworldsame thing :-)00:06
menn0wallyworld: i'll do some checks on disk usage with some large bundles after all the changes are in and see00:07
wallyworldsgtm, ty00:07
anastasiamacperrito666: apparently a fetish for some ppl according to that reference00:08
alexisbthumper, wallyworld you guys around00:29
thumperI am00:29
wallyworlddepends who's asking :-)00:29
alexisbcan you join a quick HO?00:29
alexisb:)00:29
wallyworldsuppose so00:29
alexisbmeet you in a-team00:30
thumperack00:30
mupBug #1623275 opened: neutron-gateway juju-agent lost forever <juju-core:New> <https://launchpad.net/bugs/1623275>00:38
menn0axw: review done00:47
menn0phew00:47
anastasiamacmenn0: so just to make sure u r having fun, here is the simple scream one as promised - http://reviews.vapour.ws/r/5674/00:56
anastasiamacaxw: wallyworld: if u r feeling exceptionally generous ^^00:57
redirbbiab00:57
wallyworldi'll take a peek in a bit00:57
anastasiamacmenn0: i tried to have logically grouped commits for the ease of perusing :)00:57
anastasiamacmenn0: and another 1-liner :) http://reviews.vapour.ws/r/5675/01:08
axwmenn0: TYVM01:10
=== mup_ is now known as mup
menn0anastasiamac: i've got a few jobs to do but I'll get to those soon01:20
menn0wallyworld: ship it01:27
wallyworldawesome, ty01:27
anastasiamacmenn0: sure thing! tyvm ;)01:34
thumperwallyworld, menn0: big but boring http://reviews.vapour.ws/r/5676/01:45
wallyworldthumper: like you :-)01:46
thumperoh you so funny01:46
axwthumper menn0: re http://reviews.vapour.ws/r/5676/, why no access levels in core/description? do we not migrate access?01:48
thumperaxw: we do, but as string values01:49
thumpernot special Access type01:49
thumpercore description is all about being able to describe the model for export01:49
thumpernot a generic "stick it here" type package01:49
thumperspecific small packages for specific things is good01:50
axwthumper: but access *is* part of the description of a model?01:50
thumperit is an attribute of users, sure01:50
thumperthat is still there01:50
thumperbut the type for Access should live elsewhere01:50
axwthumper: I don't see why. If you have access there in core/description, but as a string, you're just making it stringly typed. It would be nice to retain some type safety in the core description - this will matter if we start using core/description for more than just exporting01:54
wallyworldaxw: i'll make that api change for cloud tags, ok?01:55
axwwallyworld: yes, thank you01:55
* wallyworld gets food first01:56
axwwallyworld: probably need to let mhilton know01:56
wallyworldaxw: yeah, jeff is all set to make his upstream changes sod tomorrow01:56
axwcool01:56
thumperaxw: core/description needs to be able to handle old and new format values, if we tie types in there, we could limit our ability to do this easily01:57
thumperI just don't think it is the right place for that01:57
thumperyes we need some business object tier01:57
thumperbut I've become increasingly sure that core/description isn't it01:57
axwthumper: fair enough then. perhaps "core description" is not the best name for it then - that implies to me that it's *the* canonical representation01:58
thumperI actaully want to move core description out of juju/juju01:58
thumperugh...02:01
thumperI now have two branches that I know will conflict02:01
* thumper waits for the first to land02:01
natefinchmenn0: pong02:04
natefinchmenn0, wallyworld: saw your comments on the review02:05
natefinchmenn0, wallyworld: the main reason to keep track of how the value was constructed is so that error messages make sense.  otherwise you get something like this:02:05
natefinchjuju deploy --constraints=cpu-cores=3 --constraints=cpu-cores=402:06
natefinchERROR: bad 'cores' constraint: already set02:06
wallyworldisn't that a corner case though?02:07
natefinchthere's a lot of ways validation can fail02:07
natefinchand they all specify the value that failed, which won't be in the list of things you set02:08
natefinchI agree, it's a lot of complication.  I almost didn't do it.02:08
wallyworldhmm, i see your point. i wonder what others think02:08
menn0sorry otp, almost done02:10
natefinchMy other option was to print out a deprecation warning at the beginning, but that gets clunky fast, if we do any more of these aliases.02:11
natefinchWarning: the "cpu-cores" constraint is deprecated in favor of "cores"... etc02:12
wallyworldnatefinch: that's the approach we have taken for config attributes and is one i like02:13
wallyworldlets the code stay simple, the majority of cases works nicely without cruft, but does alert the user to change what they type02:14
wallyworldand it's not like there will be 100s of deprecations02:14
menn0wallyworld, natefinch: i'd prefer the deprecation warning too02:15
natefinchok... undo undo undo :)  Simpler is better, I agree.02:16
menn0natefinch: sorry :)02:16
natefinchmenn0: nah, it's the right call. I was doing that, but then I was halfway to just having the right error message anyway, so I kept going. Except of course, I wasn't really half way, I was like 10% of the way, I just didn't realize it yet :)02:17
axwwallyworld: I don't suppose you'll have any bandwidth for a second review on my branch today?02:18
wallyworldaxw: just for you02:19
axwwallyworld: thanks. no rush, any time later on02:19
axwgoing to look at credentials now02:19
wallyworldaxw: ok, will do it real soon02:19
natefinchmenn0, wallyworld: one question - I noticed HardwareCharacteristics has cpu-cores.... it wasn't specified in the bug, but I presume we want to make that match the constraint02:29
wallyworldnatefinch: i think so02:31
menn0natefinch: good catch. yes, that should probably match02:33
natefinchwallyworld: btw the reason I wasn't going to change the field name on the struct is merely to keep the change smaller.  The name of the field is still close enough to the name it is serialized as, that I don't think it's worth the churn.02:35
axwwallyworld: re http://reviews.vapour.ws/r/5674/: I *think* what anastasiamac's doing is going in the right direction. ImageMetadata.Stream shouldn't really be there, because it's not actually part of the simplestreams format at that level02:35
wallyworldi can go either way02:35
axwwallyworld: moving it up to the "resolve info" feels more natural to me, because it's meta-metadata02:36
=== blahdeblah is now known as blahdeblah-lunch
wallyworldaxw: ok, i need to look at it again02:36
wallyworldaxw: the issue is that resolve info is about a location/source of metadata. not necessarilty the stream from which is came02:37
wallyworldbut maybe in practice there's 1:102:37
axwwallyworld anastasiamac: hrm, I think it's only 1:1 because of this: https://github.com/juju/juju/blob/master/environs/simplestreams/simplestreams.go#L64002:40
axwwallyworld anastasiamac: that looks to me like we're picking an arbitrary stream, when multiple are specified. is that right?02:41
anastasiamacaxw: well, source and stream are 1:102:41
axwso things will only work properly if you do a lookup with one stream. which I think we always do anyway02:41
anastasiamacaxw: what we are picking here is only location out of potentially many matches02:41
wallyworldaxw: right, from memory, the assumption was that index files would only contain one product stream. and we currently rely on that. but it's not guaranteed02:42
anastasiamacrelationship between source and stream is still 1:1 if you look at products files... stream is defined on content id which there is only one of per file02:42
wallyworldlocations are not 1:1 with stream02:42
wallyworldin the model02:42
wallyworldand yet now we would be hard coding that faulty assumption02:42
anastasiamacmaybe not in the model but m looking at the actual files we have in simple streams... streams are on content id and there is only one content id02:42
wallyworldthat's the way they have chosen to make the files currently, but it can be different02:43
wallyworldand if it changes we will break02:43
anastasiamacwallyworld: pla point me to a file which has n=more than one content-id02:43
anastasiamacplease*02:43
axwah right, because we have a different URL for daily02:43
wallyworldi'd have to go digging to find one02:43
wallyworldwe used to have them02:43
wallyworldwe may have moved on to differentiating using url02:44
wallyworldi just fear that we are making assumptions based on an implementation artifact, not the true streams model02:44
axwwallyworld anastasiamac: the other option would be to have GetMetadata return a map, keyed on stream02:44
anastasiamacm looking at code and data. how is it hard-coding worng assumption?!02:45
wallyworlddata does things one possible way, not the only way02:45
axwanastasiamac: the point is that index.json *could* have multiple product IDs02:45
axwanastasiamac: it works now because they only have one. but that can change02:45
wallyworldmay not change, but if it does we will break02:46
anastasiamacaxw: sure. but m getting stream from a content id of selected product02:48
wallyworldhere's one http://streams.canonical.com/juju/tools/streams/v1/index2.json02:48
anastasiamacwallyworld: that's index file. m talking about product files02:49
anastasiamaccontent id of product02:49
axwthe content ID is in the index as well. that's where we start02:49
anastasiamacthat content id is notnecessarily the one we match on, we also look in products files02:50
anastasiamacthis is why in simplestreams.go, l987 in my PR, function getLatestMetadataWithFormat deals with content id of the selected block02:51
wallyworldi can't find one at the moment02:51
anastasiamachappy to ho if it's easier for u02:51
anastasiamacwallyworld: i don't hink there is one02:51
axwanastasiamac: IndexReference.GetProductsPath does filter on product IDs in the index02:52
wallyworldthere may not be currently02:52
anastasiamacu can have more than on product block (and content id) on index file but nor in product file02:52
axwanastasiamac: and that's where we're doing the "Pick arbitrary match"02:52
axwwallyworld anastasiamac: the current code would be broken with multiple products in an index too, except if we specify a stream in the constraints02:52
anastasiamacyes, that will get u a block of products, the method that i refered to, has htis under one metadaat and I work with content id in this metadata02:53
wallyworldthat is true02:53
wallyworldi think we always pass in  a stream02:53
wallyworldan issue for me is the mixing of concerns02:53
wallyworldresolve info and stream02:53
axwanastasiamac: you only have one metadata *because* of that "Pick arbitrary match"02:54
natefinchwallyworld, menn0: oh, weird... https://github.com/juju/juju/blob/master/instance/instance.go#L63  yaml and json names differ02:54
anastasiamaccurrently stream is not at the right level, stream is a product concern (product can have many items)02:54
anastasiamacwe do not have abstraction for products only resolve info and items02:54
wallyworldthe stream on item is a denormalisation from memory02:54
anastasiamacit never worked because stream was never pulled from product02:55
axwanastasiamac: IMO, the best thing to do would be to have GetMetadata return a map of stream->[]metadata02:55
wallyworldnatefinch: you found the deliberate typo we left in there :-)02:55
menn0natefinch: ick... I think using dashes is better02:55
axwand remove environs/imagemetadata.ImageMetadata.Stream02:55
menn0natefinch: but do we want to break people scripts?02:55
menn0people's02:55
anastasiamacaxw: that'd b bigger change.02:56
wallyworldit would be but it corrects the code02:56
anastasiamaci'll abandon my approach, re-target the bug to 2.1 and someone more keen on getting simplestreams sorted can fix it the *right* way02:56
wallyworldwhy not just fix it for rc1?02:56
wallyworldwe have 2 days02:56
wallyworldwell, 1.5 :-)02:57
anastasiamacsure, ian. fix it02:57
wallyworldi have a long todo list today sadly02:57
natefinchmenn0, wallyworld: actually ... I don't think we use that for output: hardware: arch=amd64 cpu-cores=2 cpu-power=550 mem=1800M root-disk=10240M availability-zone=us-east1-b02:58
natefinchmenn0, wallyworld: there's a String() method that does the single line output02:58
wallyworldthat sounds right02:58
natefinchso we may be saved from ourselves02:58
menn0natefinch: I wonder why those tags are there... if they're not used then they should go02:58
natefinchmenn0: the package's tests still pass if I comment them out... I'll do a biggest test run later03:01
menn0natefinch: ok03:03
menn0natefinch: maybe they were used once but aren't any more03:03
natefinchmenn0: could be03:04
=== blahdeblah-lunch is now known as blahdeblah
natefinchdamn frameworks04:14
natefinchJust realized, when there's an error parsing flags, the error is printed out and we never get to the Run function, so I can't print stuff out there to give context to the error from the flag.04:16
* natefinch is gonna have to do something heinous04:24
redirwallyworld: so in `juju model-defaults aws/us-east-1 --reset ftp-proxy` would it always be aws/us-east-1 or might it also be just the region `juju model-defaults us-east-1 --reset ftp-proxy`?04:46
wallyworldaxw: srtrictly speaking, the client.ModelInfo() and client.ModelUserInfo() calls should not be returning params structs. But nothing in juju calls then so I'm not sure if it's worth changing? http://reviews.vapour.ws/r/5677/04:46
wallyworldredir: we need to cater for just the region04:46
wallyworldhence the need to use the cloud api04:47
wallyworldto get the valid regions etc04:47
redirwallyworld: the spec shows the cloud and region04:47
wallyworldredir: it may do, but not exlicitly also showing just the region is an oversight04:48
wallyworldunless i am mistaken04:49
wallyworldfor the single controller case it is not needed04:49
wallyworldand there will always be a current controller04:49
wallyworldso there's always a current default cloud04:49
wallyworldwe don't want to make the user type stuff unnecessarily04:49
redirright04:49
mupBug #1623324 opened: Support for subnets in MAAS created after juju is boostraped <4010> <juju-core:New> <https://launchpad.net/bugs/1623324>04:50
axwwallyworld: if there's no caller, should we just delete the client side code?04:53
wallyworldaxw: hmm, yeah good point04:55
wallyworldi'll double check04:55
wallyworldaxw: yeah, i can't see anywhere04:57
wallyworldthumper: you still going to delete list-shares and tweak the list-users command?05:01
thumperwallyworld: I'll do it in one go05:09
thumperyes, I'll do that one05:09
wallyworldthumper: no problem. i was asking because there is an api on the api/client facade which can be deleted one yourwork is done, the ModeluserInfo() one05:10
wallyworldi am removing the ModelInfo() one05:10
thumperno, because we'll probably still use it05:10
wallyworldok, maybe it can be moved05:10
wallyworldi have a goal to one day remove the client facade entirely :-)05:11
thumperaxw: are you looking at fixing the provisioner so it doesn't do everything one at a time?05:14
thumperI think we should seriously look into that as a solution05:15
thumperI'm looking at another bug (bug 1611111) which it would help fix05:15
mupBug #1611111: Model still exists for a while after running destroy-model <oil> <oil-2.0> <juju:Triaged> <https://launchpad.net/bugs/1611111>05:15
axwthumper: not atm05:48
axwlooking at azure creds changes now05:48
axwwallyworld: that "azure bootstrap experience" card is for creds, I'm moving back to in progress05:49
axw"speed up azure provider" is for current work05:49
wallyworldah sorry, misread05:54
mupBug #1623324 changed: Support for subnets in MAAS created after juju is boostraped <4010> <juju:Triaged> <https://launchpad.net/bugs/1623324>06:26
=== frankban|afk is now known as frankban
axwwallyworld: do you have an azure account?07:31
wallyworldaxw: i do, it was a trial, i think it has expired but i can look to reactivate07:32
axwwallyworld: no worries, can probably just use the CI account07:32
wallyworldgood point07:32
axwwallyworld: I've got a toy app that authenticates interactively and then creates a service principal07:32
axwjust need to make sure it works when I'm using a different AD tenant07:33
wallyworldaxw: oh nice ok07:33
wallyworldwe can try with CI creds I guess07:33
axwwallyworld: ah hm, there are no CI creds published for azure (apart from service principal)07:35
wallyworldoh07:36
frobwareaxw: ping; based on your experience of azure is there anything we can or should be doing regarding DNS?07:40
axwfrobware: I don't recall what the requirements are from charmers around DNS, so hard to say07:42
axwfrobware: can you fill me in?07:42
frobwareaxw: i think my observations are more general though. I'm surprised that, given the machine's name, you cannot DNS resolve it.07:42
frobwareaxw: for example, on AWS I get `ip-A-B-C-D'. The resolver in /etc/resolv.conf can happily resolve the name.07:43
axwfrobware: well, you can resolve using nslookup. it's just that dig doesn't seem to use the search from resolv.conf by default07:43
frobwareaxw: I just don't see that on the images launched on axure07:43
frobwareaxw: ah, ok... let me take another look.07:44
axwfrobware: try "dig machine-0 +search"07:44
frobwareaxw: I wonder if the safest thing for us to do is rely on the results of getent(1).07:45
frobwareaxw: the domain name you get on Azure aspires to hungarian notation. :p07:45
axwfrobware: well, they did invent it :)  sorry, I'm not familiar with getent07:46
frobwareaxw: getent allows you to make queries against database entries in /etc/nsswitch.conf07:46
frobwareaxw: so passwd, or hosts, or dns, or ...07:46
frobwareaxw: e.g., getent passwd $USER07:47
axwmenn0: I'll be a couple mins late08:01
menn0axw: no probs08:01
wallyworldbabbageclunk: hey, this has been raised in priority, can you take a look and see if anything jumps out? the error message sucks and we need to use errors.NotSupportedf() properly, but I wonder why it doesn't detect MAAS 2.0 properly?09:37
wallyworldbug 162318409:37
mupBug #1623184: ERROR MAAS version 1.9 or more recent is required not supported <juju:Triaged> <https://launchpad.net/bugs/1623184>09:37
babbageclunkwallyworld: Sure, I'm looking now09:38
wallyworldty, you may see it and know straight away maybe :-)09:38
wallyworldi attempted to leave a comment that made sense after looking at the code09:39
babbageclunkwallyworld: I think it's a bad endpoint url10:35
wallyworldbabbageclunk: makes sense. we should probably deal with that a bit better, print a more useful message10:36
babbageclunkwallyworld: Yeah, that's what I was thinking.10:36
babbageclunkwallyworld: bit tricky to distinguish between getting getting 404s because the URL's wrong or because none of the versions we support are supported, though. Thinking.10:38
wallyworldbabbageclunk: yeah, i was having the same thought10:38
wallyworldthere must be some validity check on the base part of the url or something10:38
wallyworldsome http get that we can do to check10:39
wallyworldthat works for both 1.9 and later10:39
wallyworldand if that fails, then bad url10:39
babbageclunkwallyworld: ok, I'll try to find something like that.10:39
wallyworldas well as static checks on the url itself10:39
wallyworldjust a thought, you may come up with something better10:40
babbageclunkwallyworld: I'm reluctant to look inside the url10:40
voidspacewallyworld: babbageclunk: there isn't a single endpoint we can check for both versions10:40
wallyworldbollocks, i guess we'll need to try both10:41
voidspacewallyworld: babbageclunk: the official maas response when we requested that was we needed to check the 2.0 endpoint and if it wasn't there we were on 1.910:41
voidspacewallyworld: babbageclunk: if we get an invalid response from both endpoints we should know we're incorrectly configured10:41
wallyworldright, but in this case, we got a false 1.9 error10:41
voidspacewallyworld: babbageclunk: and provide a better error message10:41
wallyworldcorrect10:41
voidspaceinstead of the current misleading one10:41
wallyworldyes10:41
voidspacecool10:42
voidspacea single endpoint telling us the version would be much better though :-/10:42
wallyworldyeah :-(10:42
babbageclunkvoidspace, wallyworld: ok, so that's really just changing the error message in getCapabilities to say that the endpoint's wrong.10:45
voidspacebabbageclunk: sounds like it10:45
babbageclunksweet10:45
wallyworldbabbageclunk: and also fixing the bad use of NotSupportedf10:45
wallyworldfor the 1.9 case10:45
babbageclunkwallyworld: yeah, already done that :)10:45
wallyworld\o/10:45
babbageclunkSomeone give the github -> reviewboard bot a kick?11:50
babbageclunkwallyworld, voidspace: review plz? http://reviews.vapour.ws/r/5680/11:54
wallyworldsure11:56
wallyworldbabbageclunk: +1 with a suggestion12:01
voidspacebabbageclunk: :LGTM12:03
voidspacebabbageclunk: I'm agnostic on wallyworld's suggestion. There are times when it could be helpful, but there's no requirement that the MAAS api needs to be exposed at an endpoint ending with /MAAS12:03
wallyworldok12:04
voidspacebabbageclunk: wallyworld: so there are times when it won't be helpful (probably not hurtful though - so +0 I guess)12:04
wallyworldignore me then :-)12:04
voidspacehah12:04
axwwtf happened to master? there's some code referring to status.StatusBlocked, which doesn't exist any more12:36
=== carlosm_ is now known as udac
axwfrobware: would whatever you're trying to do with DNS on azure be avoided by just encoding the IP in the hostname, like on ec2? ip-n-n-n-n12:39
axwfrobware: i.e. so you can map between them without having to use DNS at all12:39
frobwareaxw: the reverse is still the problem. the big data charms (hadoop et al) want forward and reverse lookup. They are currently fudging their way around things.12:50
frobwareaxw: http://sujee.net/2012/03/08/getting-dns-right-for-hadoop-hbase-clusters/#.V9lHpGQrLDE12:50
frobwareaxw: we can do ip-A-B-C-D, the trouble is nothing has an answer for who-is A.B.C.D.12:51
axwfrobware: I thought that was what the NSS plugin was for?12:52
frobwareaxw: I'm sure babbageclunk made a change around status12:52
axwfrobware: yeah he did, somehow api/deployer is still referring to StatusBlocked. *shrug*12:52
frobwareaxw: right. the plugin will parse names of the format `juju-ip-A-B-C-D'. You get back A.B.C.D. Hadoop says, wtf is A.B.C.D and there is no answer.12:52
frobwareaxw: the plugin cannot be authoritative for arbitrary IP addresses, largely because of the order in /etc/nsswitch.conf.12:53
axwfrobware: ah, ok12:53
axwI thought it always went through that12:53
frobwareaxw: the plugin get 'A.B.C.D' and I have no idea whether that was oringally an juju-ip- form, or something like archive.ubuntu.com...12:54
frobwareaxw: the plugin (desperately) wants to avoid state12:54
axwrighto, makes sense12:54
frobwareaxw: it does go through the plugin. Well, kind-of. I haven't implemented getaddrinfo for ^ reasons.12:55
* axw nods12:56
babbageclunkaxw - maybe someone landed something that was in flight when my rename branch merged?13:00
axwbabbageclunk: the other change came from wallyworld, but it was landed by the bot. bot should stop that from happening. weird :/13:02
axwI'll investigate more tomorrow13:02
wallyworldoops, what have i done13:02
wallyworldoh, bloody merge conflict :-(13:03
wallyworldhow did that get through13:03
axwwallyworld: not your fault. bot weirdness13:06
wallyworldam fixing now.13:06
wallyworldthere was a merge conflict13:06
wallyworldbut i must have missed a couple13:06
babbageclunkI think it must have been queued while mine was building, then mine passed, yours started, then mine was merged.13:06
babbageclunkThen yours passed and was merged - it didn't conflict at the textual level.13:07
babbageclunkMaybe?13:07
babbageclunkStill pretty weird13:08
wallyworldyeah, we were making conflicting changes and it all sort of just landed together13:09
wallyworldbabbageclunk: here is the fix, trivial http://reviews.vapour.ws/r/5681/13:11
babbageclunkLGTM!13:11
wallyworldta!13:13
babbageclunkwallyworld: sorry, I was grabbing lunch when you and voidspace were discussing the URL - you're alright with me leaving the message the way it is?13:15
wallyworldyeah13:15
wallyworldi dropped it13:15
babbageclunkcool thanks!13:15
wallyworldwas just a thought13:15
wallyworldto try and guide the user to the solution13:15
wallyworldif it's an obvious fix13:15
babbageclunkwallyworld: You made me feel bad for the users. What do you think of this message? "Couldn't get MAAS version - check the endpoint is correct (it normally ends with /MAAS)"13:28
babbageclunkwallyworld: suggestions to crispen it up welcomed!13:29
babbageclunktrying to hedge a bit with "normally", but it seems a bit wishy-washy.13:30
voidspacerick_h_: just grabbing coffee, be a few mins late to 1:1 (if you're around)13:30
wallyworldbabbageclunk: lol. maybe even "could not connect to MAAS controller...."13:33
wallyworldthe user doesn't need to be told exacrly what it is trying to do13:33
babbageclunkYeah, true13:33
wallyworldjust what it is trying to connect to13:33
babbageclunkAnd we prefer "Could not" to "couldn't" ?13:34
wallyworldi prefer not using a contraction but ymmv13:34
wallyworldalso13:34
wallyworldif you are going to say normally ends with /MAAS, you'd want to check that it didn;t first13:35
babbageclunkYes, I'm doing that (in some code you can't see)13:35
wallyworldand you'd also attempt to parse the url to tell them it was malformed if that's what the issue is13:35
babbageclunkI think that'll happen already (checking now).13:36
babbageclunkERROR Get httpoo://192.168.150.2/api/1.0/version/: unsupported protocol scheme "httpoo"13:37
wallyworldok13:37
babbageclunkI think we're at numberwang13:38
voidspacerick_h_: sorry about that, managed to accidentally shutdown my system13:41
voidspacerick_h_: I'm around if you are13:41
frobwarebabbageclunk: "cannot determine MAAS version ..."13:46
=== benji__ is now known as benji
rick_h_voidspace: sorry, I cancelled because I'm still on west coast13:56
rick_h_voidspace: coming up on 7am here13:56
voidspacerick_h_: I thought that was likely to be the case - I didn't get a cancellation though, was still on my calendar13:56
voidspacerick_h_: ah well :-)13:56
voidspacerick_h_: morning o/13:56
babbageclunkfrobware: I like wallyworld's reasoning that the user probably doesn't need to know exactly what we're trying to do when we couldn't connect to the controller.13:57
frobwarebabbageclunk: so "determine" was less specific. <shrug>13:58
babbageclunkOh, I think determine's better than get, but not as good as "couldn't connect to MAAS controller".13:59
rick_h_natefinch: ping for standup14:01
babbageclunkcan someone explain the relationship between cloudconfig and cloudconfig/cloudinit? I'm working on bug 1475260 and have a fix that works, but I'm not sure where it should go.15:08
mupBug #1475260: instances cannot resolve their own hostname <juju:In Progress by 2-xtian> <juju-core (Ubuntu):Confirmed> <https://launchpad.net/bugs/1475260>15:08
frobwarebabbageclunk: ping; hostnames and ^ bug: are you testing on maas?15:12
babbageclunkfrobware: no, on lxd - I think the userdata for maas is generated in some completely different way? And it seems like the maas dns ensures that the hostnames are resolvable, right?15:13
frobwarebabbageclunk: right - I was just running some tests... not sure we want managed_etc_hosts15:19
babbageclunkfrobware: On maas?15:19
frobwarebabbageclunk: possibly anywhere... give me a few mins15:19
babbageclunkok15:19
frobwarebabbageclunk: btw, cloud-init for containers is in juju/cloudconfig/containerinit15:20
babbageclunkfrobware: Is that for LXDs inside maas/aws/other provider hosts?15:21
babbageclunkfrobware: as distinct from the lxd provider?15:21
frobwarebabbageclunk: that's for LXD's inside a cloud/maas host15:22
frobwarebabbageclunk: make sense?15:22
babbageclunkfrobware: yup, I think so. Although I'm not sure what I should do in that case.15:22
frobwarebabbageclunk: so my concerns is that you end up with: "127.0.1.1 vmtest.home vmtest" in /etc/hosts15:35
frobwarebabbageclunk: and that we start handing out 127.0.1.115:35
natefinchalexisb: hey, just FYI - whatever bug had been causing my computer to take forever to get make the login screen work is evidently magically fixed (or I happened to twiddle the right config to avoid it sometime in the last few months)15:36
babbageclunkfrobware: ok15:36
babbageclunkfrobware: So what's the right solution?15:38
frobwarebabbageclunk: so maybe a combo of the NSS Juju plugin and a fix to https://bugs.launchpad.net/juju/+bug/162348015:39
mupBug #1623480: Cannot resolve own hostname in LXD container <lxd> <network> <juju:New> <https://launchpad.net/bugs/1623480>15:39
frobwarebabbageclunk: I think we can certainly try that but we should try it with some charms15:40
frobwarebabbageclunk: given the original bug I was trying to understand whether instance is the host (hosting the container), or just containers, or possibly both.15:42
frobwarebabbageclunk: if you don't see the issue in MAAS (2.0) then that's because we have working DNS \o/15:43
frobwarebabbageclunk: as long as "things" handle localhost then manage_etc_hosts: "true" should be fine. but there's work to confirm that.15:44
babbageclunkfrobware: I'm not sure what you mean by "things" handle localhost.15:45
frobwarebabbageclunk: s/w -- all the s/w. :)15:45
babbageclunklolz15:45
frobwarebabbageclunk: what does hadoop do when you tell it, "hey, here's my hostname/address... 127.0.1.1" ....15:46
frobwarebabbageclunk: well, that will obviously be perfectly fine on a single machine.15:46
babbageclunkBut I guess there's a risk that various units will report their address to others as that?15:47
frobwarebabbageclunk: exactly. if you say contact me on 127.0.1.1 then... well... we'd better be living in the same shoe box.15:49
perrito666morning all15:52
natefinchwow, neat.... the visual studio code find/replace window shows you a preview of all the changes that'll be made if you make that find and replace15:52
babbageclunkfrobware: Would you mind commenting to that effect on the bug? Would be good to get input from the bug reporter.15:56
frobwarebabbageclunk: done16:01
babbageclunkfrobware: Thanks!16:01
natefinchahhhhhhhhhhh who makes a field for Memory (RAM) and doesn't tell you what the units are? :/  https://github.com/juju/juju/blob/master/instance/instance.go#L6116:04
alexisbperrito666, you around?16:05
perrito666alexisb: yes I am16:05
* perrito666 feels a bug comin his way16:05
babbageclunkCan someone review this revert? http://reviews.vapour.ws/r/5682/16:58
babbageclunkalexisb asked me to do it.16:58
alexisbperrito666, can you help out babbageclunk pleas17:01
alexisbe17:01
alexisbI need to get testing going again for master17:01
perrito666alexisb: I am reviewing the patch17:01
perrito666babbageclunk: why would you revert https://github.com/juju/juju/commit/693ef8e2d2812df11d24edf35ee4853e7b4c20a2 ?17:02
perrito666babbageclunk: so it will be faster here.17:02
perrito666I would guess you are reverting a full merge so:17:03
perrito6661) what is the full merge being reverted17:03
perrito6662) why, if possible, with a link to a regression bug or at least jenkins failure?17:03
babbageclunkperrito666: I didn't really look at the commits, just reverted all of the ones in the PR.17:03
babbageclunkOk, I'll add those to the description of the PR.17:03
babbageclunk(Actually, alexisb, links to the regressions?)17:04
alexisbbabbageclunk, let me get you the bug17:04
alexisbhttps://bugs.launchpad.net/juju/+bug/162356017:05
mupBug #1623560: Juju rc1 cannot deploy applications to openstack or centos <centos> <ci> <deploy> <openstack-provider> <regression> <juju:Triaged> <https://launchpad.net/bugs/1623560>17:05
alexisb^^^ this is teh regression we need to address17:05
babbageclunkperrito666: Added17:09
perrito666babbageclunk: ship it17:10
babbageclunkperrito666: sweet17:10
perrito666babbageclunk: plus add relevant information to the regression bug please17:10
perrito666and send an email to the author of the offending commit so they lear it from the source17:11
perrito666sorry for raining on your parade :p17:11
natefinchBTW, the easiest way to revert a merge is to do it through the github UI.  That way you're ensured that all you're doing is reverting the merge.... that falls down if there are conflicts, but if there aren't, it basically means there's no need for a real code review.17:12
babbageclunkperrito666: Ok - alexisb said that she'd let them know, but you're right, better to be sure.17:13
babbageclunknatefinch: Thanks, I'll try that next time. (There weren't any conflicts with this one so that would have worked.)17:13
perrito666annyone getting ERROR cannot fetch model settings ?17:19
babbageclunkbye everyone! Have a lovely day!17:19
natefinchperrito666: what's the exact error?17:20
perrito666natefinch: what I just pasted17:21
=== frankban is now known as frankban|afk
natefinchperrito666: oh, weird.  Uh, run with --debug?17:21
perrito666natefinch: found it, changed a slice into an array and forgot to change append into array[i]=blah17:31
natefinchahh17:32
perrito666its interesting how many wrong error cases are being caught by the "upgrading" failsafe, that is going to gives us problems very soon17:34
natefinchug17:35
perrito666the agent lost before idle issue is very annoying17:47
natefinchholy crap.... https://github.com/blog/2256-a-whole-new-github-universe-announcing-new-tools-forums-and-features19:05
natefinchkanban on github.com itself.  real reviews on PRs (bundled comments, approve/request changes etc)19:05
alexisbnatefinch, that would be awesome19:09
natefinchalexisb: totally.  If we used github issues it would be even better, but I'm sure we could make it work with boring old links to launchpad like we've been doing anyway.19:10
natefinchalexisb: dropping our dependence on reviewboard would be nice. We'd have to take the PR reviews on github for a spin, but it seems like there's very little advantage to reviewboard at this point19:11
alexisbyep19:12
natefinchheh, github won't let me start a review of my own code. Boo.19:14
* perrito666 takes reviewboard to the back yard and shoots it20:14
natefinchhaha20:15
perrito666alexisb: natefinchis the bot down?20:15
perrito666my merge request has not been answered20:15
natefinchI saw some merges that hadn't been finished since last night20:16
natefinchsinzui: ^^20:16
natefinchmgz: ^20:16
alexisbperrito666, I will ask I am on with the QA team now20:17
perrito666alexisb: wat does that mean, did you switch teams?20:19
alexisbperrito666, mean I am on teh QA standup20:19
alexisbthey are looking into it20:19
perrito666you are efficient20:19
menn0alexisb: ping?21:02
alexisbheya menn0 just got on with thumper21:02
menn0alexisb: ok21:03
menn0alexisb: I was joining our HO and saw you were in there and then you disappeared21:03
alexisbmenn0, sorry21:03
alexisbok menn0 I am free if you have time to chat21:15
* thumper tries to get some hacking done before next call22:05
axwlooks like juju hit 500 stars today22:56
anastasiamacaxw: which stars?23:01
axwanastasiamac: github23:03
* elmo points at the sky - you know, the stars!23:12
alexisbelmo, lol23:14
redirstanup ?23:15
redirstand even23:16
menn0axw: question about provider/azure/envrion.go line 901. I don't think os.Arch should be handled there. Do you agree?23:41
menn0axw: we don't support Arch Linux instances do we?23:41
alexisbok anastasiamac23:45
alexisbI will meet you in our 1x1 HO23:45
anastasiamacalexisb: k23:45
axwwallyworld: I'm just running all the unit tests now, have already done a live test on this. would appreciate a review ASAP: https://github.com/juju/juju/pull/624723:59
wallyworldsure23:59

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