Friday, 2019-07-05

dmsimardohwhyosa[m]: that's a tricky one. If the last few callback hooks aren't sent by Ansible, we can't tell if it's because there's something running (i.e, a long shell task) or if it was because it was interrupted.01:53
dmsimardWe could time them out ? But that requires some adhoc process to time them out.01:54
dmsimardThere is an issue about doing the plumbing for pruning old records: https://github.com/ansible-community/ara/issues/3101:58
dmsimardWe could have a similar process but instead of deleting them, we time them out01:58
dmsimard¯\_(ツ)_/¯01:58
*** gvincent has joined #ara06:17
*** herald85 has joined #ara07:49
*** vincent--- has joined #ara08:12
*** vincent-- has quit IRC08:15
*** idir__ has joined #ara09:26
*** idir__ has quit IRC09:49
*** micisuta has joined #ara10:18
ohwhyosa[m]dmsimard: is there a way to delete all the records in the database via the api?11:07
ohwhyosa[m]Yes, a time out could be a good idea, but it can be risky11:07
ohwhyosa[m]as in, sometimes the problem you want to records is ansible just hanging in there11:07
ohwhyosa[m]could maybe django do a system ps aux or somehting to check if there is anansible process?11:08
ohwhyosa[m]our office devs suggest doing a keepalived within the callback, I don't know if that is possible though11:12
ohwhyosa[m]django checking for the process is a no-no because it can be on different machines, for example11:13
*** Bary has joined #ara11:45
BaryHello there!11:45
BaryJust finished mounting new ara server with web and realised that the failure reason or just result of tasks are not recorder11:46
BaryIs it the new version design?11:46
ohwhyosa[m]Hey Bary!11:47
ohwhyosa[m]dmsimard just implemented it yesterday, though it is work in progress, I tested it and it works marvels!11:48
ohwhyosa[m]He is going through a full rewrite, and some of the stuff is still WIP11:48
ohwhyosa[m]Plus I think he's pretty much doing ara all by himself11:48
ohwhyosa[m]https://review.opendev.org/669221 --> Here's the patch he sent here yesterday11:49
BaryAh great to hear that, thanks ohwhyosa[m]11:49
BaryI'll follow the news then :)11:49
ohwhyosa[m]you can check the log here at11:58
ohwhyosa[m]http://eavesdrop.openstack.org/irclogs/%23ara/11:59
ohwhyosa[m]Bary11:59
BaryActually trying to apply the patch12:00
*** openstackgerrit has quit IRC12:04
*** micisuta has quit IRC12:04
BaryLooks like is not the only thing to patch heh, no worries after the weekend I can take a look into it more12:04
ohwhyosa[m]You can just manually add the changes (i did that and it works)12:08
ohwhyosa[m]then you npm build again12:09
ohwhyosa[m]and you serve it Bary12:09
ohwhyosa[m]It worked, how did you install ara-web?12:09
BaryAah, we've forgotten to npm build oh dear ^^12:09
ohwhyosa[m]And what is it that is failling?12:10
ohwhyosa[m]I forgot like a lot of times yesterday ahahahah but I'm a bit of a disaster12:10
BaryHm some problems using .patch file12:12
gvincentdmsimard, do you want help on this one https://review.opendev.org/#/c/669221/?12:17
Baryohwhyosa[m], great it works ;) So on Monday more things to discover thanks a lot12:20
dmsimardgvincent: sure thing! I figured I would at least try to make the data available.12:37
gvincentI will look at it on monday morning12:38
dmsimardBary: The data is recorded and is available in the API, it's just a matter of implementing it somewhere in the web UI12:38
dmsimardgvincent: I'm not convinced about the modal approach fwiw12:39
dmsimardI first tried a full fledged page (routed under /results/<id>) and re-using the playbook summary at the top (similar to /playbooks/<id>) but the problem was that the data we use in the summary isn't available when just querying a record12:41
dmsimardLike playbook.item, playbook.labels, and then there was something else too..12:42
dmsimardI managed to implement that patch through a mixture of what was already done in ara-web and  looking at dci-ui as an example :p12:43
dmsimardohwhyosa[m]: there's no specific API call for deleting everything in one shot but deleting individual playbooks should cascade to everything since everything (except labels) are children of playbooks12:45
dmsimardgvincent: the issue I see with modals is that it feels awkward to permalink to that (when you want to share it with someone)12:48
gvincentyeah +112:48
dmsimardIn 0.x, the hack was that while the content was in a modal, there was actually an iframe in the modal and the content of the iframe was a page that you could link directly to12:48
dmsimardSo I am most definitely open to suggestions12:49
dmsimardSomething I know would be nice is to have a page similar to /playbooks but for /hosts12:54
BaryYea, I've realized it is recorder but with the different tables/columns12:54
dmsimardBut having one for /results might not be appropriate (due to the amount of results?)12:55
dmsimardBary: 1.x switches the backend from flask to django and changes the database model a lot12:55
BaryFor sure. We had some problem figuring out this, as in readthedocs we(team mate) couldn't find the details we are working on the new 1.x version12:57
BaryBut later discovered admin panel, the things etc12:57
BaryWe set user password etc12:58
BaryI wonder if the settings like ARA_API_CLIENT should belong to the page with https://ara.readthedocs.io/en/latest/api-configuration.html12:58
BaryAs now they are documented only in previous page12:59
dmsimardARA_API_CLIENT is an Ansible plugin configuration while the other things are API server configs13:00
dmsimardNeed to brb, meeting13:01
*** openstackgerrit has joined #ara13:48
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: API: Expose the task file path as task.path  https://review.opendev.org/66922013:48
*** Bary has quit IRC14:41
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API  https://review.opendev.org/66396815:40
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API  https://review.opendev.org/66396815:43
openstackgerritMerged recordsansible/ara master: API: Expose the task file path as task.path  https://review.opendev.org/66922015:54
*** Bary has joined #ara16:20
*** Bary has quit IRC16:37
*** Bary has joined #ara16:37
*** Bary has quit IRC16:44
*** Bary has joined #ara16:49
*** Baryczka has joined #ara17:06
*** Bary has quit IRC17:08
*** Baryczka has quit IRC17:13
*** herald85 has quit IRC17:22
*** Baryczka has joined #ara17:46
*** Baryczka has quit IRC18:03
*** Baryczka has joined #ara18:03
*** vincent--- has quit IRC18:08
*** Baryczka has quit IRC18:09
*** Baryczka has joined #ara18:54
*** Baryczka has quit IRC19:10
*** Baryczka has joined #ara19:10
*** Baryczka has quit IRC19:17
*** Baryczka has joined #ara19:52
*** Baryczka has quit IRC20:08
*** Baryczka has joined #ara20:08
*** Baryczka has quit IRC20:15
dmsimardThe approach with a modal looks terrible on mobile :p20:26
*** vincent--- has joined #ara20:30
*** Baryczka has joined #ara20:57
*** vincent--- has quit IRC20:59
*** Bary has joined #ara21:14
*** Baryczka has quit IRC21:16
*** Bary has quit IRC21:20
*** Bary has joined #ara21:52
openstackgerritDavid Moreau Simard proposed recordsansible/ara-web master: WIP: Add page for displaying result details  https://review.opendev.org/66922121:55
dmsimardohwhyosa[m]: thanks for the pointer for react-json-view, it's a quick win :)22:07
*** Bary has quit IRC22:09
*** Bary has joined #ara22:09
dmsimardhttps://i.imgur.com/SHotPlR.png22:10
*** Bary has quit IRC22:16
openstackgerritDavid Moreau Simard proposed recordsansible/ara-web master: WIP: Add page for displaying result details  https://review.opendev.org/66922122:37
*** Bary has joined #ara22:56
openstackgerritDavid Moreau Simard proposed recordsansible/ara-web master: WIP: Add page for displaying result details  https://review.opendev.org/66922123:02
*** Baryczka has joined #ara23:13
*** Bary has quit IRC23:15
*** Baryczka has quit IRC23:20
*** Baryczka has joined #ara23:58

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