/srv/irclogs.ubuntu.com/2014/02/17/#juju-gui.txt

frankbandimitern: morning. re charm GET in core? what's the plan? do we want to implement it as /charms/ HTTPS GET? if you are busy ping me later, no rush09:38
dimiternfrankban, morning! I don't think core has immediate plans to implement GET, I think we agreed you guys to do it? the placeholder for a GET handler is already in place in charmsHandler09:39
frankbandimitern: sure, so it's an HTTPS request right? not a websocket one. cool. just two questions: 1) is it ok something like /charms?charm=curl&path=path/to/file? 2) could you please point me to the code we have to use to retrieve a charm file from the storage?09:42
dimiternfrankban, 1) I'd prefer /charms?url=curl&file=path/to/file (if file= is missing, you'll get the whole archive); 2) yep, just a sec09:45
dimiternfrankban, re 2) you can take a look in repackageAndUploadCharm() in apiserver/charms.go09:48
dimiternfrankban, there's the GetEnvironStorage to access the storage interface and from there you can do a Get(name) to download it, where name := charm.Quote(curl.String())09:49
frankbandimitern: thanks, I'll take a look. so if file is missing, you get the charm as a zip, right?09:51
dimiternfrankban, yep, if you even need to get the whole thing10:00
frankbandimitern: AFAICT the GUI does not need that (at least for now)10:01
dimiternfrankban, so you can just return an error for now if file= is not given10:02
frankbandimitern: right, thank you10:02
rick_h_morning10:54
rick_h_frankban: can you look into the #1279075 card this week for release? That's the #1 bundle marketing bug from ecosystem that we'd like to have for the release/quickstart update this week.11:01
_mup_Bug #1279075: Deployer should not stop when a unit has an error <juju-deployer:New> <https://launchpad.net/bugs/1279075>11:01
rick_h_frankban: I moved it up into urgent over the other bug about the second bundle failing and such11:01
rick_h_frankban: per hazmat in the friday standup the goal is to add a flag we can pass to the deployer that tweaks the behavior but leaves it failing as it does now by default because others rely on it for CI checks and such. 11:02
frankbanrick_h_: sure. so 1) introduce a flag for the new behavior, 2) that flag is not activated by default and 3) with that flag enabled, the deployment stops only if a unit error is found in one of the units belonging to bundle specific services. correct?11:04
rick_h_frankban: well it should only stop if a service fails to come up entirely I think. If any unit comes up and can take a relation then it should11:05
rick_h_if the bundle is 5 units and 4 come up ok the bundle should continue to add relations 11:05
rick_h_actually, reading the bug they want relations added even if the units don't come up. Not sure about that, but it's the issue they're having is that large scale demo bundles often have a unit or two that don't come up and the bundle aborts and fails the demo11:06
rick_h_frankban: but yea, on 1) 2) 11:07
frankbanrick_h_: ack, ok11:07
rick_h_thanks frankban 11:08
hazmatg'morning11:14
rick_h_morning hazmat, getting TZ adjusted?11:14
hazmatrick_h_, been up for a while.. woke up 3am due to some muscle cramps post long hike yesterday.11:15
rick_h_ouch11:16
rick_h_long hike? You bring a snow blower with you?11:16
hazmatrick_h_, yeah.. everywhere around here is covered with snow and 3-8 foot high snow drifts from the blows.11:16
hazmater.. plows11:16
hazmatsomewhat surreal for the area11:16
rick_h_every time I try to take the dog for a walk I have to either wade up past my knees or risk cars sliding around on the street11:17
bachello frankban.  ought to be very quiet here today.12:11
frankbanbac: morning, not so quiet actually12:13
bacoh?12:14
bacthings on fire?12:14
rick_h_ssshhh12:25
rick_h_bac: heads up, talked with IS and there's some activity on your charmworld RT12:26
rick_h_looks like we should be heading to a resolution there soon12:26
bacrick_h_: which one?  :)12:26
bacthe deployment one or the staging setup?12:26
rick_h_bac: deployment12:26
bacyay12:27
rick_h_staging is 3rd on the list so it's down the road still12:27
bacso rick_h_ are you really here today?12:29
rick_h_bac: yes12:29
baccool12:29
rick_h_bac: I'll be here all week, tip your waitresses12:30
bacso rick_h_, in your email are you suggesting during a charmworld upgrade they do a 'destroy-service charmworld' and re-deploy it?  is that what you mean by 'get a new unit'?12:50
rick_h_bac: I'd assume they could juju add-unit, move the dns to the new ip, and then be all happy?12:51
rick_h_bac: once that was done destroy the old unit12:51
rick_h_bac: at least that's how I read things. I could be wrong12:51
bacrick_h_: their process is mysterious12:52
rick_h_bac: yea, true. 12:52
bacand by mysterious i mean way too complicated12:52
rick_h_so maybe I'm thinking it's too easy12:52
rick_h_lol12:52
=== gary_poster|away is now known as gary_poster
gary_posterWell, I've been turning my computer on and off for the last 30 minutes, doing the moral equivalent of opening and shutting car windows to see if helps the vehicle start13:39
rick_h_hah13:39
rick_h_you offend the computer coming back? 13:40
gary_poster:-) apparently so13:40
gary_posterI think I'm over 2000 unread emails...13:44
rick_h_See you thursday13:44
gary_posterheh13:45
gary_posterrick_h_, could you please verify that you have leankit kanban super-super-powers?  I'm not sure what you couldn't do before, but you now have the same privs as I do according to the interface13:46
rick_h_gary_poster: rgr, looking13:47
rick_h_gary_poster: yea, looks like it now13:47
gary_postercool thanks13:47
rick_h_whoa, board edit crazy13:47
rick_h_*cancel cancel*13:47
gary_postermoving down the checklist you sent--thanks!  also will review my logins to see what we can do13:48
rick_h_gary_poster: thanks, yea. Just stuff I thought of and ran into last week.13:48
frankbandimitern: re GET request, when sending back the file, do you think it is better to read and expand the bundle to a temp dir (and then using http.ServeFile) or to directly read the file from the zip archive and send it some way? The former seems easier/safer13:51
dimiternfrankban, I'd be a bit careful when implementing the extraction, because it's a possible DDoS target if the api server gets flooded with tons of GET requests for the same charm13:54
rick_h_dimitern: does the api call support only auth'd requests so that's not an issue? 13:54
dimiternfrankban, perhaps using a "cache" dir somewhere, and each curl gets extracted to the same place if it's not there already?13:54
frankbandimitern: well, it's a ddos target for authenticated users13:54
* bac installs trusty updates. reboots. holds breath.13:55
frankbandimitern: yeah that can be an option13:55
dimiternfrankban, rick_h_ , that's true, but still my spider sense is tingling a bit :)13:55
dimiternfrankban, also, what you get "for free" is the ability to cache charms and thus answer to subsequent GETs for the same curl faster13:56
frankbandimitern, where do you usually store this kind of cache dirs? /tmp? /var/lib/juju/?13:56
dimiternfrankban, i think /var/lib/juju/agents/.. something - take a look where the charms are cached when deployed13:57
frankbandimitern: is charm.Quote(curl) good enough as a directory name?13:58
dimiternfrankban, yes, it's intended to be filepath safe, although it's perhaps better to use the same tactic as the charmsHandler - i.e. "<charm name>-<revision>-<bundlesha256>" as filename, so that it's both readable in a list of files, and guarantees the same internal contents get the same name14:00
frankbandimitern: sounds good, thank you!14:01
dimiternfrankban, np :)14:03
bacrick_h_: i made some changes to your doc in situ.  hope you don't mind.  looks good!14:46
rick_h_bac: thanks! appreciate the help and feedback. 14:46
gary_posterrick_h_: sent you email reply with important bits14:57
rick_h_gary_poster: thanks14:57
gary_posterwelcome14:57
hatchmorning all15:48
rick_h_party15:50
hatchs club party!15:50
rick_h_jujugui meeting in 515:55
rick_h_Makyo: standup?16:00
bacbenji: have we ever tried to promulgate a bundle?  is it possible?  (done via charm-tools)16:13
benjibac: I /think/ it is possible.  I don't know about charm-tools, I thought there was a UI on charmworld to do it.16:14
Makyorick_h_, out today, not swapping.  Sorry :(16:46
rick_h_Makyo: rgr, thanks for the heads up16:46
rick_h_Makyo: can you submit that in canonical admin?16:46
Makyorick_h_, on it.16:46
benjiis it intentional that we do not confirm scaling down the number of units in a service but do confirm scaling up?  17:25
benjiIt seems just as dangerous to go from 100 to 1 as it is to go from 1 to 100.  Maybe it is because scaling up might cost someone money (directly).17:26
rick_h_benji: yea, i think that's the general idea17:28
benjiI have a small bug-fix branch up for y'all to review: https://github.com/juju/juju-gui/pull/13217:36
rick_h_benji: looking17:39
benjik17:40
rick_h_benji: it is a bit jarring isn't it, without the confirmation on downgrade. 17:43
* rick_h_ thinks we should update that as well just to be consistent17:43
benjiit is odd17:44
rick_h_yea, just stands out when you're doing both back to back. 17:44
rick_h_benji: heads up, that test failure is spurious and I'm looking into it. Feel free to :shipit: with that there18:03
benjik18:12
hatchhey benji I'm wondering if we can remove the db.fire('update') in your most recent branch as well... I'm not sure what purpose that serves any longer 18:23
* hatch notes that he might be totally wrong :)18:23
benjihatch: I can try removing it, if you want18:24
hatchwell I'm just trying to think of things which require the canvas to be re-rendered at that point...18:24
=== BradCrittenden is now known as bac
bacjujugui: any idea how we spell ISD these days?18:38
hatchisd?18:38
rick_h_ISD?18:38
rick_h_heh18:38
hazmatops :-)18:38
hazmatbac, not sure we have isd anymore18:39
hazmatdunno18:39
* gary_poster thought they were webops now18:39
gary_posteron #webops18:39
bacthanks gary_poster.18:39
gary_posterwelcome18:39
rick_h_oh, yea I think it's basically IS and webops but even webops I don't think means what it used to18:39
* bac wonders why #isd still exists, then.18:39
hazmatwell there was isd as a form of internal apps web dev at one point as well18:40
hazmatd was developer i thought18:40
hatchisd sounds like a disease haha18:40
bachazmat: yeay, and they owned SSO, right?18:40
bacs/yeay/yeah/18:41
hazmatbac, yeah.. although i think some of that shifted to online services18:42
hazmathence i'm not entirely clear they exist as a dev group anymore18:42
bacyou're right i think18:42
bacthey are still referenced in the 2fa FAQ.  of course it says it is in beta, too.18:43
bachey marcoceppi, does 'charm promulgate' work with bundles?18:51
rick_h_bac: it's supposed to, but not sure we've tested it 18:52
marcoceppibac: not really, currently to promulgate a bundle we just have a ~charmer push to lp:~charmers/charms/bundles/<bundle>/bundle18:52
marcoceppibac: there will soon be a bundle promulgate command as soon as we figure out that process for that18:52
bacmarcoceppi: for testing could i get you to promulgate one then?18:53
marcoceppibac: certainly18:53
bacmarcoceppi:  bzr+ssh://bazaar.launchpad.net/~bac/charms/bundles/muletrain/bundle18:53
bacmarcoceppi: i can be undone, right?18:53
marcoceppibac: yes, we can delete the branch later18:53
bacrt18:53
bacrick_h_: last week you asked about featuring bundles.  (one part of the orange metatask)  the answer is you can only feature promulgated bundles.  once marco promulgates that branch i'll feature it and see that it works.18:54
rick_h_bac: ah, makes sense18:55
marcoceppibac: passes proof, pushing now18:55
bacty18:55
rick_h_bac: I remembering having these discussions back when bundles were first done. Thought that was working. Oh well18:55
bacrick_h_, marcoceppi: if any of jorge's bundles are of sufficent quality we might consider promulgating them and featuring.18:56
marcoceppibac: I'll got through them again, there are a few that are supposed to be good18:56
marcoceppibac: pushed https://code.launchpad.net/charms/bundles18:56
rick_h_bac: marcoceppi there's a marketing meeting to determine featured bundles later this week18:56
rick_h_wel'll have a list from that to use18:56
bacok18:57
hatchbenji yay, less db update events....one step closer to removing double dispatch :D19:15
benji:)19:16
benjibac: I'm looking at bug 1277188 and wondering if we should change the GUI's behavior or add the proposed warning to the charm proof tool.  Thoughts?20:09
_mup_Bug #1277188: charm-proof should warn on revision-less charm URLs <charmworld:Triaged> <https://launchpad.net/bugs/1277188>20:09
bacbenji: last week i did a branch for bug 1277696 that is waiting for review/landing to juju-deployer20:12
_mup_Bug #1277696: Bundles with revision-less charm URLs should deploy <juju-gui:In Progress> <https://launchpad.net/bugs/1277696>20:12
bacbenji: that branch makes the behavior the same across deployment-ers20:13
benjibac: oh!  so the card for 1277188 should be... deleted?  blocked pending the other landing?20:13
bacso bug 1277188 now really is about  just making 'charm proof' spit out a warning20:13
_mup_Bug #1277188: charm-proof should warn on revision-less charm URLs <charmworld:Triaged> <https://launchpad.net/bugs/1277188>20:13
bacbenji: not blocked, imo.  just do it.20:14
bacthey are uncoupled.20:14
benjisounds good20:14

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