Friday, 2017-09-01

harlowjadmsimard have u seen https://gist.github.com/harlowja/ba07b0839d984ccf9b8b20e3debc8db900:15
harlowjame thinking a retry might be needed00:15
harlowja(yes i should get off sqlite)00:16
harlowjabut maybe u already added some retry abilities00:18
harlowjaseems like when that happened, it lost some data00:18
harlowjaalso seems to be related to me refreshing the UI while a playbook is still running00:21
harlowjai prob should move to mysql when 1.0 ships, ha00:23
dmsimardharlowja: never really seen that, but I guess sqlite is not very friendly to concurrent read and writes iirc01:12
dmsimardNeed better exception and retry logic in ara, yes01:12
dmsimardA bit hard to implement proper error handling right now since database access is scattered all over the place01:15
dmsimardHoping that the API layer will be a good central place to implement that kind of stuff01:15
*** sebiwi has joined #ara08:08
sebiwihi, I'm having an issue with Ara08:09
sebiwiI'm under the impression that playbook data is not saved when the playbooks fail08:09
sebiwiso I have a beautiful dashboard without any red in it08:09
*** sgr has quit IRC09:30
*** sebiwi has quit IRC09:49
dmsimardsebiwi has asked questions twice at 4AM for me and left without giving me the opportunity to answer...11:58
*** resmo has joined #ara11:59
*** tbielawa has joined #ara13:46
*** dmsimard has quit IRC15:19
*** dmsimard has joined #ara15:19
*** tolkien.freenode.net sets mode: +o dmsimard15:19
*** resmo has quit IRC15:33
*** tbielawa has quit IRC15:43
*** tbielawa has joined #ara15:49
*** tbielawa is now known as tbielawa|lunch15:50
harlowja:-P16:44
harlowjaya, i've seen that before, lol16:44
harlowja(people asking then leaving)16:44
ara-slack<nullah> don't take it personall @dmsimard ... if it makes you feel better I have a question16:45
ara-slack<nullah> :P16:45
ara-slack<nullah> So, in general, it's best to have ara run seperately from a control machine? (I presume you can link many control machines to 1 single ara instance and that's why)16:45
ara-slack<nullah> furthermore, is it ok to have db and web server running on ara instance? I know it's case by case but generally what's the best practice?16:46
ara-slack<dmsimard> @nullah The two main use cases I've seen are16:57
ara-slack<dmsimard> 1) Run ansible-playbook once, generate static HTML report, upload report to log/web server (This is very popular with CI such as Jenkins, or Zuul, it allows to easily associate the report with the job it ran)16:58
ara-slack<dmsimard> 2) Host ARA as a WSGI application and a MySQL database, doesn't matter if the database and the webserver are on different machines. And then run ansible-playbook from wherever you need (i.e, your laptop) with the appropriate database configuration.16:59
ara-slack<nullah> Ara fetches info from DB to produce the reports right?17:00
ara-slack<dmsimard> The web application connects to the database to allow you to browse the recorded playbooks in the database, yes17:00
ara-slack<nullah> ok. cool. thanks for the insight.17:01
ara-slack<dmsimard> The static HTML generation more or less starts the webapp and crawls and saves every pages17:01
ara-slack<nullah> in both cases, ara is running elsewhere than control machine17:01
ara-slack<nullah> right?17:01
ara-slack<nullah> i.e. decouples so to speak17:02
ara-slack<dmsimard> @nullah btw I was invited to an Ansible meetup in Quebec City to present ARA in October, there's also going to be a Ansible meetup in Montreal around the time same if you want to chat :slightly_smiling_face:17:02
ara-slack<nullah> I'll be there! ;)17:02
ara-slack<dmsimard> What do you mean by "ara is running" ?17:02
ara-slack<dmsimard> The web app ?17:02
ara-slack<nullah> hosted17:02
ara-slack<nullah> i mean uhm17:02
ara-slack<nullah> what do i mean wait17:03
ara-slack<nullah> haha17:03
ara-slack<nullah> "installed on"17:03
ara-slack<dmsimard> ARA needs to be installed wherever you'll be using Ansible from, and Ansible should be configured to use the ARA callback.17:03
ara-slack<nullah> oh so control machine + ara reside on same server17:03
ara-slack<dmsimard> The web application and the callback are two separate components17:04
ara-slack<dmsimard> The callback *writes* the data to the database, the web application reads from it17:04
ara-slack<dmsimard> You need the callback installed and used wherever you're running Ansible from17:04
ara-slack<dmsimard> It doesn't matter where the web application is hosted so long as it has access to that database17:04
ara-slack<nullah> gotcha. so no problem in having ansible+ara+webserver+mysql all on same node right?17:04
ara-slack<dmsimard> In theory, no, but like you've seen the other day, it tends to be needlessly confusing17:05
ara-slack<nullah> oh ok right. so to simplify that we would decouple the web server and db components from the ansible+ara node17:05
ara-slack<nullah> right?17:05
*** tbielawa|lunch is now known as tbielawa|brb17:08
ara-slack<nullah> i.e. best approach = ansible/ara node + webserver + db = 3 instances in total, is that correct?17:08
ara-slack<dmsimard> There is probably no best approach that covers all use cases, it depends on what you intend on doing with ara and how you plan on using it17:21
ara-slack<nullah> OK fair enough. But we've determined that having webserver+db on ansible/ara is needlessly confusing17:21
ara-slack<dmsimard> right17:22
ara-slack<nullah> OK17:22
ara-slack<dmsimard> splitting the database and web servers is probably overkill, unless you're running at a huge scale17:22
ara-slack<nullah> great! ok so ara/ansible + webserver/db is best approach for small to medium scale?17:23
ara-slack<nullah> or is it ara/ansible/webserver + db17:24
*** harlowja has quit IRC17:30
ara-slack<dmsimard> @nullah http://logs.bonnyci.org/ara/ runs a centralized setup on modest virtual machines afaik and they have 32k playbooks17:34
*** tbielawa|brb is now known as tbielawa17:34
ara-slack<dmsimard> I would say not to split the database and web server until your scale justifies it, which might never happen17:35
ara-slack<nullah> ok cool!17:35
ara-slack<dmsimard> or unless you want to implement some sort of HA setup with load balancers/clusters/etc17:35
ara-slack<nullah> probably not. looking for simplest setup at this point17:36
*** tbielawa has quit IRC17:56
*** tbielawa has joined #ara17:56
*** tbielawa is now known as tbielawa|bbiab19:04
*** tbielawa|bbiab is now known as tbielawa20:07
*** tbielawa has quit IRC21:21

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