/srv/irclogs.ubuntu.com/2015/02/05/#juju-gui.txt

=== kadams54 is now known as kadams54-away
=== hazmat is now known as hazaway
=== hazinhell is now known as hazmat
frankbanuiteam I need two reviews for https://codereview.appspot.com/195690043 (quickstart/python)14:26
frankbanthanks!14:26
hatchon it frankban 14:36
frankbanhatch: thanks14:37
frankbanhatch: have you seen my email re juju connect stuff?14:37
hatchnot yet14:38
hatchi will14:38
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
hatchfrankban: review and qa done15:34
hatchlooks good15:34
hatchfrankban: I am interested to know why you wrapped those two methods?15:35
hatchfrankban: so why did you wrap those functions in a functools.wrap decorator? can you not return a function in python normally?16:26
frankbanhatch: functools.wrap preserves the original name and documentation of the decorated function16:28
hatchfrankban: ahh16:29
frankbanhatch: FYI those values are stored in func.__name__ and func.__doc__ 16:31
hatchinteresting that those aren't included by default16:39
hatchany idea why the gui charm needs firefox in its sysdeps?17:12
* hatch cry's "I just want to run the linter"17:16
mbruzekhatch ping17:16
hatchsup17:16
hatchuiteam, anyone know why I wouldn't have the correct version of pip for the guicharm linter? 17:17
frankbanhatch: firefox is required by functional tests using selenium17:17
frankbanhatch: not sure if I understand your second question17:17
hatch# Ensure the correct version of pip has been installed17:18
hatchtests/.venv/bin/pip --version | grep "pip 1.[4-9]" || exit 117:18
hatchmake: *** [setup] Error 117:18
hatch^ frankban 17:18
mbruzekhatch: I am trying to figure out the charm store uris17:18
frankbanhatch: what pip version do you have?17:18
hatch1.5.417:18
hatchpip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)17:19
mbruzekhatch: Kapil has a launchpad url lp:~hazmat/charms/bundles/kubernetes/bundle17:19
* hazmat ears are ringing17:19
frankbanhatch: tests/.venv/bin/pip --version 17:19
mbruzekhatch: and quickstart maps to that  juju quickstart bundle:~hazmat/kubernetes/kubernetes17:19
mbruzekhello haz17:19
mbruzekhello hazmat17:20
hazmatgreetings17:20
hatchfrankban: ummm 6.0.7?17:20
frankbanhatch: really?17:20
hatchmbruzek: if you want to deploy a bundle using quickstart or the depployer then you'll have to use the old yaml format17:20
mbruzekhatch: trying to figure out how quickstart maps bundle:~hazmat/kubernetes/kubernetes to lp:~hazmat/charms/bundles/kuberentes/bundles17:20
hatchpip 6.0.7 from ......../develop-trunk/tests/.venv/local/lib/python2.7/site-packages (python 2.7)17:21
hatchmbruzek: it guesses17:21
hazmatmbruzek: on lp distro is charms, series is bundle is the nutshell17:21
mbruzekhatch trying to figure out the mapping so I can write readmes for other bundles17:21
frankbanhatch: I am rebuilding the devenv for the char, and checking again17:21
hatchmbruzek: all of that is changing soon - makyo_ is working on updating the deployer to support the new syntax17:22
hazmathatch: thats not url syntax is it? i thought it was mostly just syntatic incompatible format changes17:23
hazmatin the bundle itself17:23
mbruzekhatch So I am writing a readme for how quickstart works now.  I just want to know what format will work with our bundle here:  p:~kubernetes/charms/trusty/kubernetes-bundle/trunk17:23
hatchno the url changed as well17:23
hatchmbruzek: if you want to use that you'll have to point to the old yaml file directly17:23
hatchthe new bundle yaml format is not supported by the deployer17:24
mbruzekhatch: I don't want to point to that url, I like the bundle: uri, I just need to know how it works.17:24
frankbanmbruzek: quickstart still uses the old charmworld for bundles, and the supported syntax is described in quickstart --help17:24
mbruzekfrankban: thank you.  Will read up on that17:24
hatchfor some reason the deployer wasn't updated before the bundle syntax was17:24
frankbanmbruzek: it will be updated soon to support the new bundle URLs17:24
hatchfrankban: why do we want to use such an old version of pip? 5 major versions older?17:25
mbruzekhatch: frankban: I see the help text now, it seems that quickstart supports 5 formats.  Which one would you recommend?  I see things are changing, what would be the format that would be recommended that works now and in to the future?  17:27
hatchI think those two are mutually exclusive :) 17:27
mbruzekdoh17:27
hatchjuju quickstart bundle:mediawiki/single17:28
hatchwe want this format to work17:28
hatchbut currently it doesn't17:28
frankbanhatch: I think in the future we want "juju quickstart bundle/mediawiki-single"17:29
frankbanmbruzek: ^^^17:29
hatchoh jeeze that's a new format to me17:29
mbruzekhatch: frankban:  Our bundle currently lives here:  lp:~kubernetes/charms/trusty/kubernetes-bundle/trunk  17:29
hatchI think I'll just write code - give up on what format is what lol17:29
frankbanhatch: in the new charm store, the "bundle" string is not a schema, is a series17:29
mbruzekIt is not yet promulgated.  Is that in a wrong spot?  Should we change that?17:29
frankbanhatch: it seems that pip quickly switched from version 1.5.6 to 6.0 :-|17:31
hatchlol17:31
frankbanhatch: so yes that check should be changed, feel free to do that as part of your branch17:31
hatchfrankban: what was it there for? 17:31
hatchThere must be a reason why we checked at all17:32
frankbanhatch: I did not add that code, so not sure, perhaps some backward incompatible changes with previous pip versions17:32
hatchso think I can just remove the check entirely?17:32
frankbanhatch: I'd suggest to keep the check, just make it more permissive17:34
hatchso just greater than 1.4?17:34
frankbanhatch: +117:34
hatchfrankban: do you know of a way to structure the grep for that? I am having a heck of a time nesting the conditionals in the makefile17:51
hatchifndef apparently doesn't work for me17:52
hatchoh makefiles17:52
frankbanhatch: grep -E "pip (1.[4-9]|6)" ?17:54
hatchnegative, tried that :)17:55
hatchhere is what I am attempting to do in the makefile (and failing) https://gist.github.com/hatched/83544f1c201ee1a71a6e17:56
hatchfor some reason ifndef is not found?17:56
frankbanhatch: what I suggested works here18:00
frankban% echo "pip 6.3" | grep -E "pip (1.[4-9]|6)"                                                                                                                                                                                               (trunk) ubuntu18:00
frankbanpip 6.318:00
hatchyeah it works from the echo but not in practice18:01
hatch tests/.venv/bin/pip --version | grep -E '1\.[4-9]\.|6\.[0-9]\.[0-9]' || exit 118:15
hatchbleh lol18:15
mbruzekhatch: I tried to deploy using quickstart using a raw html bundle, but none of the charm store charms showed up.  I ran this with --debug and the pastebin is here. http://paste.ubuntu.com/10076915/  Can you help me18:17
mbruzek?18:17
hatchlooking18:18
hatchwhat was the command you used?18:18
hatchbtw thanks for writing these docs :)18:19
hatchmbruzek: still there?18:25
mbruzekyes18:25
hatchwhat was the command you used?18:25
mbruzekjuju quickstart https://raw.githubusercontent.com/whitmo/bundle-kubernetes/master/bundles.yaml --debug 2>&1 | tee quickstart_problem.txt18:25
mbruzekThe bundle is legit, it works with deployer and references Charm store uris18:26
mbruzekI am trying to figure out why none of the charms are loaded18:26
hatchhmm yeah you're right it looks good18:29
frankbanmbruzek: quickstart states that the bundle deployment request has been accepted18:29
mbruzekfankban I can show you the juju status that tells me otherwise18:29
mbruzekor the gui if you don't believe status18:29
* mbruzek *grins*18:29
hatchmbruzek: have you tried deploying those services directly? 18:29
frankbanmbruzek: what's the content of https://15.125.118.3/gui-server-info18:29
frankban?18:29
mbruzek{"uptime": 3435, "deployer": [{"Status": "started", "Queue": 0, "DeploymentId": 0, "Time": 1423157614}, {"Status": "scheduled", "Queue": 1, "DeploymentId": 1, "Time": 1423159220}, {"Status": "scheduled", "Queue": 2, "DeploymentId": 2, "Time": 1423159241}, {"Status": "scheduled", "Queue": 3, "DeploymentId": 3, "Time": 1423159325}], "apiversion": "go", "sandbox": false, "version": "0.4.2", "debug": false, "apiurl": "wss://10.0.0.166:17070"}18:30
frankbanmbruzek: so you have pending bundle deployments in the queue, they are executed in order18:31
mbruzekfrankban: I guess I tried this bundle several times now.18:31
mbruzekI can destroy and start over again, but I don't think I would get a different result.18:31
mbruzekhatch: I have deployed this bundle through juju-deployer when have the bundle on my local machine.18:32
frankbanmbruzek: let's check the guiserver logs: they are stored in the gui unit in /var/log/upstart/guiserver.log18:32
mbruzekon machine 1?18:33
frankbanmbruzek: wherever the gui unit is placed: juju ssh juju-gui/018:33
mbruzekfrankban: OK found it, is that safe to pastebin?  It does not show my keys or other stuff?18:34
frankbanmbruzek: I think so, but let's use the canonical pastebin18:35
mbruzekfrankban: working on it18:40
frankbanmbruzek: ty18:40
mbruzekfrankban: had to paste it by hand, no upload feature on pastebin.canonical.com18:45
mbruzekhttps://pastebin.canonical.com/125051/18:45
frankbanmbruzek: uhm... I don't see any errors in the logs. it seems that the deployer is still working on your first bundle as usual, except it's not deploying anything18:49
frankbanmbruzek: you can try, from that machine, "sudo service guiserver restart", then "juju set juju-gui builtin-server-logging=debug" and then try to deploy the bundle again (once) and see if the logs show something18:50
mbruzekI see a python exception in queues.py is that nothing?18:50
frankbanmbruzek: not sure if that's related to the bundle deployment18:53
frankbanmbruzek: but it's well over my EOD now and I have to go, so could you please try what I described and file a bug against the GUI charm with the info attached?18:54
mbruzekwill do,  thanks for your assistance frankban.18:55
mbruzekHave a good day18:55
mbruzeknight18:55
frankbannight and ty18:55
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
hatchuiteam do we know which branch I should push my guicharm changes to? lp:charms/trusty/juju-gui  or  lp:~juju-gui/charms/trusty/juju-gui/trunk 20:31
hatchand by push I mean propose20:31
=== kadams54 is now known as kadams54-away
hatchuiteam lf a review for a smallish diff https://code.launchpad.net/~hatch/charms/trusty/juju-gui/add-uuid-configjs/+merge/24882620:46
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
rick_h_hatch: juju-gui/charms/trusty/juju-gui/trunk22:22
hatchoh hai!22:23
hatchyeah I have it up for review22:23
hatch:)22:23
rick_h_ah cool22:24
hatchtornado is bonkers22:25
hatchjust so you  know :P22:25
rick_h_:)22:25
rick_h_async python ftw22:25
rick_h_hatch: just think of it like nodejs22:25
hatchehh I'm still thinking an async language might be better :)22:25
hatchmakyo_ and I are going to have to get schooled by frankban tomorrow :)22:26
rick_h_heh, docs aren't bad22:27
hatchnah it's just trying to find the correct spot to put things in the guiserver is the issue22:27
rick_h_gotcha22:27
hatchhaving a yeild in the middle of a function then never returning to it really threw me for a loop22:28
huwshimiMorning22:32
hatchmorning huwshimi 22:32
rick_h_morn22:32
hatchI fixed some of the rendering performance issues in leankit by modifying their stylesheets :) 22:32
hatchthere are cascading shadows and transparencies so it's no wonder you get screen tearing on slower machines22:33
hatchI found this cool site that shows benchmark comparisons for various languages. http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=dart&lang2=go22:43

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