/srv/irclogs.ubuntu.com/2015/04/22/#juju-dev.txt

thumperwallyworld_: ack00:23
wallyworld_thumper: thanks for review01:47
thumpernp01:48
=== kadams54 is now known as kadams54-away
stokachuif i wanted to query AllMachines from the state package is there a preferred method of accessing that data? i used to do a juju.NewConnFromName which would expose that state api04:31
stokachui can't seem to find an alternative way now since that has disappeared04:31
thumperstokachu: hmm...04:36
thumperstokachu: where and why?04:37
thumperstokachu: short answer is you should use the client API04:37
thumperstokachu: which you should be able to get the machine information out of04:37
thumperusing the status command04:37
thumperhmm... 16:30 and brain is going fuzzy04:38
thumperabout 3-4 hours later than yesterday04:38
stokachuthumper: yea that's what im using now, im just updating https://github.com/battlemidget/juju-sos/blob/master/cmd.go04:38
stokachuto work with latest juju code04:38
stokachuill push everything through the api though, makes more sense anyway04:38
thumperstokachu: yeah, juju.Conn isn't the way04:38
stokachuthumper: cool, thanks for confirming the api client04:39
thumperstokachu: also, change the logger to be 'juju.cmd.sos'04:39
stokachuah ok will fix that too04:39
thumperor04:39
thumperjuju.plugin.sos04:39
thumperfairly arbitrary definition04:39
thumperplugin probably makes more sense04:39
stokachuok sounds good ill fix that too04:40
thumpercheers04:40
stokachuthanks :)04:40
thumpernp04:40
dimiternjam, dooferlad, please take a look http://reviews.vapour.ws/r/1465/ - follow-up to the branch from yesterday, this time adding tests08:53
dooferladdimitern: *click*08:55
dimiterndooferlad, ta08:56
jamdimitern: why are we getting "not supported" rather than "EPerm" for NewMachineTag("42") ?09:11
jamit makes me wonder if we should be doing the address check later.09:11
jamI'm not particularly worried about it, just made me wonder09:11
dimiternjam, well, it is a valid tag - why ErrPerm?09:16
jamthe machine exists?09:16
jam(because we don't do NotFound09:17
jam)09:17
dimiternjam, it does not exists, but that's fine, because you're not supposed to call the method at all without the feature flag09:18
jamdimitern: yeah, seems ok09:21
jamyou're not leaking information about a particular entry09:21
dimiternjam, cheers09:21
dimiternjam, actually that issue you raised was bugging me as well for its behavioral inconsistency, so I'm changing it to return results with the same len as the passed args when the flag is not on09:38
* fwereade has so far found 27 workers running in the machine agent for one reason or another and knows he's missing some :/10:19
mattywdimitern, are you around for a quick review? http://reviews.vapour.ws/r/1466/11:04
mattywdimitern, (I'm ocr today so I can't do it)11:05
wwitzel3perrito666: ping11:14
perrito666wwitzel3: pong11:38
wwitzel3ericsnow: ping11:47
fwereadeperrito666, I'm wondering if you'd know: is the limitLoginsDuringRestore stuff goroutine-safe?11:49
perrito666I think it is11:50
perrito666fwereade: btw, hi :)11:50
fwereadeperrito666, can you point me to how it is? all I can see are a bunch of unprotected fields in the agent, and callbacks to methods using them in the api server11:51
fwereadeperrito666, hi indeed :)11:51
dimiternmattyw, sure, will have a look in a bit11:52
perrito666fwereade: can you ask me again tomorrow I really really am trying to fit something into 1.24 for ian11:52
fwereadeperrito666, sure, np11:52
mgzhm, the pre-push hook doesn't check that the *tests* build11:56
dimiternmattyw, this just occurred to me: the reason why you're getting 2 events on linux and only 1 on windows might be because windows does not run the apiserver (yet), where the server-side watcher resided11:56
mattywdimitern, windows doesn't run the apiserver?????11:56
dimiternmattyw, well, not that I know of - bootstrap is not supported on windows and there's some issues around packaging mongo with ssl on windows11:57
dimiternmattyw, reviewed11:57
mattywdimitern, cheers11:59
mattywdimitern, what do we do in tests then under windows?11:59
dimiternmattyw, but then again - this could have nothing to do with windows not running an apiserver11:59
dimiternmattyw, we test we can use a juju client on windows to talk to a bootstrapped environment on ubuntu12:00
jamdimitern: fwereade: you coming to the malta powow?12:00
dimiternjam, sure, omw12:00
fwereadejam, just a mo12:00
dimiternpow's done, wow's mostly :)12:00
jam:)12:00
mattywdimitern, yeah - I think we're only dealing with state12:00
mattywdimitern, looking into it now - but as you have shown an "interest" it's you I'm coming to if I have questions ;)12:01
dimiternmattyw, no sweat :)12:01
jamdimitern: I'm pretty sure you can at least run the infrastructure of the API server on Windows.12:02
jamI'm not sure that "jujud' runs, but that is different12:02
mgzwwitzel3: did you mean to remove all the windows deps in your gosigma dependencies.tsv update?12:27
wwitzel3mgz: nope :(12:43
mgzwwitzel3: happened to not go through anyway, so easy enough to fix12:43
wwitzel3mgz: yep, already fixed, thanks12:44
fwereadedimitern, jam, anybody: this is my current best guess at the workers we might run in a machine agent: http://paste.ubuntu.com/10865749/12:55
dimiternfwereade, looking12:55
fwereadedimitern, jam, annybody: I know it lacks detail and/or existence in several bits where one worker spawns many others (eg container provisioning, per-env provisioners, etc)12:55
fwereadeany suggestions, clarifications, additions gratefully received12:55
dimiternfwereade, sure, will let you know12:56
jamfwereade: my irc client seems to have not buffered the original request, I'm interested to look, but can you link it again?12:57
dimiternfwereade, you've missing one of the most recent ones - worker/addresser12:57
fwereadejam, http://paste.ubuntu.com/10865749/12:57
dimiternfwereade, runs on each master state server (like cleaner, resumer)12:58
fwereadedimitern, is that a *new* worker that uses a direct state connection? grrbml grrmbl12:59
dimiternfwereade, also the workers in worker/provisioner are fairly twisted, but I know most of their deps from my dealings with lxc containers12:59
dimiternfwereade, it's supposed to be run on the state servers only12:59
fwereadedimitern, I have high hopes that one day we will have a simple provisioner that is no more or less than a watcher/broker adapter13:00
fwereadedimitern, it's still something reaching into the database directly13:00
dimiternfwereade, and it needs cloud creds as well13:01
fwereadedimitern, and?13:01
dimiternfwereade, the addresser13:01
fwereadedimitern, let's not violate layers unless we have to13:01
dimiternfwereade, +113:01
fwereadedimitern, nothing should touch state apart from the apiserver itself13:01
dimiternfwereade, but frankly it's not worse than the resumer and cleaner13:01
fwereadedimitern, they should have been done in the initial pass as well13:02
fwereadedimitern, not sure why they weren't13:02
fwereadedimitern, api-everywhere was quite the goal for us at one point13:02
dimiternfwereade, because we said "meh - it's only on the apiserver, so it's fine"13:02
fwereadedimitern, the apis might be simple, but that's no reason to drop the benefits13:03
fwereadedimitern, there's no *general* statement that particular workers must be bound to particular machines13:04
dimiternfwereade, agreed, however it's easy to introduce apis for such cases at any point13:04
jamfwereade: TerrifyinglyExtremeSuiciderName  :)13:04
fwereadedimitern, every time we make a choice like that we add to the friction and make it harder to move the workers from one place to another easily13:06
fwereadedimitern, please add a card to move the new one behind an api (and if you can bear to add 2-method apis for the others, that would be awesome...)13:07
dimiternfwereade, will make a note of it, ok13:07
fwereadedimitern, cheers13:08
ericsnowwwitzel3: pong13:45
mupBug #1447174 was opened: state crash with juju terminate-machine --force X <juju-core:New> <https://launchpad.net/bugs/1447174>13:48
sinzuidimitern, can you read my addition (a comment) to the proposed 1.23.1 release notes about the feature flag? https://docs.google.com/document/d/1JApj2hsEwKKmAqDmIayGrZ1fkKNPQWvyDmv_bKOcQek/edit14:31
dimiternsinzui, sure, will look in a bit14:32
sinzuidimitern, the release is actually live for some people. Can you look now?14:32
dimiternsinzui, ok, looking now14:33
dimiternsinzui, looks good14:41
sinzuithank you dimitern14:41
ericsnowcherylj: I left a short review on your "system" command patch14:43
ericsnowcherylj: basically, "system" is pretty ambiguous, but simply making the doc for the command more explicit will be sufficient to address that IMO14:44
cheryljericsnow: thanks for the feedback.  There have been discussions around "server" vs. "system", and things landed on "system".  I'll see if I can make it clearer.14:51
ericsnowcherylj: I think "system" is fine as long as we are clear about its context (in documentation and help strings)14:51
wwitzel3mgz: can you stop #2915 build, it is missing a commit15:18
mgzwwitzel3: done15:19
wwitzel3mgz: ty15:19
=== urulama is now known as urulama|afk
mupBug #1447174 changed: state crash with juju terminate-machine --force X <terminate-machine> <vivid> <juju-core:New> <https://launchpad.net/bugs/1447174>15:42
=== kadams54 is now known as kadams54-away
perrito666wwitzel3: hey, do you currently have a vmaas for testing?15:55
perrito666http://pastebin.ubuntu.com/10866692/ <-- I am trying to bootstrap my vmaas and getting this, Ill try master to see if it is my branch, but looks like not15:56
mupBug #1447234 was opened: juju prints "error" when deploying yet no units are in error <charms> <improvement> <set> <juju-core:Triaged> <https://launchpad.net/bugs/1447234>16:03
mupBug #1447235 was opened: add stdin support to "juju set" <juju-core:New> <https://launchpad.net/bugs/1447235>16:03
=== dpb1_ is now known as dpb1
wwitzel3perrito666: yeah, I have one17:00
perrito666wwitzel3: could you try to deploy master and tell me if it works or you get the error I pasted above?17:32
wwitzel3perrito666: yep, I can give that a shot17:36
wwitzel3perrito666: working just fine so far17:37
wwitzel3perrito666: what version of maas?17:37
perrito666mm, good question, I had to kill it to get resources in the machine, but ill look as soon as I finish running tests17:38
perrito666wwitzel3: if it reaches the end ofbootstrap succesfully then its ok, and it is most likely something in my vmaas17:39
perrito666tx a lot btw17:40
wwitzel3perrito666: same failure17:40
perrito666ok, so I am not crazy, if I had to guess I would say that the changes merged in the sprint to support centos broke that17:42
* perrito666 looks at gsamfira 17:43
wwitzel3perrito666: I'm trying 1432affde02cd81b354871d679804beca9bbe21a right now17:46
wwitzel3perrito666: yeah, so it is after 1432affde02cd81b354871d679804beca9bbe21a if you want to do a git bisect, probably an easy find17:49
perrito666wwitzel3: tx a lot, I think Ill try after I finish this17:49
gsamfiraperrito666: pinging bogdanteleaga17:52
perrito666gsamfira: I am not saying it was that, it is just an educated guess17:53
gsamfiraperrito666: I think I know where the problem is. Should be an easy fix.17:53
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== arosales__ is now known as arosales
wallyworld_thumper: got a minute?23:44

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