/srv/irclogs.ubuntu.com/2013/09/04/#juju-gui.txt

=== _mup__ is now known as _mup_
rick_hMakyo: http://jsbin.com/ENIbojO/1/ checking console logs08:05
=== schwuk_away is now known as schwuk
gary_posterrick_h, http://www.tasrestaurants.co.uk/pide.html09:08
antdillongary_poster, Do you by any chance have admin rights for juju.ubuntu.com?09:50
gary_posterno, sorry antdillon 09:50
antdillongary_poster, Thanks09:50
gary_poster...for nothing ;-)09:50
bacadeuring: the wait_for_green effort is not workable.  jenkins is taking over 3 hours to test and land branches.  sinzui and i decided it is best for now to revert your branch.  would you have time to prepare a rollback branch and propose it?09:53
adeuringbac: yes, though "yellow" will help only partially. I think I have meanwhile an idea what is wrong: the core setup. /etc/elasticsearch/elasticsearch.yml allows to set the parameters number_of_replicas and number_of_shards. The default is 5 and 1, respectively, and at least our dev environment has no replicas...09:55
adeuringUsing the value 1 and zero helps. 09:55
adeuringBut I'd like to set this in create_index(), but xould not yet figure out the right parameters...09:56
huwshimiluca__: Icons required: eye, spanner, cog (plus hover states if applicable) and trash can.10:29
adeuringbac: can you have a look here https://code.launchpad.net/~adeuring/charmworld/set_n_replicas_and_shards/+merge/183846  (and please test the branch too ;)10:47
hatchhttp://askubuntu.com/questions/73589/higher-screen-resolution-for-virtualbox10:50
huwshimijujugui: Can I have a review of my inspector changes? https://codereview.appspot.com/13521043/11:13
bacadeuring: i ran your new branch and got:12:07
bacRan 726 tests in 88.575s12:07
bacFAILED (errors=7, failures=4)12:07
bacso it is faster12:08
adeuringbac: great. Can you show me the errors?12:09
bacadeuring: many refer to es client not having 'multi_get'.  http://paste.ubuntu.com/6062400/12:10
adeuringbac: thanks. 12:11
adeuringbac: WHich version of pyelasticsearch is installed on your machine? It's 0.6 on my machine and multgi_get is defined there.12:14
bacadeuring: it is installed by charmworld setup in the venv.  requirements.txt:pyelasticsearch==0.612:16
adeuringweird...12:16
baci do not have it installed in my system python12:16
adeuringbac: right; but it is  strange that class ElasticSearch defines a method multi_get() and we get a failure like this AttributeError... I'm just trying to figure out how this can happen12:20
bacadeuring: i'll drop into pdb and see if i can figure it out12:20
Makyorick_h, https://gist.github.com/makyo/643621512:21
benjiback and adeuring: let me know if there is anything I can do12:21
adeuringbenji: I am really puzlled by most of these errors: http://paste.ubuntu.com/6062400/ If you can reproduce them (using lp:~adeuring/charmworld/set_n_replicas_and_shards) and try to figure out what's causing them -- that would be great.12:23
benjiadeuring: I'll see if I can repro12:24
adeuringthanks12:24
adeuringbe, bac: The last error (in test_search_charm_sort_newest) looks familiar. I think it is caused by search() not using any yorting by defualt.12:25
Makyohatch, huwshimi http://www.popvssoda.com/12:28
bacadeuring: turns out my pyelasticsearch was still 0.4.1.  i didn't do a 'make deps' after it got upgraded12:28
adeuringbac, benji: ah, that explains a few problems ;)12:28
benjiooh12:29
benjideps really should be a dependency of install12:30
benjiadeuring: after a "make deps" I only get one failure: http://paste.ubuntu.com/6062493/12:36
adeuringbenji: cool. can you reproduce this eror more or less reliably? In that case, could you try to add index_client.wait_for-green_status() before the get_:mapping() call in this test?12:38
benjiI'm doing a second run now to see.  If so I'll add that call and see.12:39
bacadeuring, benji: running abel's branch i get only one failure http://paste.ubuntu.com/6062553/12:50
bacdifferent from benji's12:51
benjiheh12:51
benjiand my tests are still slow :(12:51
bacthat test fails in isolation?12:52
adeuringbac: sounds great. I think we need a better test setup here. I can this error too occasionally... I believe that api_search() does not specify any sort order by default.12:52
bacbenji: still slow?  huh.  mine are at 100s or so12:52
benjibac: I haven't checked that one12:52
bacadeuring, benji: also, i have a simple fix to the openid log pollution in the test output12:53
benjiafter a "make distclean"... wait!  I was running in the wrong darn branch12:53
adeuringbenji: did you try to restart the ES server?12:53
benjibac and adeuring: ooh, and I noticed that I have two failures, not one.  And the one I missed is the same bac had12:53
* benji needs to go for a mind-clearing jog or something.12:54
adeuringbenji: I'll look into this "sort issue"12:54
benjibac and adeuring: I get bac's failure when I run that test in isolation12:55
bacadeuring: would you have a look at lp:~bac/charmworld/timeout-values ?  reviewing the documentation it seems for the health checks the timeout values should be strings12:55
* adeuring is looking12:55
bacjcsackett: do you know if sinzui is in today?12:57
bacjcsackett: do you have access to charmworld staging?12:57
bacjcsackett: management access via juju, i mean12:58
adeuringbac: Right, I think I've tried this before but then thought that I could specify integers (meaning milliseconds) too. But explicitly speicfying a unit sounds reasonable.12:58
bacadeuring: other calls indicate they want an integer specifying seconds not milliseconds12:59
bacadeuring: please merge that branch into yours for a single landing if you agree12:59
bacadeuring: do you have access to staging via juju?12:59
adeuringbac: sure, i'll merge it. But I am a bit puzzled that an integer would mean seconds, not millisecondes. And yes, I have meanwhile juju access to staging.13:01
bacadeuring: i'm seeing this when trying to access staging13:01
bac2013-09-04 09:01:17,726 INFO Connecting to environment...13:01
bac2013-09-04 09:01:19,284 ERROR juju environment not found: is the environment bootstrapped?13:01
bacwhen running  /usr/bin/juju status -e staging13:02
bacadeuring: can you see if you can simply get status via juju?13:02
adeuringbac: I'm getting the same error.13:03
bacugh13:03
bacyay!13:03
bacgood morning sinzui!13:03
sinzuiGood? I am not going to commit to such an accusation. I will simply state the obvious. Morning bac13:04
bacsinzui: it is good b/c you're here.  hey, both adeuring and i are inable to access staging via juju.  "juju status -e staging" reports the environment isn't up13:05
bacs/inable/unable13:05
sinzuiah13:05
* sinzui wonders if canonistack has toppled juju13:06
benjibac and adeuring: test run time for me is 115s and on the last run I only got bac's failure13:06
adeuring\o/13:07
bacsinzui: the web app is running13:07
bacbenji: let's not call this 'bac's failure'13:07
benjiheh13:07
benji"the bacobian abnormality"13:08
sinzuibac, adeuring :( I was tempted to write kirkland to say canonistack has bad weeks and good months. We have completed a good month. This is out bad week13:08
adeuringyeah... though I found one setup issue we had with elasticsearch since we began to use it...13:09
sinzuibac, adeuring. I suspect the state server and possibly the agents are zombies. I have fixed this situation in the past by rebooting the the instances via nova13:09
* sinzui checks that he documented this13:09
bacadeuring, benji: i propose abel disable the failing test, land the branch, and then leisurely try to fix the test.  the rest of us need the test speed-up now.13:12
benji+113:12
adeuringok, let me just save the fixes i have in place. ES is real fun to work with :(13:12
bacbenji: fwiw i'm now seeing the full suite run in ~90s13:14
sinzuibac: I think this issue is like the first 3 reported problems in https://docs.google.com/a/canonical.com/document/d/190xKLPpEPSrlVix4D9eX_aTciiKFo12h0u7MpzqI28I/edit# . Per the doc, I just sshed and rebooted the state server (instance 0)13:14
benjibac: sounds good (my machine is a tad slow, so I would expect mine to give slightly longer run times)13:14
rick_habentley: ping, got a sec to chat search?13:15
abentleyrick_h: sure.  juju-gui?13:16
rick_habentley: well figured I'd ask here. I noticed the docs note some extra fields to search on, summary, etc?13:16
bacsinzui: i didn't realize i could ssh natively, thought i had to use 'juju ssh'.13:16
rick_habentley: but it comes back as not supported: http://staging.jujucharms.com/api/2/charms?summary=apache13:16
rick_habentley: and http://staging.jujucharms.com/api/3/search?summary=apache13:17
sinzuibac, yeah. We always have the cloud's tools to use, but I too am not as versed in them as I am Juju13:17
rick_habentley: is this intended to work? I was looking at the bugs around m_3 about wanting to search more data and I was trying to see how we might do that currently.13:17
abentleyrick_h: What the docs mean is that if you do http://staging.jujucharms.com/api/3/search?text=apache, one of the the things searched is the summary field.13:17
rick_habentley: ooooh, ok. 13:17
bacsinzui: can you grant me edit to that doc?13:18
adeuringbac, benji, sinzui: so, here is the MP: https://code.launchpad.net/~adeuring/charmworld/set_n_replicas_and_shards/+merge/18384613:18
sinzuibac: done13:18
benjiadeuring: I'll review it13:18
sinzuiThe state servers logs still say they cannot talk to the zookeeper. Looks like the monkeys are loose.13:19
sinzuiabentley, bac, benji, adeuring. If I don't have this sorted out soon, I propose we redeploy the stack since that is 20 minutes at most13:21
benji+113:21
benjiadeuring: the branch looks good to me; I had a question that is bigger than the branch and shouldn't block its landing13:23
abentleysinzui: This is probably not the right time, but now that canonistack has a much larger floating IP range, we can start looking at using gojuju instead of pyjuju.13:24
sinzuiabentley, I disagree. This might be the right time.13:24
sinzuiI think we want to ask webops if they are prepared to redeploy charmworld on juju 1.x13:25
adeuringbenji: thanks!13:25
* sinzui wants to remove pyjuju and zookeeper from his computers13:25
bacsinzui: can you update that doc with instructions for what you tried?  i'm unsure.13:26
abentleysinzui: Yes, maybe it's time.13:26
bacadeuring: i thought you were going to include my timeout-values branch.  do you not think it is needed?13:29
bacadeuring: but perhaps i should land it separately, so never mind13:30
adeuringbac: sorry, simply forgot it :( 13:30
bacadeuring: i'll do it once yours lands13:30
bacbetter actually13:30
bacadeuring: and thanks a million for figuring out the underlying problem!13:31
bacbenji, adeuring: please have a look https://code.launchpad.net/~bac/charmworld/timeout-values/+merge/18387713:37
adeuringbac: on standup call right now; I'll look asap13:37
* benji looks13:38
benjibac: looks good13:41
sinzuibac benji: I am inclined to teardown the staging env and rebuild it with gojuju. bac you have an instance in it. Can I remove it too?13:56
bacsinzui: yes13:57
benjisinzui: sounds like a good idea; we need to be transitioning to gojuju13:57
bacsinzui: there will be some setup changes13:57
baca missing cert, i believe, that gojuju wants13:58
sinzuihmm13:58
sinzuiI need to learn about that. This is the script we used in the last few deploys of the stack: https://pastebin.canonical.com/91952/13:59
bacbenji: i'm back to looking at your bundle-feature-ui branch.  it has a conflict.13:59
benjibac: oh, yeah; I had forgotten about that.  I'll look at it now.13:59
bacbenji: i've fixed it locally about three times...  :)14:00
bacbenji: your branch fails this test repeatedly: http://paste.ubuntu.com/6062793/14:10
benjibac: yep, I'm seeing the same thing.14:10
bacsinzui: does the charm deploy charmworld trunk or a fixed revno?14:21
sinzuibac by default it deploys tip (-1). we call set to increment the revno14:22
bacsinzui: cool, tip is what we want14:22
sinzuiI see staging is finally gone. I will update my config and try gojuju14:23
rick_hjujugui review time please https://codereview.appspot.com/1323705214:48
jcsackettsinzui: i'm looking at the audit charms card. i'm assuming anywhere a queue is referred to here, we're talking about charmworld tools?14:48
benjibac: all tests are passing: https://code.launchpad.net/~benji/charmworld/bundle-feature-ui/+merge/18370914:52
bacbenji: great14:54
* bac reboots14:59
frankbanhatch: https://code.launchpad.net/~frankban/juju-gui/ci-activate-inspector/+merge/18389815:06
Makyojujugui https://codereview.appspot.com/13527043/ fairly small15:12
benjiMakyo: I'll take a look15:12
Makyobenji, Thanks15:12
abentleysinzui: Got a build running the tests: http://162.213.35.27:8080/job/test-charmworld/1/console15:16
frankbanMakyo: https://codereview.appspot.com/1331304415:26
bacbenji: at line 206 of your diff, does that assignment of form last until the end of the method or is the scope just the exception handler?15:28
* benji looks15:28
benjibac: end of the method (that code was moved during the refactor, I don't think I touched it)15:29
sinzuijcsackett, Yes, I believe queue == Tools.15:30
bacbenji: that is overly clever and confusing, i think.15:30
jcsackettsinzui: ok; any idea what this "build 2nd queue or combined queue" means?15:30
sinzuiabentley, \o/15:30
jcsackettseems like maybe a redundant bullet point, given the first one is about building a new queue? or is it referring to something else?15:31
benjibac: I agree.  Smuggling return values through exceptions isn't exactly something that should be done lightly.15:31
benjiit's a pretty big refactor though (or at least a pretty big task to understand the form validation system)15:31
benjiI would be inclined to have a bug/card along the lines of "revamp and potentially replace form validation logic with third party library".15:32
sinzuijcsackett, we want to re-review everything. charmers need a way to burn a list of charms down. The review criteria is more strict than the past. The goal is to record what needs to be done (bug reports?). charmers have a queue of MPs, but these are only the active development charms15:33
abentleysinzui: 1x1?15:33
jcsackettsinzui: ah, ok.15:34
sinzuijcsackett, We can choose to build a new queue or augment the current queue. The effort is one time so we can plan for a way to get a list of items to do. We can discuss this later in a 1x115:35
jcsackettsinzui: sounds good.15:35
sinzuiabentley, yes our 1x1...but i need a few minutes to find caffeine15:35
abentleysinzui: :-)15:35
sinzuiabentley, I am ready, shall I call?15:38
abentleysinzui: sure.15:38
rick_habentley: so we want to put the owner on the charm token but I recall there was a reason that was bad?15:42
rick_hjcastro: ^^ as well15:43
bacbenji:  http://127.0.0.1:2464/bundles/wiki/wiki/featured/edit  this url should work but doesn't b/c that bundle is not promulgated, right?15:43
abentleyrick_h: otp15:43
rick_hwe're pondering "If this is not a reviewed charm, put the owner name on the charm token"15:43
rick_habentley: rgr15:43
* benji looks15:44
benjibac: I can't get that bundle to show up after I've cleared my DB.  Any hints?  I ran bin/enqueue --prefix '~charmers/charms/precise' --limit=100; bin/ingest-queued15:57
bacbenji: this is what i run: http://paste.ubuntu.com/6063136/15:58
bacbenji: but first i change charmworld.ini to limit to 10 instead of 110 charms15:58
benjik15:58
benjime thinks we need a script for setting up a dev DB; something like what you have there15:59
bacjujugui are we having a call?16:00
bacor am i having lunch?16:00
* bac roots for the latter16:00
gary_posterbac benji I am in guichat.  I think.16:00
bacgary_poster: yay16:01
hatchahoy Goodspud 16:02
GoodspudAloha 16:02
hatchhow are you?16:02
GoodspudAll is good in my world. I hear there are some of the crew on London? 16:04
GoodspudEr, *in 16:04
hatchyup - it's expensive here :P16:05
adeuringbac, benji, abentley: could one of you have a look at this MP: https://code.launchpad.net/~adeuring/charmworld/fix-more-spurious-failures/+merge/183919 ?16:10
hatchjujugui could I get a review on https://codereview.appspot.com/13237053 plz16:21
bacsinzui: what't the status of staging?16:26
sinzuiMy deploy failed a few minutes ago. I see an error in my config16:27
benjibac: was the "needs fixing" because of the overly clever form validation bit?16:38
GoodspudApologies hatch, I lost my connection on my phone 16:57
* benji suspects bac is lunching, so he does the same.16:58
sinzuibac: sorry for the delay. I need to do a few hacks to deploy because the much promised public ips aren't here yet17:01
* benji is back after a short lunch17:30
benjiback let me know when you're around17:30
bacbenji: no, the needs fixing was due to the uncaught exception being raised.  sorry i wasn't clear.17:55
benjibac: cool, in that case it is ready for you to look at again17:55
bacdang, i should've said 'both'17:55
benjibac: I don't follow.  "both" what?17:57
bacbenji: both issues.  assigning form in the exception and not raising the 404.18:00
bacbenji: but it looks good.  r=me18:00
benjiyay18:01
benjibac: I'm looking at your bundles icon branch; do you have a moment for a call about it?18:01
bacsure18:02
=== schwuk is now known as schwuk_away
jcsackettjujugui: is there a simple way to determine what series the juju-GUI app is running on within the app code?18:32
hazmatjcsackett, it can look for itself within the env18:46
hazmatjcsackett, ie examine its own charm, doesn't work against the fake/mems18:46
bachow goes the battle sinzui?  (sorry i got disconnected and distracted.)20:30
sinzuibac: ingestion just started. maybe 15 minutes?20:30
sinzuibac: abentley: I think the authorized keys option is bad, or just obtuse: https://wiki.canonical.com/InformationInfrastructure/IS/CanonicalOpenstack/CanonistackWithJujuCore20:31
sinzui^ When I set it, such as with the staging key we use, I get locked out.20:31
sinzuiThe successful setup lets juju choose keys20:32
abentleysinzui: You're putting the contents of the public key there?20:33
sinzuiabentley, I added the path to the staging public key20:34
abentleysinzui: The way I read it, it's not a path, it's the actual contents of the key.20:35
abentleysinzui: That's why I said it would make distributing environments.yaml more convenient in the future.20:35
sinzuiabentley, a list of the keys? well I might tear this down in a few hours and try again20:36
rick_hjcsackett: did you get it figured out?20:50
jcsackettrick_h: not yet; made note of hazmat's suggestion, but that does nothing for sandbox mode.20:51
jcsackettrick_h: working on it alongside other things; hope to deal with it tomorrow morning.20:52
rick_hjcsackett: app.env.get('defaultSeries')20:52
jcastrorick_h: I just found a shitty bug20:52
jcastrorick_h: ok so in the jujucharms.com search box20:52
jcsackettrick_h: well then.20:52
jcsackettthat's easier. :-P20:52
rick_hjcastro: hopefully something we can address or have addressed. Lots of bug finding lately20:52
sinzuibac: looks like mongodb has an agent-state error. charmworld is waiting to mongodb20:52
jcastrosearch for "rabbit" = nothing. search for "rabbitmq" returns rabbitmq-server20:52
jcastrohow come rabbit doesn't return anything?20:53
rick_hjcastro: yea, it matches full names, partial matches in fields like summary/etc20:53
bacsinzui: ok20:53
rick_hjcastro: because rabbit is part of the word. We don't tokenize it. I think it's something we'll look at changing as trying ot get better search, but not set in stone atm20:53
hazmatjcsackett, another option its part of the config . and the charm can write it out, or default value from config for fake/mems21:42
hazmatrick_h, default doesn't nesc. correspond to the gui series though21:42
jcsacketthazmat: i think rick_h's approach fits my needs; we just want to grab the env series. i think my question garbled my intent.21:43
rick_hhazmat: true, but for what jcsackett is doing I think works. It's basically a helper to plus up the series you're working 'in'. 21:43
hazmatah cool21:43
rick_hfor search results ranking a little bit21:43

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