Wednesday, 2017-01-25

*** karimb has quit IRC02:18
-openstackstatus- NOTICE: Gerrit is going to be restarted due to slow performance12:45
-openstackstatus- NOTICE: Gerrit has been successfully restarted12:48
*** dmsimard|off is now known as dmsimard14:02
*** themurph has joined #ara14:03
dmsimardboxrick1: saw your messages, sorry I was off yesterday. Did you end up figuring it out ?14:18
boxrick1Yea all good, managed to get it working.14:18
boxrick1It would be useful to see which host ran a particular playbook since I am using this for about 10 different deployment hosts14:19
boxrick1With a central ARA box14:19
boxrick1brb 1 sec gotta nip and grab food from canteen before it shuts!14:20
dmsimardboxrick1: hm, but ARA doesn't know that :)14:20
dmsimardboxrick1: however, I do have an idea about how you could do it -- let me know when you're back :)14:20
boxrick1Ahh I am back14:35
boxrick1What are your thoughts then ?14:36
dmsimardboxrick1: so ARA has no clue where it's being run from -- Ansible doesn't really either14:39
dmsimardboxrick1: My idea is that you could have two simple tasks, let me put up a gist, hang on14:39
boxrick1Is there not a simple case of an extra DB entry ?14:39
boxrick1Oh by the way, lovely tool. Will come in great use :)14:40
dmsimardboxrick1: you could likely do it this way: https://gist.github.com/dmsimard/a927aebd453ac8f6300f74e6057811cb14:41
dmsimardSee docs: http://ara.readthedocs.io/en/latest/usage.html#using-the-ara-record-module14:42
dmsimardYou can see what it looks like in practice here at the bottom of the page: http://logs.openstack.org/51/424251/3/gate/gate-ara-integration-latest-ubuntu-xenial/8efa513/logs/build/playbook/149075a7-ba6d-433c-8ce8-821355b6f397/index.html14:42
boxrick1Ok that makes sense14:43
dmsimardboxrick1: so my design philosophy with ara is to keep it as simple as possible *but* provide the means for people to do what they need, "just an extra DB entry" would make it so there'd be dozens of just another DB entry :)14:44
dmsimarda good example is that ara_record feature came from the need of a user that needed to record which git sha1 the playbook ran from14:44
dmsimardNow, ARA could have gone and checked git history and stuff like that and then record it if there's one available .. but this is much, much more flexible -- and see, it's probably something that would solve your use case as well :)14:45
dmsimardanother use case was to make ARA support sending data to collectd/elasticsearch and so on -- ARA doesn't support that but it's CLI provides JSON or YAML output which are good candidates to send fairly raw to other systems if need be14:47
boxrick1Yea, but I imagine integrating all that would be a fairly monstrous task. So again providing the output to do this makes sense.14:48
* dmsimard nods14:50
dmsimardboxrick1: do let me know if you have any ideas/comments/suggestions, love to get those14:50
dmsimardmost of the development is driven by users :)14:50
boxrick1Well, I managed to blow it up a few times by restarting the database.14:51
boxrick1So I imagine that if connectivity is patchy then things may become an issue14:51
boxrick1But so far its great, ill let you know as we use it more.14:52
dmsimardThat's actually a good point, I've never tested ara against an unreachable mysql instance .. like, does it bog down/error the playbook execution ?14:53
boxrick1Oh no, it literally breaks the database.14:53
boxrick1I had to dump the whole thiong14:54
boxrick1thing*14:54
boxrick1I didn't try it mid execution14:54
boxrick1This was just during fault finding trying to get it up and running, so I probably did more more awefulness which helped it break.14:54
dmsimardI'll create a bug to check that out.14:54
boxrick1Interestingly that exact scenario has just arisen15:08
boxrick1I am re-creating ARA container using Ansible, the control host in this case is trying to write to ARA which doesn't exist15:09
boxrick1And just hangs15:09
*** karimb has joined #ara15:11
dmsimardHmm, I wonder how we could address that.15:12
dmsimardara will be "summoned" by ansible due to callback for each task and some other events. I would have to guess sqlalchemy eventually gives up and time outs but then it'll do that a lot of times.15:17
dmsimardOnly thing I can think of right now would be to store the entirety of the run in a temporary local dabatase (not unlike what would happen when using SQLite backend) and then only try to push the data once to mysql at the end of the playbook15:21
dmsimardThis would lessen the impact on playbook/task execution if there is latency or outage to the remote database server15:21
dmsimardWhich sort of makes sense, anyway, I think that if you have a lot of hosts/tasks, just a little latency probably adds up to something significant15:22
boxrick1I think the best "fix" would be just to fail fast16:04
dmsimardboxrick1: but you'd still fail fast n*y (hosts*tasks)16:10
dmsimardso pretend you fail in 5 seconds instead of, say, 30 seconds16:10
dmsimardI mean, I can make that configurable but it's still pretty painful16:10
dmsimardI'll give it some thought, I think sending all the database transactions in one commit at the end is probably a good bet -- both in terms of reliability (or lack thereof) and in terms of performance/latency16:11
dmsimardmnaser: did that html publisher thing end up working ?16:12
mnaserdmsimard: yess, after playing a bit with the policy settings (i disabled it pretty much)16:12
mnaserwe have an ARA report for every build now failing or not failing16:13
dmsimardNeat16:13
mnaserthe main reason is time related purposes16:13
mnaserit's helped figure out where things are going slow16:13
dmsimardneat^216:14
dmsimardthe task result table that's coming in the new version will be sortable so you can sort by duration and even more easily get that :)16:14
* dmsimard needs more time16:15
mnaseryeah i was hoping it would be soratble16:15
mnaseri clicked it and nothing happened, aha :p16:15
dmsimardit's coming16:16
dmsimardturns out it's easier to prototype things than to actually code/implement them16:16
dmsimardwho'd have thought16:16
dmsimardjrist: which reminds me, there's no real good spot to put the logo in the new ui ?16:17
mnaserhaha16:17
mnaserwe've been moving towards horizon16:17
mnaserthat's been fun..16:17
jristdmsimard: do you have the UI up somewhere that I can look?16:17
jristor source16:17
dmsimardjrist: nothing to show yet, but say you look at this: http://www.patternfly.org/pattern-library/navigation/horizontal-navigation/horizontal-navigation.html#_16:17
dmsimardjrist: (I'm getting rid of the left navbar)16:17
jristyeah so16:18
dmsimardthat top black bar there16:18
jristfor tripleo we put it in top16:18
jristand juts increase height a bit16:18
jristwhich is allowed :)16:18
dmsimardthe logo needs to fit there in height and it makes the right-most links look meh16:18
jristindeed16:18
dmsimardbecause the border doesn't extend all the way down ?16:18
dmsimardjrist: do you have a demo of tripleo-ui somewhere ?16:18
jristmaybe!16:18
jristnot public16:18
dmsimardoh it can be secret between us :P16:19
* dmsimard logs on vpn16:19
jristhttps://i.imgur.com/eq41FC4.png16:20
dmsimardhm, when I tried it it made the dividers on the right links not extend all the way down16:20
dmsimardI'll try it again, I guess I had made it too tall16:25
*** karimb has quit IRC16:26
*** karimb has joined #ara16:29
boxrick1So what does TripleO do then ?17:07
*** karimb has quit IRC17:55
*** karimb has joined #ara21:40
*** themurph has quit IRC21:58
*** themurph has joined #ara21:59

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