*** TimNZ_ has joined #ara | 05:25 | |
*** zbr has quit IRC | 06:50 | |
*** neith has quit IRC | 06:50 | |
*** mugsie has quit IRC | 06:50 | |
*** zbr has joined #ara | 07:16 | |
*** neith has joined #ara | 07:16 | |
*** mugsie has joined #ara | 07:16 | |
*** openstackgerrit has quit IRC | 07:18 | |
*** TimNZ_ has quit IRC | 07:49 | |
*** gvincent has joined #ara | 07:56 | |
*** idir__ has joined #ara | 08:24 | |
idir__ | hello, i would know if it will there an evolution in the role, to install the ara from pypi directly | 08:25 |
---|---|---|
idir__ | thank you :) | 08:25 |
*** zbr has quit IRC | 08:27 | |
*** neith has quit IRC | 08:27 | |
*** mugsie has quit IRC | 08:27 | |
*** neith has joined #ara | 08:35 | |
*** zbr has joined #ara | 08:36 | |
*** mugsie has joined #ara | 08:37 | |
*** idir__ has quit IRC | 09:01 | |
*** sshnaidm is now known as sshnaidm|rover | 09:29 | |
*** weshay|rover is now known as weshay | 11:51 | |
*** _KaszpiR_ has quit IRC | 11:56 | |
*** _KaszpiR_ has joined #ara | 11:58 | |
*** etienne has joined #ara | 14:04 | |
dmsimard | apollo13, gvincent: would like your opinion on a poc that someone contributed and that I experimented with: https://review.opendev.org/#/c/670597/ | 14:04 |
dmsimard | looks like this in practice: http://logs.openstack.org/97/670597/7/check/ansible-role-ara-api-fedora-devel/1dcf203/logs/static/ | 14:04 |
dmsimard | I think if we're going to have templates for generating static reports we might as well expose them through regular routes | 14:06 |
dmsimard | there's some comments in https://review.opendev.org/#/c/670256/ | 14:07 |
ohwhyosa | Hey dmsimard that looks great! | 14:08 |
ohwhyosa | What will happen when I click on changed inside a task, or in the hostname? | 14:08 |
dmsimard | ohwhyosa: click on it and you'll see? :p | 14:09 |
ohwhyosa | http://logs.openstack.org/97/670597/7/check/ansible-role-ara-api-fedora-devel/1dcf203/logs/static/result/3.html#msg | 14:15 |
ohwhyosa | Here clicking doesn't work, I thought it would be because of it being WIP | 14:16 |
ohwhyosa | Ohhh, and the other one i clicked on höstñame | 14:17 |
ohwhyosa | And that one is empty | 14:17 |
ohwhyosa | But localhost looks SIIIIICK | 14:17 |
ohwhyosa | All the facts, so clear | 14:17 |
dmsimard | ohwhyosa: "msg" there is just an anchor (hence the added #msg) | 14:18 |
dmsimard | so if you share the link it'll auto-scroll | 14:18 |
dmsimard | this approach to static generation has the same problem than in 0.x, though | 14:21 |
dmsimard | there'll be as many files as there are playbooks, hosts, results and files | 14:21 |
dmsimard | If you have a playbook that runs against 100 hosts (100 files) and runs 1000 tasks (1x result per host so 100x1000 files) | 14:22 |
dmsimard | bunching the results inside the playbook files is doable but then they can also become very heavy | 14:23 |
ohwhyosa | Wow, yeah, didn't think about that, that is a lot | 14:24 |
dmsimard | the files are all very small, there's just a lot of them | 14:24 |
dmsimard | the sqlite middleware approach was actually developed as an answer to that problem | 14:25 |
ohwhyosa | Since 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 |
dmsimard | ansible is actually all json | 14:25 |
dmsimard | only the files are yaml :p | 14:25 |
ohwhyosa | and json is valid yaml | 14:26 |
ohwhyosa | As in, any JSON string parses as correct yaml | 14:26 |
dmsimard | I didn't know that o_O | 14:26 |
ohwhyosa | https://yaml-online-parser.appspot.com/ | 14:26 |
ohwhyosa | Yup | 14:26 |
ohwhyosa | I learnt it the other day, when I asked our devs if they could lend you a hand, that came up | 14:27 |
ohwhyosa | I didn't think it relevant to comment around here, but I was shitting bricks | 14:27 |
ohwhyosa | put, say this: | 14:28 |
ohwhyosa | --- | 14:28 |
ohwhyosa | {"name": "somename", "test": "sometes"} | 14:28 |
ohwhyosa | ... | 14:28 |
ohwhyosa | and then use canonical_yaml as output | 14:28 |
ohwhyosa | I also learnt about canonical yaml | 14:28 |
dmsimard | let's not go there :p | 14:33 |
dmsimard | I 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 |
dmsimard | There probably needs to be a warning above a certain treshold | 14:36 |
ohwhyosa | Yeah, 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 cents | 14:38 |
ohwhyosa | I need to check your code again, are you dropping react and doing the generation django-side? | 14:38 |
ohwhyosa | You also fixed the screen overflow! | 14:39 |
*** irclogbot_2 has quit IRC | 14:41 | |
dmsimard | not dropping ara-web | 14:50 |
*** irclogbot_2 has joined #ara | 14:50 | |
*** itxaka has joined #ara | 14:50 | |
dmsimard | ohwhyosa: 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 ara | 14:52 |
dmsimard | no npm, no installing npm dependencies, no need to run an API server (for ara-web to connect to) | 14:53 |
dmsimard | there's an obvious overlap with ara-web but ara-web is also stateless, can connect to any API endpoint, etc | 14:55 |
ohwhyosa | Great! So you provide now both options, ara standalone with static reports and ara-web for dynamic stateless and multiple endpoint | 15:00 |
ohwhyosa | I may be able to ask for help regarding the static part, our devs are python wizards | 15:00 |
ohwhyosa | I dont know if they will be able to participate per se, but i can be the messenger you later on shoot hahahaha | 15:00 |
dmsimard | I'll welcome any help :) | 15:03 |
*** altlogbot_2 has quit IRC | 17:25 | |
*** irclogbot_2 has quit IRC | 17:26 | |
*** altlogbot_0 has joined #ara | 17:27 | |
*** irclogbot_1 has joined #ara | 17:28 | |
*** altlogbot_0 has quit IRC | 17:31 | |
*** irclogbot_1 has quit IRC | 17:32 | |
*** irclogbot_2 has joined #ara | 17:38 | |
*** altlogbot_2 has joined #ara | 17:39 | |
*** cyberpear has joined #ara | 17:59 | |
dmsimard | ohwhyosa: maybe we could add filters to the static report so that it can be used at a larger scale | 18:22 |
dmsimard | for example only include results for changed/failed tasks, don't include host facts, etc | 18:27 |
*** altlogbot_2 has quit IRC | 20:10 | |
*** altlogbot_1 has joined #ara | 20:12 | |
*** ara-slack has joined #ara | 20:35 | |
*** ChanServ sets mode: +v ara-slack | 20:35 | |
*** itxaka has quit IRC | 21:57 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!