/srv/irclogs.ubuntu.com/2014/01/27/#juju-gui.txt

=== gary_poster|away is now known as gary_poster
gary_posterok, in addition to having my opinion of System 76 machines reinforced, now my opinion of Dell machines is reinfirced. :-/13:26
rick_h_gary_poster: +1 all the way around13:32
gary_poster:-/13:32
rick_h_at least in laptop land13:33
gary_posterThat was what I was thinking--if I got a desktop I'd be fine13:33
gary_posterNo such luck this time around, anyway13:33
rick_h_yea, I did go with system76 for a desktop and ok. Laptops though I'm still not a fan yet. Seen too many issues and build isn't as solid as I'd like13:33
gary_posterI don't know who to use for desktops now.  Laptops I'm Apple, and Lenovo otherwise, from here on out until convincing evidence is given. :-)13:34
rick_h_that's what I've got written down (reverse order)13:35
gary_posterheh13:36
gary_posterfrankban, hey.  replied to Wm's email about the GUI authentication issues.  Curious about your thoughts, including whether you'd like to set up a meeting with him to explore more.14:01
frankbangary_poster: looking14:01
gary_posterty14:02
hatchmorning14:04
rick_h_party14:04
gary_posterhiya14:05
hatchis there a way to get askUbuntu to email me every time something happens on a thread I've interacted with? 14:19
hatchThis weekend I found myself wanting 'to' functionality in the GUI14:24
hatchbecause quickstart is in juju-stable will it be in universe in 14.04?14:25
rick_h_it was a goal I thought so that it helps you get juju installed14:26
hatchI was thinking that it NEEDS to be in there haha, the quickstart story i just too awesome not too14:26
rick_h_yea, jcastro showed it off and had some <3 for it end of last week14:27
hatch`apt-get install juju-quickstart && juju-quickstart ghost-bundle-simple` is an awesome story14:27
rick_h_yep14:28
frankbanhatch: I just sent an email about oddities I've found while working on the server side basic HTTP auth for the putCharm functionality. Could you please take a look?14:58
hatchyup reading it now14:59
hatchfrankban just to clarify - does option 1 work in firefox 100% of the time?15:06
hatchor does it also fail the first time15:06
gary_posteralso fails first time, according to email15:07
frankbangary_poster, hatch: right, also first time15:08
hatchhmm15:08
hatchlooking into this15:08
frankbanhatch: thank you, it would be nice if you are able to reproduce that15:09
hatchI'd need the charm, have you uploaded the version where this is happening?15:09
gary_posterfrankban: looking for bugs.  so far only found http://stackoverflow.com/questions/9459017/xmlhttprequest-authentication-not-working-in-firefox : 2012, so old, and no resolution.15:10
gary_posterfrankban: OPTIONS call? http://stackoverflow.com/questions/19234892/xmlhttprequest-based-cors-call-with-basic-auth-fails-in-firefox-and-chrome15:12
gary_posterworth investigating charm log at least15:13
hatchthat should only be required cross domain15:13
frankbanhatch: lp:~frankban/charms/precise/juju-gui/http-proxy is what I have now. It would be nice if we can dupe that excluding the proxy, to ensure this is not a problem on the gui server side. e.g. pointing the GUI directly to the core API server15:14
hatchfrankban I'm pulling down the charm now and will give it a go15:14
gary_postertrue15:14
gary_posterhatch, frankban, but charm log coudl be informative15:14
hatchfrankban the env is spinning up, I'll keep you posted15:22
bachey rick_h_ can you review https://pastebin.canonical.com/103628/plain/ before i submit the RT to see if i forgot anything?15:24
rick_h_bac: looking15:24
bacrick_h_: i've verified there is no impact on CI so the window where qa and staging point to the same machine is unnecessary15:25
rick_h_bac: so we verified we can keep that IP if we have to rebuld staging/qa?15:25
rick_h_bac: that's the only part I have questions on in that. Looks good otherwise. 15:25
rick_h_bac: I don't know how staging. is currently handled with a rebuilt/keeping the IP in canonistack15:26
bacrick_h_: we currently control the IP used by staging.j.c.  it is assigned in the deploy script to the apache instance.  the revno is subsequently updated by using juju, so the FQDN is never used again.15:26
rick_h_bac: ah ok then15:26
bacso the name can change and no one notices or cares, except those of us who want to hit it15:27
rick_h_right15:27
bacok, i'll submit pretty much as is.  i just didn't want to file an RT with obvious holes.15:27
rick_h_bac: yea, looks like what we talked about here15:28
bacsimplified15:28
rick_h_right, because we control the IP address it makes things easier?15:28
bacrick_h_: well because the name 'staging' is not used in any of the CI machinery15:29
rick_h_bac: right cool15:30
bacgary_poster: do we have a departmental meeting with IS?15:36
gary_posterbac, every other thursday.  cancelled this week because they are out.  Do you have somethng to raise?15:37
hatchvim's recording 'feature' has to be the under the worst key possible lol15:38
bacgary_poster: yeah, i filed an RT for getting staging on prodstack.  asked spads what else to do to get it scheduled and he said to raise it in that meeting.15:38
gary_posterheh, it has bitten me more than anything else in vi as well, yes, hatch15:38
bacgary_poster: i don't think we want to wait 2.5 weeks to get it on the radar15:38
gary_posterbac ack. I can ask mramm to escalate to robbiew, who can set priority.  gimme rt?15:39
bacgary_poster: RT 6725715:39
gary_posterbac, ok. will cc you.15:39
bacthanks15:40
=== arosales_ is now known as arosales
gary_posterbac, staging.jujucharms.com is confusing naming IMO and FWIW.  staging.manage.jujucharms.com?  managestaging.jujucharms.com?  ugh, I know, but we will probably want staging for GUI jujucharms also, unless it is wiped out in favor of other sites soon.15:41
gary_posterthat's not important for me escalating--just a comment/thought15:42
bacgary_poster: good point15:42
frankbangary_poster: I am still debugging. re: GUI/quickstart auth, I like your idea, a command like that can be used also by quickstart. curious to see if they come up with other ideas15:45
gary_postercool frankban thx15:45
bacgary_poster: ok, i'll modify to request staging.manage.jujucharms.com and qa.manage.jujucharms.com.  what a mouthful.15:45
hatchfrankban ok I finally got this thing up and running and am getting a 400 when trying to upload the charm15:45
gary_poster:-) k thanks15:46
rick_h_gary_poster: bac in the prioritizing, can we keep the 'move jujucharms to juju-core' above this?15:47
gary_posterrick_h_: ack, +1.  rt please?15:47
bacrick_h_: +115:47
frankbanhatch: 400? how did you create the zip?15:47
rick_h_gary_poster: 6716715:47
rick_h_thanks15:47
frankbanhatch: FWIW, the charm files must be at the root of the zip, e.g. it does not work if you compress the charm dir15:48
gary_posterthanks rick_h_.  bac, rick_h_, I suggest making RT links on the kanban cards if you have not already15:48
rick_h_gary_poster: yep, full link is there15:48
gary_posterack thanks, soory I missed it15:48
hatchfrankban I downloaded the zip from github for my ghost charm15:48
hatchfrankban I pinged you the url15:48
frankbanhatch: what are the zip contents? does it create a root dir when you decompress it?15:50
hatchfrankban well would that give me a 400 if they weren't?15:50
hatchwhat should I look for in the charm to make sure I have the proper one deployed?15:51
frankbanhatch: what's the content of the response body?15:51
hatch{"Error":"invalid charm archive: bundle file not found: metadata.yaml"}15:51
gary_posterwell there ya go ;-)15:52
frankbanhatch: exactly, metdata.yaml must be at the zip root level.15:52
rick_h_hah15:52
hatchok that's not going to work15:52
frankbanhatch: so you need to create another zip to test it15:52
hatchwill do15:52
hatchbuut we will need to allow it to be nested one folder deep15:52
gary_postermethinks that dragging a folder (and having us figure out what to zip) will be much less fiddly for users15:53
rick_h_+115:53
frankban+115:53
rick_h_though I think the idea of wget xxx.zip and deploy it will be more adminy-useful. 15:54
rick_h_kind of like bundles where they're getting sent around via email you can more easily link/share a local/dev charm as a single file15:54
rick_h_jujugui call in 5?15:55
gary_posterbah thank you15:55
hatchfrankban works with a single request in chrome15:56
frankbanhatch: how do you see that it's a single request?15:57
hatchjust looking in the network tab15:57
hatchlooking in the charm logs now15:57
frankbanhatch: ok15:58
frankbanhatch: /var/log/upstart/guiserver.log15:58
gary_posterjujugui call in 215:58
gary_posterMakyo pingy16:01
hatchfrankban ok I see the two requests in the guiserver logs16:01
hatchafter the call I'll try firefox16:01
frankbanhatch: cool16:01
hatchfrankban unfortunately I can reproduce your issue with Firefox but Chrome works 100% of the time16:12
frankbanhatch: Firefox version?16:13
hatchfrankban OSX 26.016:14
hatchit has the issue, open firebug, works no problem :/16:15
frankbanhatch: re python gcc errors: try installing libpython-dev, if that fixes the issue please add it o sysdeps16:15
hatchuable to find package16:15
frankbanhatch: libpython2.7-dev16:16
frankban?16:17
hatchfrankban https://gist.github.com/hatched/8651673 these are all the packages I have available16:19
frankbanhatch: just python-dev?16:20
hatchinstalling16:21
hatchhah16:21
frankbanhatch: so, were you able to dupe the problem in FF?16:21
hatchfrankban yes, now trying to track down the issue because clearly this is unacceptable 16:21
frankbanhatch: cool thanks, weird the firebug thing16:22
hatchyeah....and you were saying that the same issue happens with option 2?16:22
frankbanhatch: yes, with option 2 FF just refuses to include the auth header in the first request16:23
frankbanhatch: but you can dupe that too switching to juju-gui-debug=true and applying that diff16:23
hatchyeah, I'll take your word for it for now, just doing some research16:24
frankbanhatch: I'd be curious to see what's the IE behavior16:24
hatchI can spin IE up after my next call16:24
hatchunfortunately I feel like I'm coming down with a cold so brain is moving a little slow haha16:25
frankbanheh16:27
hatchfrankban ok I'm going to apply the diff and see option 2 - firefox strips the auth headers unless the server responds with a 401, it then should make another request with the headers16:28
frankbanhatch: so firefox don't trust us16:29
hatchit doesn't :) but it SHOULD be making the second response after the guiserver responds with the 40116:29
hatchbut it doesn't appear to be doing so unless firebug is open16:29
gary_posterluca_: https://plus.google.com/hangouts/_/canonical.com/discuss-local ?16:31
gary_posterrick_h_: Makyois sick16:32
luca_gary_poster: thank you :)16:32
gary_posterwelcome :-)16:32
hatchfrankban I guess a hacky workaround is to have it try twice :/16:32
rick_h_gary_poster: ok, thanks for the heads up16:33
frankbanhatch: I think we are hitting https://bugzilla.mozilla.org/show_bug.cgi?id=90134216:43
frankbanhatch: if you send a string in place of the zip file, the second request is correctly executed. Also note that the firebug network tab is mentioned in the bug comments too :-/16:45
hatchfrankban hah, in call, will read in a bit16:46
hatchfrankban ok off call, reading now17:08
hatchfrankban I would agree that's the same bug17:09
frankbanhatch: yeah, tried changing the GUI to send a random string and the second POST request is corretcly sent by firefox17:09
hatchok, so....workaround is to try multiple times?17:09
hatchI'll also add the most recent version of firefox to that bug17:10
hatchyuck I hate writing hack code to workaround bugs17:10
hatchbleh17:10
hatchfrankban I'm spinning up a windows 8 vm to test there17:11
frankbanhatch: sending the file contents?17:12
hatchfrankban well we try once, if it doesn't resolve to 200 in x seconds then try again 17:12
hatchthat 'should' workaround the firefox issue17:13
frankbanhatch: 200 or 400 or 500...17:13
frankbanhatch: and now IE... at least it seems the proxy works well17:15
hatchyes we'll need to check those other responses as well.17:16
hatchyep testing Ie now17:16
hatchyeah the proxy seems to work just fine :)17:16
jcsacketthey juju-gui, is bac likely to be back online today? have some questions about some ingest code of his.17:17
rick_h_jcsackett: should be17:18
rick_h_jcsackett: his interwebs hate him17:18
hatchfrankban it looks like Windows can only (natively) turn a folder into an archive so if the charm has to be the root in the zip then that's not a very good story in Windows. This was a limitation of the juju-core implementation? 17:18
jcsackettrick_h_: awesome. i'll shoot him an email then so he and i can link up whenever he's back.17:18
jcsackettthanks.17:18
frankbanhatch: yes, we can propose core devs to change the API like the following: if the zip root includes only a directory, assume the charm is included in that directory. the directory name should not be relevant17:21
hatchright ok good I'll file a bug to that effect17:21
frankbanhatch: cool thnaks17:21
hatchat the moment I'm having issues with my ie vm connecting to my juju instance 17:22
hatchsorry for the delay17:22
frankbanhatch: np17:22
* rick_h_ goes to have a lunch shoveling snow while he waits for his snow blower to arrive 17:22
hatchlol17:22
frankbanhatch: FYI I noticed that if an error occurs core returns a 400 code and the details can be found in the response body. we need to handle that case, maybe just adding an error notification17:24
hatchok sounds good, I wasn't entirely sure the structure of the response but now that we have it it's easy to check for.17:24
frankbansure17:24
hatchugh I hate Windows17:38
hatchI can't seem to get this tunnel to work17:38
hatchyay finally got the tunnel to work17:56
hatchshould have known to just done it in the host17:56
hatchfrankban  just FYI it looks like there is an issue with the .zip upload in IE but the inspector is....well it's the IE inspector lol 18:06
hatchfrankban  here is the error from IE when I try to upload a zip https://gist.github.com/hatched/b80599004f52d3464458 does this look like an error from juju-core/guiserver? The IE inspector is being pretty useless so I'm having a hard time tracking it down 18:31
hatchgary_poster https://bugs.launchpad.net/juju-gui/+bug/1273363 IE11 show non-supported browser window....I'll let you decide if this is an issue or not :)18:34
_mup_Bug #1273363: Non-supported browser warning on IE11 <juju-gui:New> <https://launchpad.net/bugs/1273363>18:34
gary_posterhatch: does everything else work?18:34
gary_posterhatch, nm: I will add IE 11 support to huw's list, and see if he's willing :-)18:35
hatchgary_poster nope there are some d3 issues18:35
hatchat least that's all I've found18:35
gary_posterhatch, darn.  ok thanks18:35
hatchso it IS broken so that's a good thing the warning is there18:36
gary_posteryup18:36
gary_posterthough we should maybe suggest IE 10 also :-)18:36
hatchyeah that's probably a good idea18:38
hatchfrankban ok I've figured out why IE doesn't work for dropping the zip.... IE calls zips "application/x-zip-compressed" not "application/zip"18:41
MakyoUgh.  Alright.  Half-here.  Will be all-here once meds kick in.18:42
rick_h_Makyo: hey, good meds I hope. If you get a sec would appreciate a pointer to the location of the code you reference in the reafctor card for "Finding the real position from canvas coordinates"18:43
rick_h_Makyo: my git-fu is failing to find something promising18:43
Makyorick_h_, sure thing!  One sec.18:43
frankbanhatch: uhm, thanks for investigating18:44
hatchfrankban I'll take over getting the fix landed for that18:44
hatchfrankban after adding python-dev I was also able to get make check to run on quickstart thanks18:45
hatchso-much-multitasking18:45
frankbanhatch: cool, :-)18:45
hatchfrankban maybe 2h before our daily tomorrow you can give me a walk through of the execution order of quickstart? 18:46
hatch3 vm's running and this thing is still humming along18:49
hatchvroom vroom18:49
MakyoOh for pete's sake.18:49
jcsackettbac: can you look at https://code.launchpad.net/~jcsackett/charmworld/fix-trigger-test-criteria/+merge/20340118:58
bacjcsackett: sure18:58
jcsackettthanks.18:58
bacjcsackett: done and thanks.19:04
hatchrick_h_ it looks like your neighbours across the street are lazy at snow removal :)19:26
rick_h_hatch: heh, he's got a giant john deere two stage thrower. I think he waits for it to get high enough to be able to use his beast and then just does 3 passes and calls it a day19:27
hatchlol19:27
rick_h_and when I see him out I beg him to run his giant machine in front of the mailbox19:28
hatchcommunity mail there?19:28
rick_h_?19:29
rick_h_we all have a mailbox and mail person that delivers each day19:29
rick_h_not sure what makes community mail or what other options there are19:29
hatchohh now I See, sorry I didn't look close enough19:30
hatchrick_h_ the new areas here have a single mailbox which you have to walk to instead of curbside or at the door mailbox19:33
hatchis what I meant about a community mail19:33
rick_h_ah, yea that would stink19:33
bacbenji, rick_h_: i've added a note regarding the deployment issue to our google doc with the rollout instructions. please be aware of it if you request a deploy in the near future.19:33
rick_h_bac rgr19:34
benjik19:34
bacrick_h_: sadly deej is not going to be around to work on it this week.  :(19:34
hatchrick_h_ haha I agree it would19:34
rick_h_bac: bummer, hate this stuff hanging over our heads19:35
bacyep19:36
hatchI wonder if juju will run in a vagrant instance 20:20
rick_h_hatch: they've got images for that20:21
rick_h_hatch: http://blog.utlemming.org/2013/12/beta-cross-platform-juju-development.html20:21
hatchcool I'll have to check those out. Until I can get an on-metal version of Ubuntu working vagrant images seem like the most efficient way of working on various juju bits20:22
hatchactually, even after I do it would probably still be the best20:22
hatchmdn.microsoft.com now requires you to log in to read the docs.... FAIL20:24
hatchmsdn that is20:24
rick_h_jujugui review please https://github.com/juju/juju-gui/pull/87 I think I found the code Makyo was referring to. Makyo if you're up for a review would appreciate your eyes to make 100% sure it's the right things. 20:31
MakyoYep, on it rick_h_ 20:31
bacman, ignore your trusty vm for a few days and there is hell to pay.  so much updating.20:32
rick_h_bac: hah, tis true20:32
bacit's like one of those damned japanese toys you have to feed20:32
rick_h_just hope it didn't die from neglect and now it can't come back to life20:32
* rick_h_ updated the laptop to trusty this weekend so out of stable machines. Crosses fingers20:33
hatchrick_h_ you updated your work machine to non-stable env? lol20:36
hatchrebel!20:36
rick_h_hatch: both of them man, it's crazy20:37
hatchbac what do you use to clean your laptop screen? 20:37
rick_h_will have to stagger updates20:37
hatchlol!20:37
hazmatrick_h_, how's it been so far?20:37
hatchI usually wait months before updating to the newest STABLE version haha 20:37
rick_h_hazmat: trusty? so so. Just got lxc juju working today with the 'manually create /etc/lxc/auto' trick and latest golxc20:37
rick_h_hazmat: other than that been fine20:37
bachatch: hah, i use the squirt bottle i bought from sunglasses hut for $5 b/c they promised free refills and a microfiber.  luckily there is SG Hut 1/4 mile from here so i will make them refill that sucker until i get my money's worth.20:38
hazmatrick_h_, cool, good to hear. i'll probably wait few weeks, but planning on diving early20:38
bacthat said,i think windex and a rag works really well20:39
hatchhaha ok, so some diluted rubbing alcohol it is then! I was going to try the same but I wasn't sure....apple and all haha20:39
rick_h_hazmat: yea, laptop was kind of on rarind and ran into some issues with old python so jumped20:39
rick_h_raring20:39
bachatch: it's just glass.20:40
bacwell, sort of20:40
hatchbac no it's squishy 20:40
hatchI thought it was glass too20:40
hatchhaha20:40
rick_h_hatch: it's magic apple glass. You have to take it to an apple store for cleaning or void your warranty :P20:40
hatchrofl20:40
hatchI wouldn't put it past them20:40
bacrick_h_: is this the problem with lxc/trusty that was supposedly solved: ERROR Get http://10.0.3.1:8040/provider-state: dial tcp 10.0.3.1:8040: connection refused20:49
rick_h_bac: no, that's a failed old environment. rm your .juju/environments/local.jenv I think20:50
baci don't have one of those20:51
rick_h_bac: also make sure `sudo lxc-ls` is clear of any lingering units20:51
bacit is20:51
bac:)20:51
rick_h_bac: is anything in .juju/environments?20:51
bacwait it was local.jenv20:51
bacthanks20:51
rick_h_cool20:52
rick_h_bac: and then sudo mkdir /etc/lxc/auto 20:52
rick_h_will fix the last issue I had today20:52
bacalready did that20:52
rick_h_k20:52
huwshimiMorning21:59
gary_postermorning21:59
hatchahoy huwshimi21:59
hatchsweet charm upload now works in IE1122:13
hatchthat was kind of a pita to debug, but the new IE11 debugger is leagues ahead of it's predecessor 22:14
hatchjujugui looking for a review https://github.com/juju/juju-gui/pull/88 no qa necessary22:14
gary_postercool hatch.  any result on the FF issue?  I didn't see a resolution22:15
gary_posterI will review22:15
hatchgary_poster we ran into what we think is this bug https://bugzilla.mozilla.org/show_bug.cgi?id=901342 but with the changes to fix IE appear to have fixed FF, I'm going to have to spin up my other ubuntu vm to check there too22:17
gary_posterhatch, so you mean the auth headers sem to have fixed FF?22:18
hatchI find when I open certain vm's together it kernel panics so gota do all this in order haha22:18
gary_posterheh\22:18
gary_posterI saw the bug from frankban's email, yeah22:18
hatchgary_poster yeah, they are now working first time every time in OSX22:18
hatchOSX FF that is22:18
gary_posterawesome22:18
hatchChrome always worked22:18
hatchIE11 required them....even though there is absolutely nothing wrong with how we were doing it before22:19
hatch:/ IE22:19
gary_posterhatch +1 with ultra trivials.  Only downside to new setup is that making small changes feels so expensive now. :-(22:19
hatchbut hey....if it works better...yay22:19
gary_posterdefinitely yay22:19
hatchlots of moving parts for sure - not to mention the required setup to build custom juju, custom charm, custom branch lol22:21
hatchI wish I had a vm with IE10 still....but it looks like Win 8 just auto updated me to 1122:21
hatchmaybe that's a good thing, everyone else with IE10 will be running 1122:21
gary_posterheh ok22:22
hatchso the gui charm is using the tornado web server?22:24
gary_posteryes22:24
hatchwell the good news is that it works properly according to the basic auth spec....unfortunately browsers don't haha22:25
hatchgary_poster the auth headers appear to have fixed it in Ubuntu FF which is odd because Francesco said that wasn't the case....but I'm sure he will test it again while working on the charm22:49

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