/srv/irclogs.ubuntu.com/2013/05/14/#juju-gui.txt

rick_h_bah, reitveld doesn't want to load for me today. 10:47
rick_h_there it goes, just needed to warm up today I guess10:55
gary_posterjujugui, we have a GUI UDS session that we need to lead/attend on Thursday, 18:05-19:00 UTC.  We ought to also attend, at least partially, the "Juju Charm Testing" session (Thursday 15:05-16:00 UTC), the "Charm Development Tooling" session (Wednesday 18:05-19:00 UTC), the "Charm Policy Review" session (Wednesday 15:05-16:00), and the "Juju Core Development" session (today 19:05-20:00 UTC).  I'll put those in an emai12:18
gary_posterl now...12:18
benjigary_poster: I wonder if we should promulgate the "Elmo's Pain" blog post to one of the lists.  Maybe at least him. :)12:18
bacmorning12:18
benjimorning, bac; I trust your return trip was OK12:19
bacit was a-ok.  best as could possibly be for having to catch a cab at 4:4512:20
gary_posterbenji, yeah, the thought crossed my mind as well. :-) I was also considering advertising the blog more generally.  I'll do it soon, though I have higher priorities atm so if someone wants to do some of those that would be cool too.  oh, that reminds me.12:20
gary_posterI think we have two very high priority bugs atm12:20
gary_posterone is the memory leak12:20
gary_posterthe other is the problem when we update the demo site and we can't see it  anymore until we clear out our appcache12:20
bacgary_poster: i got feed back from some of our spikey haired colleagues that the blog is interesting but they won't read it since it seems to be an internal gripe/work-around collection.  food for thought.12:21
gary_posterbac, which spikey haired ones?12:21
gary_posterfor example, perhaps :-)12:21
bacok, it was just one.12:21
bachis initials are curtis hovey12:21
gary_posterheh12:22
gary_posterok cool12:22
rick_h_lol12:22
rick_h_gary_poster: bac I could see though getting a tag or category into one of the planets perhaps? Maybe a "this is share-worthy state of GUI" for those that don't care how the sausage is made.12:23
gary_posterrick_h_, yeah good idea.  do any of the planets still have decent readership? I was under the impression that they were losing steam12:24
rick_h_gary_poster: hmm, I'm an rss junkie so not a good person to ask12:24
gary_posterheh12:24
rick_h_jcastro might have a good suggestion12:25
gary_postergood idea thanks12:25
rogpeppe1gary_poster: hiya12:54
gary_posterhey rogpeppe1 :-)12:55
rogpeppe1gary_poster: i've just done a pretty major refactoring of the rpc package. it all seems to be working ok, but i wonder if you could check that the branch works with your stuff.12:55
rogpeppe1gary_poster: the branch is here: lp:~rogpeppe/juju-core/300-rpc-refactor12:55
gary_postercool, rogpeppe1, sounds good.  I'll get someone to give it a whirl.  bac, you up for that?12:56
rogpeppe1gary_poster: i'm quite happy with it - i think it's got rid of a few lurking bugs and added some cool new possibilities12:56
rogpeppe1gary_poster: in particular, rpc can now be bi-directional12:57
bacgary_poster: sure12:57
bacrogpeppe1: thanks!12:57
gary_posterthanks bac12:57
gary_posterrogpeppe1, so you mean Juju can now initiate a conversation?12:57
gary_posteras opposed to only responding?12:57
rogpeppe1gary_poster: yes12:57
gary_posterah cool rogpeppe1, that is potentially a big deal12:58
rogpeppe1gary_poster: yeah, i think so12:58
gary_postergreat12:58
gary_posterI will keep that in mind in my thoughts going forward12:59
gary_posterdi you have any immediate ideas on how to apply that?12:59
rogpeppe1gary_poster: i was thinking in particular of cross-environment relations, but i'm sure there are other places where it could be useful12:59
gary_posterah, of course12:59
rogpeppe1gary_poster: there's no requirement that both sides speak the same API of course12:59
gary_postersure12:59
benjilog streaming12:59
rogpeppe1benji: i'm not sure about that actually13:00
gary_posterbenji, watchers would work with that, but...yeah13:00
rogpeppe1benji: i think for genuine streams, it might be better to just use a normal non-websocket URL13:00
gary_posterrogpeppe1, benji, actually I was thinking that we might be able to use the statsd pattern for logs too.  I want to talk to mew about standards13:00
benjirogpeppe1: yep, you're probably right13:01
gary_posterI mean, it would be a relation interface, as rogpeppe1 suggested at the relevant meeting13:01
rogpeppe1gary_poster: interface or not, the GUI still has to get access somehow13:01
gary_posterrogpeppe1, yes, but there are lots of log aggregator tools out there now13:02
gary_posterif we speak the right language, we can play the game13:02
rogpeppe1gary_poster: ah, that sounds good13:02
rogpeppe1gary_poster: BTW did you see that go 1.1 is out now?13:02
gary_posterrsyslog is maybe the most basic.13:03
gary_posterI did, rogpeppe1!  I intend to look at the new features.  Does that affect the project immediately, or will we havet owait for 13.10?13:03
rogpeppe1gary_poster: i think we'll move over immediately13:03
gary_postercool13:03
rogpeppe1gary_poster: there's not much that impacts us directly.13:03
rogpeppe1gary_poster: i can lose a few hacky bits13:04
gary_posterrogpeppe1, actually I had a thought for the statsd story that I was going to talk to you about.  we want a "statsd" interface that can operate in both a container scope and a global scope.  Specifically, the container scope is good for Landscape and for "adapter" subordinates (statsd -> XXXNEW_PROTOCOL); the global scope is good for gui and statsd servers and graphs (graphite).  We can simply require that users spec13:07
gary_posterify the interface twice, once for each scope, but I thought it would be good to record this use case so we can contemplate addressing it at some point.  Would you suggest simply filing a bug?  Or do you think I'm missing something in my evaluation of the situation?13:07
gary_poster"addressing it at some point": making it possible to declare an interface once, applying to both scopes13:08
rogpeppe1gary_poster: won't adapter subs have only the global interface?13:09
rogpeppe1gary_poster: i.e. aren't adapters just about adapting from something local to the global stats relation?13:10
hazmatgary_poster, the uistage.jujucharms.com is getting yanked...13:18
hazmatgary_poster, hp is charging for instances13:19
gary_posterrogpeppe1, well, that's a question.  so if the scenario is that we have charm A that provides a statsd interface and charmB that requires a NEWSTATS interface, and it is possible to translate statsd to NEWSTATS relatively trivially and automatically, what do you do?  I envisioned that you would want subordinate charmC on charmA that would translate statsd to NEWSTATS, and then you would relate charmB to charmC.  The13:19
gary_poster advantages AFAICT are that you add incremental load to the adapter charm that scales out naturally13:19
gary_posterhazmat, hm.  the biggest problem here is juju.ubuntu.com, I think.13:19
rogpeppe1gary_poster: could you explain that a bit?13:19
gary_posterrogpeppe1, sorry, yes, wanted to reply to hazmat, 1 sec13:19
rogpeppe1gary_poster: np13:20
gary_posterhazmat, this is probably a discussion for sinzui and maybe alejandraobregon 13:20
hazmatgary_poster, why are stats relayed through juju?13:21
hazmatgary_poster, i thought heka + new websocket for stats13:21
hazmatas statds13:21
gary_posterhazmat, one thing at a time :-P I'll return to that conv. in a sec .  For now, can we prolong uistage until sinzui and alejandraobregon unveil the new jujucharms.com?13:22
sinzuigary_poster, hazmat, noted. I think we will plan a new instance13:22
gary_postersinzui, hazmat, I suggest that you coordinate timing so there is not a link to nowhere from juju.ubuntu.com, but will step aside otherwise.13:22
hazmatgary_poster, sinzui based on converations the deploy/reveal of that may get delayed even after tech is done.13:25
hazmatso best to fix up current links13:26
gary_posterhazmat, I heard the same, yes13:26
sinzuithat's right. I understand they want to rethink the site's initial exerpience13:26
hazmatgary_poster do you have a staging site for the gui around?13:26
hazmater. trunk testing13:26
gary_posterhazmat no, will arrange soon, and does not need to block you13:27
gary_posterpublic facing bit is the only thing I think we need to coordinate13:27
gary_posterBack to virst conv., rogpeppe1 and hazmat.  stats not relayed through juju, that's not what I'm talking about hazmat.  statsd talks directly to consumer, whoever they are.  The question is about future-proofing generally, since this is a topic that GUI, Landscape, and Core (at least themue had a related session) care about.  when statsd becomes old news and XXXNEWTHING is new approach, what do we do?  two approaches13:28
gary_poster.  one is that everyone learns how to talk the new format and the old format.  that's fine.  but I was raising an interesting use case (that is practically important for Landscape only atm) of adapter charms.13:28
gary_posterwell, I was saying that adapter charms might be a way to approach the problem13:29
gary_posterand I was thinking that they might work best as subordinates13:29
rogpeppe1gary_poster: are you thinking that stats are shown in the GUI?13:29
gary_posterand landscape is a subordinate now, and how they want to consume the metrics is from the perspective of a subordinate13:29
sinzuiSomeone is making staging.jujucharms.com (manage) very angry. I an getting volleys of hate mail13:30
rick_h_sinzui: that's me13:30
rick_h_sinzui: looks like the interesting api call is blowing up on something new. 13:30
rick_h_sinzui: was just trying to do a final QA on my branch which hits it13:30
sinzuiShall I forward you all the hate, or are you content just knowing it cannot talk13:30
rogpeppe1gary_poster: a subordinate can still have global relations13:30
rick_h_sinzui: well, depends on the hate. If it's something I can help fix today before EOD sure. Else someone else might want to grab it. 13:31
gary_posterrogpeppe1, metrics only for a single unit.  our use case is diagnosis.  metrics for aggregates are for dedicated solutions, like statsd + graphite connecting to one or more services13:31
gary_postereh, lines are being crossed, I'm afraid13:31
gary_posterrogpeppe1, yeah, I know.13:31
gary_posterrogpeppe1, quick call in the hopes that it straightens things out faster than otherwise?13:32
rogpeppe1gary_poster: good idea13:32
gary_posterrogpeppe1, https://plus.google.com/hangouts/_/7fb7c30f3a232db57dd8549738fb98e723d90d4a13:32
sinzuirick_h_, this is the bug: https://bugs.launchpad.net/charmworld/+bug/117994213:36
_mup_Bug #1179942: Max retries exceeded with url: /charms/_search?size=10 <api> <oops> <charmworld:Triaged> <https://launchpad.net/bugs/1179942>13:36
hatchmorning all13:43
gary_posterrogpeppe1, just lost you :-/13:53
gary_postermorning hatch13:54
hatchcan I watch a youtube stream of the vUDS talks?13:56
gary_posterhatch I don't think it is a stream. I think you have to go to each talk.  maybe wrong13:57
rogpeppe1gary_poster: network difficulties, sorry13:58
gary_posternp rogpeppe1 still in hangout if you would like to rejoin13:58
rogpeppe1gary_poster: trying  but it doesn't seem to like me currently13:59
gary_poster:-)13:59
jcsackettrick_h_: do you know if we have bugs filed for all of our remaining UX commitments? or is that still in progress while the designs are completed?14:00
rick_h_jcsackett: right, we asked luca to file bugs with the assets/etc attached in chunks that made sense.14:04
rick_h_jcsackett: describing to him how we thought of things as 'widgets' or components that fit together14:04
abentleyrick_h_: which staging is broken?14:05
rogpeppe2gary_poster: connection coming and going but hangouts still not there14:05
rick_h_abentley: bug sinzui just posted: https://bugs.launchpad.net/charmworld/+bug/117994214:06
_mup_Bug #1179942: Max retries exceeded with url: /charms/_search?size=10 <api> <oops> <charmworld:Triaged> <https://launchpad.net/bugs/1179942>14:06
rick_h_abentley: breaks anything hitting ES I think atm14:06
abentleyrick_h_: Gotcha.14:06
abentleysinzui: It sounds like you've been looking at staging.  This looks like the same ES fail I've seen a couple of times.14:08
gary_posterrogpeppe2, ok thanks for trying.  the main point we were discussing was whether setunit can coexist peacefully with addunit and removeunit.  I think they can, and they ought to.  I'd say that the underlying change is that juju needs to maintain a "goal number" of desired units, and have agents moving the actual number of units to meet that desire.  setunit directly changes that goal value.  addunit and removeunit tr14:09
gary_posteransactionally (that is, within a single transaction) get the current goal value, modify it, and set it.  setunit is a better concurrent approach generally, but removeunit and addunit will still work fine technically in the new world.  existing tests relying on addunit and removeunit should be fine.  what do you think?14:09
abentleysinzui: You can see in the charm.log that ES failed to start when restarted. (/var/lib/juju/units/elasticsearch-0/charm.log at 2013-05-14 07:06:19,759)14:15
hatchhey there is a new version of go released14:16
gary_posteryeah go devs switching soon according to Roger14:19
gary_posterI mean juju devs14:19
rick_h_yea, says it's backwards compat 14:19
rick_h_go Go :)14:19
rick_h_when ever I see Go releases I realize how spoiled I am by the Python stdlib14:20
abentleysinzui: I'm restoring staging.14:22
hatchI was just surprised to see a go release14:23
hatchover a year since their last one14:23
hatch:)14:23
gary_posterhey Makyo you around?14:24
hatchwell...with the exception of bug fix ones14:24
Makyogary_poster, Yep, though net's a little flaky.14:24
hatchdarn, so it wasn't the router?14:24
Makyohatch, apparently not.  Which is good in a way, I guess :)14:24
MakyoI'll swap later.14:24
gary_posterMakyo, ack.  I'm worried about that appcache problem we see on tinyurl.com/jujucharms (https://ec2-23-20-230-72.compute-1.amazonaws.com/).  I'm afraid it is going to affect jujucharms.com and we are going to be very unhappy.  Could you investigate, or maybe hand off some of your knowledge about this to someone else (hatch?)14:25
hatchis this the no css issue?14:26
Makyogary_poster, Sure, either or.  I think the end result will be appcache just going away.14:26
MakyoIt's no resources, hatch , not just css.14:26
gary_posterMakyo, no appcache will make us sad, yeah?14:27
abentleyrick_h_: staging is back.14:27
Makyogary_poster, the only things in there are the service blocks, which are going away, correct?14:27
rick_h_abentley: cool thanks14:27
MakyoAnd index.html14:27
benjigrrrr, chrome crashed while attempting a heap capture14:27
hatch:/ tests passed when they should have failed14:27
gary_posterMakyo, hmm, good point.  how big are the service blocks right now?14:27
Makyogary_poster, 25K14:28
MakyoFor all assets.14:28
gary_posterMakyo, wow, yeah, let's dump it, unless you disagree.  If you agree, do you have time for that (it involves a bit of Makrfile jiggery) or would you prefer I find someone else so you can focus on the Go branches14:29
Makyogary_poster, I'll do it, should be quick.  I think it's just too clumsy for our needs.  All or nothing, too hard to clear, no way to not include index.html, etc.14:30
gary_posterok thanks much Makyo 14:30
Makyogary_poster, np.  Landing service placement, then that, then proposing branch 2/3 of the go stuff.14:31
gary_postercool, sounds good14:31
rick_h_hatch: did you fix/find the issue with that CI issue of 'cannot find image'?14:31
gary_posterif it's from two weeks ago, yes.  /me hopes ther's not a new one14:32
rick_h_hatch: sorry "Can not find requested image" failure to be more exact14:32
rick_h_gary_poster: my branch landing just tossed it out with that failure :/14:32
gary_poster:-( :-(14:32
hatchrick_h_: I don't follow...was it someone else maybe?14:32
rick_h_hatch: I thought you were looking at the CI failure with the image ids/names not looking right?14:32
gary_posterhatch, no, he's talking about the fix where you set the new openstack image14:32
rick_h_hatch: my bad if I'm remembering incorrectly14:32
hatchohh yeah no I have no idea about that - it wasn't me - I am trying to find where the login username is being changed to 'admin'14:33
rick_h_I didn't catch what the final fix was for that14:33
gary_posterhatch, /me worries you were taken over by aliens...or /me was!14:34
rick_h_lol14:34
rick_h_ubuflu turns into ubuabduction14:34
gary_posterheh14:34
hatchlol14:35
hatchthere was a massive storm last night so maybe they came in under the cover of thunder14:35
arosalesfyi lower third info for G+ hangouts for vUDS or in general http://paste.ubuntu.com/5598305/14:36
arosalesgary_poster, were you just going to review the s-cloud-* BPs @ https://blueprints.launchpad.net/juju-gui14:36
gary_postercool thanks arosales 14:36
arosalesfor vUDS guid development sessions tomorrow14:37
arosaless/guid/gui/14:37
gary_posterarosales, I was going to extract public facing bits from https://docs.google.com/a/canonical.com/document/d/12NlmaoSJswYe2H1u9Z0pjAhrBtqdtN_h76n5rfj05JA/edit# and discuss14:37
gary_posterThursday, not tomorrow, thanks to you :-)14:37
arosalesgary_poster, ah yes :-) 14:39
* arosales needs more coffee :-)14:40
gary_poster:-)14:40
arosalesgary_poster, sounds good, thanks.14:40
gary_postercool, thanks14:40
arosalesgary_poster, let me know if you have any questions14:40
gary_posterthanks arosales, will do14:40
=== _mup__ is now known as _mup_
sinzuirick_h_, abentley, jcsackett, I think someone tested search with asdf and got an error, this is it: https://bugs.launchpad.net/charmworld/+bug/117997014:43
_mup_Bug #1179970: KeyError: 'Docs' <oops> <charmworld:Triaged> <https://launchpad.net/bugs/1179970>14:43
rick_h_sinzui: ack14:44
abentleysinzui: Yes, I did.  Not sure what happened there, because that was after I'd run 'juju resolved --retry elasticsearch/0'.  It should have succeeded, and later attemtps did succeed.14:44
bacrogpeppe2: i've exercised the GUI using your RPC branch and don't see any issues.14:49
rogpeppe2bac: thanks a lot14:49
rogpeppe2bac: that's good :-)14:49
hatchsomehow I wrote that whole login/logout route rewrite and didn't get a single indentation lint error....either I'm getting better at this stuff or something is seriously wrong :)15:10
hatchjujugui Looking for a review and a qa on https://codereview.appspot.com/9415043/ a QA needs to be done using all three back ends please :)15:17
teknicohatch, conflict in lp diff: https://code.launchpad.net/~hatch/juju-gui/auth-routes/+merge/16373215:19
hatchahh crap15:20
hatchok ignore that email15:20
hatchthanks for pointing that out teknico :)15:21
teknicohatch: quick hangout once you're done reproposing?15:22
hatchyeah I just want to make sure everything works after fixing that15:22
hatchannnd it doesnt15:23
teknico:-)15:23
hatch*expletive*15:23
gary_posterhatch, after talking with teknico, ping me to talk about CI plz.  I'm pretty sure you know more than you are letting on about how to fix that CI failure.  Or one or both of us are aliens.15:23
hatchok we can chat now15:24
gary_posterteknico,  gets to go first15:24
hatchsec while I grab my headset15:24
teknicohatch: https://plus.google.com/hangouts/_/02bb45411739e441fe107c9f66e2a8cc36ba4ba715:24
hatchok there15:25
abentleyrick_h_: Technically, you won't need has_icon, because icon.svg would be listed in "files", but I'm happy to include it as a convenience.15:26
hatchgary_poster: ok guichat?15:38
gary_posterok hatch 15:38
gary_posterhey bac, you have a sec?15:43
bacgary_poster: sure15:43
gary_posterthanks bac, guichat?15:43
bacyep15:43
gary_posterjujugui kanban now, call in 715:53
rick_h_abentley: ah true. cool16:03
teknicoMakyo: is your "Refactor RepoSuite to juju/testing" card reviewable? it links neither to Rietveld nor to LP16:15
Makyoteknico, yes, sorry. Card confusion with splitting branches.16:15
Makyoteknico, https://codereview.appspot.com/9074045/16:16
teknicoMakyo: gotcha16:17
hatchrick_h_: are you around today?16:32
rick_h_hatch: yea, what's up?16:32
hatchin fixing my tests I have somehow broken a charm browser test suite and I am at a total loss as to wtf is going on - any chance you could take a look?16:34
rick_h_hatch: sure, linky the branch in progress16:35
hatchhttps://code.launchpad.net/~hatch/juju-gui/auth-routes16:35
hatchthanks16:35
rick_h_hatch: k, pulling down. Give me a few 16:35
hatchrick_h_: you should see aftereach failing in browser_charm_view right after "qa content is loaded when tab is clicked on"16:36
hatchand commenting that test out causes a number of tests to fail much later in the full suite....so I'm totally lost haha16:36
rick_h_hatch: in app.js so both routes login/logout should be there? solving merge conflict...16:37
hatchohh I haven't merged with trunk yet16:37
hatchI didn't want to introduce more issues yet :)16:37
hatchonly login route should be there16:37
rick_h_hatch: so no logout route16:38
hatchnope16:38
rick_h_k16:38
rick_h_hey, who's leaving the slider assets around the test suite :P16:39
hatchyeah I noticed that too - I was going to look into fixing that after I got this branch landed16:40
rick_h_hatch: guichat?16:43
hatchyup16:45
* rick_h_ yells "not me!" and runs away from failing test16:59
hatchlol17:00
hatchthanks for looking :)17:00
bachi hatch, quick chat?17:17
bachatch: you got a sec?17:25
hatchsure whats up?17:26
rick_h_hatch: this Go login thing isn't intermittent. I've gotten it 10 straight times. 17:43
hatchrick_h_, it depends on the speed it runs it with17:44
hatchit's ok I know what that issue is ;)17:44
rick_h_hatch: ok, just trying to poke at this some more. Depending on what I comment out I get all kinds of diff errors17:45
hatchyeah something is right messed up with these tests17:48
bcsallerupdated card on "export UI" with a review branch when people have time17:54
hatchrick_h_, I think I solved it17:56
rick_h_hatch: orly?17:56
rick_h_hatch: legit issue or just the test suite hating us?17:56
hatchI think it was an issue with how the tests were written combined with the long instantiation procedure for app17:57
hatchmight have to put some thought into restructuring app17:57
rick_h_hatch: well I'm all for restructing the test suite :P If app passes the tests then so be it imo. 17:58
hatchwell I was thinking about breaking the app instantiation into a number of extensions which we can turn on/off for testing17:59
hatchthat's my 5s worth of thought on the matter17:59
hatch:)17:59
rick_h_hatch: but you still need tests with it all turned on. 17:59
rick_h_hatch: so if that'll fail then at least let's make sure we know that's what failed vs something 100 tests later18:00
hatchthats kind of my thoughts - I am also working with a migraine so I'm sure there are also some other issues associated with it that I'm missing :)18:00
rick_h_hatch: I guess at some point I just wonder if we're fixing the symptoms vs the real problem. If the code's not broken the tests need fixing not the code. 18:01
rick_h_hatch: ah, well go take some meds for that. hate those evil things18:01
hatchtrue but there is something to be said about 'testable code' 18:01
hatchso it could be that the app is becoming to large to instantiate 18:02
hatchfor tests18:02
rick_h_hatch: k, well if you found something all good and I'm all for making app easier to maintain/etc. I just don't want to add complexity by flagging app features purely because the test suite hates us. 18:03
rick_h_not that it's my decision or anything, but my input since I heard someone ask me on the wind over here in my coffee shop :P18:03
=== deryck is now known as deryck[lunch]
hatchhaha so true so true - well once I finish modifying the tests if it works then we can look at it in more detail18:03
hatchit's windy IN the coffee shop?18:04
hatch;)18:05
rick_h_hatch: or maybe it was just the voices in my head. I can never tell18:05
hatchhaha18:16
gary_posterI wonder when the service page got too big and required scrolling :-/18:27
gary_postersometimes18:28
gary_postermm all the time18:28
gary_posterbut sometimes it works for the first few seconds18:28
hatchgary_poster, I thought we were ignoring that because of the new UX?18:30
gary_posternot my intent18:30
hatchoh ok sorry :)18:30
hatchwe got a new radio station, all 80's and 90's hits18:32
hatchw000t18:32
gary_posterhey bcsaller I'm trying out your export branch.  shift d works great.  I can't get what I believe be the help key to work (shift /, or simply "?" AFAICT).  From your branch it looks like I should be able to drag the environment name at the top of the page but that is not working for me.  Finally and most trivially, the "esc" callback throws errors when #shortcut-help is not around.  Can you correct me to the proper 18:37
gary_posterhelp key and the proper drag mechanism?18:37
gary_posterthat was some strange English18:38
gary_poster...what I believe to be...18:38
gary_poster...Can you correct my understanding of the help key and the drag mechanism?18:38
bcsallergary_poster: Shift-/ or '?' works for me on that branch, odd. I also don't see an error pressing escape as shortcut help is always there (just not visible)18:39
gary_posterhuh18:39
gary_posterI'll reload page after clearing appcache18:39
bcsallerthe word 'Environment' is the drag target (but I didn't change the cursor on hover as I don't think we should promote this feature yet)18:39
bcsallergary_poster: when you start the drag however it does change18:40
gary_posterbcsaller, duh, looks like I just needed to clear appcache.  sorry for false alarm18:40
* bcsaller shakes his fist at appcache one final time18:42
gary_poster:-)18:42
gary_posterbcsaller, shift d works great, but if I export a larger environment (like http://ubuntuone.com/3dl0I8k9YsG52dvmzFdiOH) with drag-drop I get an error ("Error opening file '/home/gary/Desktop/{"meta":{"exportFormat":1},"services":[{"displayName":"cassandra","name":"cassandra","charm":"cs:precise/cassandra-3","config".txt': No such file or directory")18:46
gary_posterit looks like the name is the content when you drag-drop?18:46
bcsallergary_poster: it shouldn't be, maybe I botched the merge, my quick testing seemed to work before, checking now18:47
gary_posterbcsaller, fwiw I merged your branch into trunk for review.  Maybe that's the problem18:48
gary_posterno conflicts though18:48
bcsallerI did that this morning as well before the CR push18:48
bcsallergary_poster: there are two import paths, the file reader one which is the drag from file manager to browser case, the other is from the clipboard. The clipboard case will put the JSON (if it fits) in the clipboard18:50
bcsallerAFAIK it can't set a filename associated with that clip though18:50
bcsallerso nautilus sees the drag and tries to name the file its contents18:50
gary_posterack, on call back soon18:51
bcsallerhowever dragging to another gui instance is fine as it tries to import that data directly18:51
bcsallerok18:51
=== deryck[lunch] is now known as deryck
Makyomy cobzr setup got corrupted :|19:00
bacMakyo: kill cobzr19:04
* Makyo gets out the knife :/19:05
bacMakyo: seriously, did you read tim's suggestions in juju-core/docs/bazaar* ?19:06
hatchrick_h_, yeah looks like I found a good workaround 19:06
hatchit was because of multiple app instantiations with such a long init cycle19:06
Makyobac, re: switching to pipelines?19:06
bacMakyo: you don't have to go all the way to pipelines but just use a sane set up for lightweight checkouts that allows you to get rid of cobzr19:07
MakyoSomething just fell off the roof.  Back in a sec.19:07
MakyoOh well.19:10
sinzuiI see m.jc.com just through a wobbly when someone was looking at the juju-gui charm19:10
MakyoI'll read up on it, bac.19:10
* sinzui reports bug19:11
rick_h_hatch: cool19:18
hatchof course I am trying to solve some edge cases now19:19
rick_h_bcsaller: you guys have a running GUI charm on prodstack right? It's just a raw IP port right now?19:22
bcsallerrick_h_: I'm not sure the status of that 19:22
rick_h_bcsaller: asking because abentley noticed that the charm installs apache, but prodstack rules say you must go through the apache charm from them and curious if there's a branch/etc to look at for the latest/greatest19:22
bcsallerhmm, afaik they accepted what we delivered 19:23
bcsallerthere was no additional work to support a remote apache. Currently the server is static files though so they might have let it in because of that 19:24
rick_h_bcsaller: ok cool. 19:24
hatchrick_h_, still around?19:33
rick_h_hatch: what's up?19:41
hatchwondering if you could pull down the latest version of my auth branch and see if that Go error pops up19:41
rick_h_hatch: k, sec19:41
hatchthanks19:41
rick_h_hatch: all tests pass19:44
hatchrighteous 19:44
rick_h_hatch: just testing something else out quick, sec19:45
rick_h_hatch: so if I comment out the test_app (which I was doing to help debug the test issue) it happens every time19:46
hatchok let me try that19:47
hatchdarn I still can't repro19:49
hatchare you on your desktop?19:49
rick_h_hatch: laptop19:50
rick_h_desktop arrives tomorrow19:50
rick_h_hatch: sec, let me breakpoint there and peek19:50
gary_posterI attended Juju vUDS session.  Took some notes from GUI perspective, fwiw: http://pad.ubuntu.com/uds-1305-juju-core-development19:51
gary_posterbig take away: we need even more of a machine perspective than I thought19:51
hatchrick_h_, ok I was able to reproduce it once - I was asking about the desktop because maybe it was a speed issue - looking into the test now19:51
rick_h_hatch: yea, understand. 19:52
gary_posterrick_h_, bcsaller yes they accepted the apache because GUI needs to be behind haproxy to merge websocket (juju) and normal web resources (apache).  If we were a subordinate, we would still need our own apache, or something like that.19:52
gary_posternot sure if we could have our own apache within another apache. don't see how that would work19:53
hatchgary_poster, mongo works better in HA with odd numbers? lol 19:53
hatchhave to admit that's pretty funny :)19:53
bcsallerhatch: https://speakerdeck.com/mitsuhiko/a-year-of-mongodb ;)19:53
gary_posterhatch, :-P :-)19:53
rick_h_hatch: hmm, so they 'look' the same to me 19:54
rick_h_hatch: just the order is diff from what I can tell19:54
rick_h_hatch: maybe the test can just compare multiple properties expected to match instead of the deepequal?19:54
hatchrick_h_, no the deep eql is necessary - the issue is a race condition...now I need to figure out how to fix that19:55
hatchthat guys slides are wrong.....mongo doesn't use JSON records :P19:56
hatchI will read more after I fix this test19:56
rick_h_hatch: http://paste.mitechie.com/show/959/19:57
rick_h_mongodb needs 3 so you can always vote for a new master. Also you usually want sharding, and 3 of each shard...so enjoy the number of machines 19:57
hatchohh that's why it needs 3...I guess that makes sense19:58
rick_h_yea, you want to have a vote to promote else some out of date second can just become master and oh well to any data that didn't get there yet19:58
rick_h_hatch: so yea, I don't know. When I debugger into that test and check each property I'm golden. Then again if it's a race the delay in getting at the object must be cool and fix it19:59
hatchyeah - I know how to fix it....just trying to figure out how without rewriting all of the tests20:01
hatch:)20:01
rick_h_hatch: ok, then I can quit poking at this and EOD20:01
rick_h_have fun :)20:01
hatchthanks for your help20:02
rick_h_hatch: heh, happy to just yell "it's broke" :)20:03
hatchoo new radio station is playing Oasis20:04
hatchfixed....but yuck20:04
rick_h_hatch: what was that? I stopped reading at 'fixed' :P20:05
hatchhttps://gist.github.com/hatched/3ec63ac042ad698c6ea620:06
hatchln 2 to 1120:06
hatchfeel free to try that in your branch :)20:06
rick_h_hatch: now turn that into a method resetGoEnv() and it's pretty again20:06
hatchsure I still think it's a hack :)20:07
rick_h_hatch: yay tests pass20:08
hatchand I thought that the login/logout routes would be a simple fix :)20:08
rick_h_hatch: ok, color me confused. What you added is just a pass through beforeEach/afterEach?20:09
hatchthe before/after each still run as normal, so that's why I am destroying the env that the before created20:09
hatchclobbered the method causing issues20:09
hatchthen reset it back after20:10
abentleygary_poster: I don't understand why you would need your own apache if it was a subordinate.  The subordinate relation could make the charmed apache serve your static files.20:10
gary_posterabentley, the GUI's haproxy would need to proxy the apache, so the haproxy needs to have control over the external port that serves the GUI--80 and 443 in our case.  I could imagine a setup that had the GUI served from apache in one charm, and then fronted by an haproxy service that was specially configured to serve the Juju API properly.  That haproxy would probably require custom development and unusual configurat20:15
gary_posterion, and would be antithetical to my desire to make deploying the GUI very easy (a single deploy statement and a single expose statement).  If we could make the GUI charm support both the easy deploy and the subordinate deploy story then that would be fine in theory.  However, 20:15
gary_posterthat is only interesting with the jujucharms.com/sandbox story.  Until convinced otherwise, I prefer to have a single charm that is configured to handle the different cases.20:16
gary_posterThat was a bit convoluted, sorry. :-/20:16
hatchI noticed that the featured flags route is at the end of the route list - shouldn't that be at the start?20:25
hatchso that the other routes can rely on that code?20:26
abentleygary_poster: I'm not familiar with the haproxy+websockets issues.  Do I understand correctly that juju-gui's charm installs both juju-gui and haproxy?20:26
abentleygary_poster: And apache?20:26
gary_posterabentley, yes.  want to have a chat?20:26
abentleygary_poster: sure.20:26
gary_posterabentley, guichat is open (https://plus.google.com/hangouts/_/7fb7c30f3a232db57dd8549738fb98e723d90d4a)20:27
hatchjujugui - anyone available for a QA and review? https://codereview.appspot.com/9415043/20:33
bcsallerhatch: I can review that20:35
hatchthanks - any chance I could get a QA too? sorry QA'ing this kind of sucks :/20:35
bcsalleryes20:37
hatchu da man20:38
gary_posterhey bcsaller.  so, I can drag and drop into another GUI, or...what else?20:54
gary_posterI guess a text editor.20:55
gary_postertrying20:55
abentleysinzui: Have you seen my explanation of the deeper cause in https://bugs.launchpad.net/charmworld/+bug/1179942 ?20:55
_mup_Bug #1179942: Max retries exceeded with url: /charms/_search?size=10 <api> <elasticsearch> <oops> <charmworld:Triaged> <https://launchpad.net/bugs/1179942>20:55
bcsalleranother gui is really the target, the export hotkey is the download story as its not size limited20:55
sinzuiES was not up20:55
gary_postertext editor does not work.  ah ok20:55
gary_posterhm20:56
sinzui^ abentley ES was not up, so the app tried until it hit the max20:56
abentleysinzui: Right.  I'll copy the explanation to 1176901, but please don't mark *that* as a dupe :-P20:57
hatchbcsaller, so what's the best way to clear out the namespaces?20:57
sinzuiabentley, It is the older bug and I think it is the same issue. It is about the time we discovered that ES timesout on start20:58
bcsallerhatch: look at showRootView20:58
hatchok I was thinking override myself thanks20:58
hatchhmm not working21:02
hatchto the investigator!21:02
abentleysinzui: I'm sorry if I didn't communicate that clearly to you earlier.  I thought I had.21:03
bcsallergary_poster: do you need different behavior for export? Our choices are limited w/o the server generating a URL for the Download. If it does then we can be more sophisticated. 21:06
bcsallergenerating the blob for the S-d export works because it doesn't need to be referenced apart from the download, but passing a URL (the other mode of DnD) can't reference such a file. 21:06
bcsallerthere is a possibility to request local file access, generate the file there, but its was not clear it was worth the effort 21:07
gary_posterbcsaller, ok.  had to think a bit about that.  I am concerned about the drag and drop UX because I think it gives the wrong idea of what you can do.  I realize that this must be demonstrated to someone for them to find it, but I want to make it super explicit that this is experimental.  Could you put the drag and drop behind a "gui.experimentaldndexport.enable" flag, or similar?  (you could delete the "experimental,21:08
gary_poster" for instance :-).  Then when we demo, it will be clear that this is not released and should not necessarily be expected in the future.21:08
bcsallerdrag out being a strange story to being with. Store interaction for example would make more sense 21:08
gary_postersorry, reading what you are saying now21:08
gary_posteryeah agree21:08
gary_posterbasically I think we ought to be able to show off what you have done, so people like Luca can get a feel for possibilities, while being clear that this is not actually released21:09
gary_posterit sounds like you are on the same page21:09
gary_posteragain, I realize the feature flag simply adds to the hidden nature of what you already had21:09
gary_posterbcsaller, you ok with featureflag?  if so will LGTM 21:10
gary_posterbtw, who updated the background for the gui blog?  I meant to say thank you!21:10
bcsallergary_poster: yes, fine with that, though I'd make it quite short if you're ok with it /:flags:/dnd or something21:11
gary_posterbcsaller, prefer to make it explicit.  In approval to Matt's branch I pointed to Launchpad feature flag names.  As I quoted them I thought they might be too heavy, but "dnd" is IMO an example of what we don't want: a feature flag that does not clarify what it does, and that will encourage naming conflicts21:12
bcsallerfair enough21:13
gary_posterso, I'd be fine with a naming convention that was more trusting, and more trying to state the intent rather than the letter: "choose a name that clearly indicates what it does, both for docs and for name clashes"21:14
gary_posterwe need to share this though21:14
gary_posterright now the rule is the LP rule21:14
bcsallergary_poster: right now its only enabled with sandbox (except for the hotkey, which I think is fine?) I will add the flag. I think always saying gui. and experimental can both be dropped and presence indicates enable implicitly, no?  So 'dndexport'?21:16
bcsallerif you feel strongly I can go with the whole thing though21:18
* gary_poster hates xchat sometimes21:18
gary_posterbcsaller, ok with dumping gui (was in contrast with charmbrowser. or inspector. or whatever) for now until we change our minds.  The other element is supposed to be a verb21:19
gary_posterdndexport.enable21:19
bcsallerok21:20
gary_posterthe contrast is supposed to be "disable" or a particular flavor of approach21:20
gary_posterbcsaller, you can argue against that too and say YAGNI until proven otherwise21:20
bcsallerseems like presence is on, as you'd never have to turn off a feature flag given our current plans?21:21
bcsallerthey will all say .enable21:21
gary_postermaybe so bcsaller .  go for it.  have to run. :-P21:21
bcsallerha, ok21:21
gary_poster:-)21:21
hatchbcsaller, the fix is being proposed21:43
hatchbcsaller, ok the changes are up - should QA properly now21:46
hatchyou might need to appcache-force 21:46
bcsallerhatch: I'll check it again in a few minutes, thanks21:46
hatchyep no rush thanks again21:47
hatchthanks for the qa and review bcsaller - I'll add that note into hacking22:08
hatchanyone else still working? :)22:08
* hatch wants to land this22:08
hatchbcsaller, I created a new unit-tests.rst file to document unit test gotchas and added it to the branch22:26
hatchmorning huwshimi 22:35
Makyohatch, looking at your branch because sick of bzr.22:40
hatchswitch to git?22:40
hatch:P22:40
* hatch is just trolling 22:41
MakyoHAh.22:41
hatchlol I have only found a few things that git is actually better at22:42
hatchbut they are used so infrequently it's hardly worth it22:42
MakyoYeah.  There's a lot of stuff that bzr does or can be made to do that make the transition relatively easy.  I just screwed up my local stuff.  Was going to rebuild, but I need a break.22:43
* rick_h_ sneaks up behind hatch to snuff out that nonsense he's spewing22:43
hatchhaha sounds good22:43
hatchrick_h_, lol I think you're more pro-git than I am :)22:43
rick_h_hatch: it definitely sounds so22:43
hatchMakyo, is there more recent documentation for juju charm development than https://juju.ubuntu.com/docs/getting-started.html this hasn't been updated since november22:54
rick_h_hatch: check with marco in #juju and ask about juju create and such22:55
rick_h_hatch: there's some stuff in the works but not sure where/what state it's at22:56
Makyohatch, Don't know, but yeah, check with marcoceppi.22:56
MakyoOr m_3, I think?22:56
hatchthat name has a ring to it22:56
MakyoYou talked with both of them about the node charm.22:56
hatchmarcoceppi......marcoCeppi......maaaaarcoCEPPI22:56
rick_h_heh22:57
Makyohatch, lost track of time.  Will do a code review now and try to do QA after dinner.23:05
hatchsure np - bcsaller did a QA so you probably don't have to if you don't want to23:05
hatchbut 2x is always better :)23:06
Makyohatch, will leave it up to you, but yeah, more is better23:07
hatchmaybe because it's such an integral part you should probably do another23:08
hatchI am not sure if he tested with the go back end23:08
hatchdo we have a fake go back end?23:08
hatch:)23:08
hatchMakyo, thanks for the review  - I was also curious about the story for requiring the login23:29
hatchI'll create a friday ticket23:29
Makyohatch, cool, thanks.23:32
Makyohatch, I know a lot of sites that lose your current goal when you log in, so it's not unusual by any stretch, but still.23:32
MakyoSome keep it in a ?next=<url>23:32
hatchyeah I am just thinking that if that happens and then they paste the url again they will need to log in again23:34
hatch*might need to*23:34
hatchI'd like to see a ?redirect I think...23:34
hatchor yeah... a ?next or something along those lines23:34
hatchshould be pretty easy to implement23:34
rick_h_stick it in localstorage and clear it out post-login23:34
rick_h_avoid url/router bits23:35
hatchthat might be more work23:35
Makyohatch, yeah.  I mean, pasting the URL again, they have the creds in local storage.23:35
hatchyeah if they have allowed the local storage23:35
MakyoTrue.23:35
Makyoor session storage or whatever we use.23:35
rick_h_who doesn't allow localstorage? it's pretty darn built in23:35
hatchrick_h_, it asks for permission - people click no out of habit haha23:35
rick_h_hatch: it doesn't for localstorage23:36
rick_h_hatch: you're thinking offline cache access, I just mean sticking the url to redirect to in the key/value store23:36
rick_h_http://caniuse.com/namevalue-storage23:36
rick_h_hatch: they don't ask until after 5MB I think23:36
rick_h_http://dev.w3.org/html5/webstorage/#disk-space23:37
hatchoh right23:41
hatchthat would probably be the cleanest but using the query params would be the easiest to implement23:43
hatchalthough probably not by mjuch23:43
rick_h_hatch: yea, just an idea as it's more invisible. I'm with Makyo that it'd be nice to implement url saving on login for sure23:44
hatchok well there is a ticket for Friday to discuss23:44
hatchI'm sure that it will pass pretty easily 23:44

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