Monday, 2019-07-15

*** TimNZ_ has joined #ara05:25
*** zbr has quit IRC06:50
*** neith has quit IRC06:50
*** mugsie has quit IRC06:50
*** zbr has joined #ara07:16
*** neith has joined #ara07:16
*** mugsie has joined #ara07:16
*** openstackgerrit has quit IRC07:18
*** TimNZ_ has quit IRC07:49
*** gvincent has joined #ara07:56
*** idir__ has joined #ara08:24
idir__hello, i would know if it will there an evolution in the role, to install the ara from pypi directly08:25
idir__thank you :)08:25
*** zbr has quit IRC08:27
*** neith has quit IRC08:27
*** mugsie has quit IRC08:27
*** neith has joined #ara08:35
*** zbr has joined #ara08:36
*** mugsie has joined #ara08:37
*** idir__ has quit IRC09:01
*** sshnaidm is now known as sshnaidm|rover09:29
*** weshay|rover is now known as weshay11:51
*** _KaszpiR_ has quit IRC11:56
*** _KaszpiR_ has joined #ara11:58
*** etienne has joined #ara14:04
dmsimardapollo13, gvincent: would like your opinion on a poc that someone contributed and that I experimented with: https://review.opendev.org/#/c/670597/14:04
dmsimardlooks like this in practice: http://logs.openstack.org/97/670597/7/check/ansible-role-ara-api-fedora-devel/1dcf203/logs/static/14:04
dmsimardI think if we're going to have templates for generating static reports we might as well expose them through regular routes14:06
dmsimardthere's some comments in https://review.opendev.org/#/c/670256/14:07
ohwhyosaHey dmsimard that looks great!14:08
ohwhyosaWhat will happen when I click on changed inside a task, or in the hostname?14:08
dmsimardohwhyosa: click on it and you'll see? :p14:09
ohwhyosahttp://logs.openstack.org/97/670597/7/check/ansible-role-ara-api-fedora-devel/1dcf203/logs/static/result/3.html#msg14:15
ohwhyosaHere clicking doesn't work, I thought it would be because of it being WIP14:16
ohwhyosaOhhh, and the other one i clicked on höstñame14:17
ohwhyosaAnd that one is empty14:17
ohwhyosaBut localhost looks SIIIIICK14:17
ohwhyosaAll the facts, so clear14:17
dmsimardohwhyosa: "msg" there is just an anchor (hence the added #msg)14:18
dmsimardso if you share the link it'll auto-scroll14:18
dmsimardthis approach to static generation has the same problem than in 0.x, though14:21
dmsimardthere'll be as many files as there are playbooks, hosts, results and files14:21
dmsimardIf you have a playbook that runs against 100 hosts (100 files) and runs 1000 tasks (1x result per host so 100x1000 files)14:22
dmsimardbunching the results inside the playbook files is doable but then they can also become very heavy14:23
ohwhyosaWow, yeah, didn't think about that, that is a lot14:24
dmsimardthe files are all very small, there's just a lot of them14:24
dmsimardthe sqlite middleware approach was actually developed as an answer to that problem14:25
ohwhyosaSince yaml is separated by --- and ..., you could also chain as many documents as you think prudent in a single file and then divide that for the presentation, maybe?14:25
dmsimardansible is actually all json14:25
dmsimardonly the files are yaml :p14:25
ohwhyosaand json is valid yaml14:26
ohwhyosaAs in, any JSON string parses as correct yaml14:26
dmsimardI didn't know that o_O14:26
ohwhyosahttps://yaml-online-parser.appspot.com/14:26
ohwhyosaYup14:26
ohwhyosaI learnt it the other day, when I asked our devs if they could lend you a hand, that came up14:27
ohwhyosaI didn't think it relevant to comment around here, but I was shitting bricks14:27
ohwhyosaput, say this:14:28
ohwhyosa---14:28
ohwhyosa{"name": "somename", "test": "sometes"}14:28
ohwhyosa...14:28
ohwhyosaand then use canonical_yaml as output14:28
ohwhyosaI also learnt about canonical yaml14:28
dmsimardlet's not go there :p14:33
dmsimardI think there's room for a static generation feature even if it doesn't scale well -- if you're outscaling it, there are already other implementations available (i.e, distributed sqlite middleware)14:35
dmsimardThere probably needs to be a warning above a certain treshold14:36
ohwhyosaYeah, to be fair my/our use case does not really need to scale that much, and it is pretty perfect as it is, just throwing my 2 cents14:38
ohwhyosaI need to check your code again, are you dropping react and doing the generation django-side?14:38
ohwhyosaYou also fixed the screen overflow!14:39
*** irclogbot_2 has quit IRC14:41
dmsimardnot dropping ara-web14:50
*** irclogbot_2 has joined #ara14:50
*** itxaka has joined #ara14:50
dmsimardohwhyosa: the incentive in providing static reports from ara (vs ara-web) is that you don't need to install ara-web -- you already have everything you need just by installing ara14:52
dmsimardno npm, no installing npm dependencies, no need to run an API server (for ara-web to connect to)14:53
dmsimardthere's an obvious overlap with ara-web but ara-web is also stateless, can connect to any API endpoint, etc14:55
ohwhyosaGreat! So you provide now both options, ara standalone with static reports and ara-web for dynamic stateless and multiple endpoint15:00
ohwhyosaI may be able to ask for help regarding the static part, our devs are python wizards15:00
ohwhyosaI dont know if they will be able to participate per se, but i can be the messenger you later on shoot hahahaha15:00
dmsimardI'll welcome any help :)15:03
*** altlogbot_2 has quit IRC17:25
*** irclogbot_2 has quit IRC17:26
*** altlogbot_0 has joined #ara17:27
*** irclogbot_1 has joined #ara17:28
*** altlogbot_0 has quit IRC17:31
*** irclogbot_1 has quit IRC17:32
*** irclogbot_2 has joined #ara17:38
*** altlogbot_2 has joined #ara17:39
*** cyberpear has joined #ara17:59
dmsimardohwhyosa: maybe we could add filters to the static report so that it can be used at a larger scale18:22
dmsimardfor example only include results for changed/failed tasks, don't include host facts, etc18:27
*** altlogbot_2 has quit IRC20:10
*** altlogbot_1 has joined #ara20:12
*** ara-slack has joined #ara20:35
*** ChanServ sets mode: +v ara-slack20:35
*** itxaka has quit IRC21:57

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