Monday, 2018-09-24

*** themurph has quit IRC02:10
*** themurph has joined #ara02:10
*** themurph has quit IRC02:10
*** gvincent has joined #ara05:50
*** wkid has joined #ara08:02
wkidHi I'm having issues getting up and running with ara. I did the pip install as described on the github page, I did the env exports for the library,actions and callback plugins. Ara is running, I can visit the ui dashboard but no runs are recorded in ara08:06
wkidWhat obvious thing am I missing?08:06
wkidI already set ara's loglevel to debug but I don't see any error messages in ~/.ara/ara.log08:08
wkidI do see some ara-manage defunct processes and when I strace the non-defunct ara-manage pid I see it timeout on some file desscriptor so it seems:08:09
wkidselect(4, [3], [], [], {0, 500000})     = 0 (Timeout)08:10
wkidAlso I'm just using sqlite, i.e. just the default ara setup08:10
wkidCentos 7.5.180408:13
wkidPython 2.7.508:13
wkidansible 2.6.008:15
wkidTo continue the saga10:56
wkidselect(4, [3], [], [], {0, 500000})     = 0 (Timeout)10:57
wkidso it timeouts on fd 310:58
wkidlsof -p 14561 -ad 3 -n -P10:58
wkidgives me10:58
wkidara-manag 14561 root    3u  IPv4 9546976      0t0  TCP 127.0.0.1:9191 (LISTEN)10:58
wkidand here it lost me11:00
wkidI'll also ask my question in #ansible, if anyone has tips/ideas, more than welcome :-)11:01
dmsimardwkid: hey, I just woke up11:48
dmsimardIf you give me a while I'll get back to you11:48
*** ChanServ sets mode: +o dmsimard11:49
dmsimardwkid: did you set up the ansible callback configuration ?12:08
dmsimardEither through the ANSIBLE_CALLBACK_PLUGINS environment variable or the callback_plugins parameter in ansible.cfg12:09
wkiddmsimard: yes I did, by exporting the env variables as written in the documentation12:23
wkiddmsimard: btw, I also noticed /usr/lib/python2.7/site-packages/ara/plugins/modules is non existant, the modules dir is not there ...12:24
dmsimardwkid: that's because ara doesn't ship modules12:40
dmsimardwkid: what user are you running ara under ?12:40
wkiddmsimard: I tried as my regular user and as root12:41
dmsimardwkid: do you have a ~/.ara directory with an ansible.sqlite database for either user ?12:42
wkiddmsimard: Yes I have the sqlite db12:42
dmsimardwkid: so that means configuring the callback worked12:42
dmsimardwkid: otherwise these would not have been created12:42
dmsimardthat's where the playbook execution data is recorded by default12:43
dmsimardif you start the web application from a user where the database is there, you should see data12:43
wkiddmsimard: I did but I don't see any data12:45
wkidalso ansible.sqlite is only 36K big12:47
wkidLooks like I have all tables in there tho12:48
wkidbut select * from playbooks is empty for example12:48
dmsimardwkid: did you actually run a playbook ? did it fail ?12:49
wkidyes I did, the playbook failed12:49
wkidthe fail is the reason?12:49
wkidfacepalming myself if so12:49
wkid:-)12:49
dmsimardwkid: well, the playbook has to at least compile and run12:52
dmsimardwkid: if there's a syntax error or something that prevents the playbook from starting, ara won't see it12:52
wkiddmsimard: It compiled and ran12:52
dmsimardthere needs to be at least one task12:52
wkidthat's also the case12:53
dmsimardare you running as root ? with sudo ?12:53
wkidyes tried both, so installing ara as normal user and starting playbook as normal user and vice versa12:55
dmsimardright, I'm just wondering if the data might not be in /root/.ara instead of whatever user you attempted to run it as12:55
dmsimardthere's really no magic involved, the quickstart should work -- it's that simple: https://github.com/openstack/ara#quickstart12:55
wkidyes indeed, I guess I'll wipe everything and startover12:56
dmsimardwkid: you don't need to wipe anything12:56
dmsimardwkid: just export the callback and run a playbook, it should be added to the database and therefore available in the web UI12:56
wkidOk I'll try again12:57
dmsimardThe web UI doesn't need to run, it's not a dependency for the callback -- it's just reading from the database12:57
*** gundalow has joined #ara12:57
* gundalow waves, I didn't know this existed12:57
*** jrist has joined #ara13:00
dmsimardgundalow: ohai, there's a slack too -- it used to be bridged but slack killed the irc gateway :(13:01
dmsimardwkid: did you manage to get it working ?13:29
*** tbielawa has joined #ara13:33
gundalowdmsimard: I already have enough Slack groups I ignore :)14:07
dmsimardgundalow: haha, I have them set up through my irc client so it's not too bad14:13
dmsimardalso takes a few less GBs of ram14:13
*** themurph has joined #ara14:16
*** themurph has quit IRC14:24
*** tbielawa is now known as tbielawa|arch14:31
*** spiette has quit IRC15:09
*** spiette has joined #ara15:12
*** themurph has joined #ara15:52
*** themurph has quit IRC15:53
*** tbielawa|arch is now known as tbielawa16:09
*** themurph has joined #ara16:45
*** themurph has quit IRC17:00
*** sshnaidm has joined #ara17:11
*** sshnaidm is now known as sshnaidm|pto17:13
*** tbielawa is now known as tbielawa|lunch17:19
*** sshnaidm|pto has quit IRC17:20
*** sshnaidm|pto has joined #ara17:33
*** tbielawa|lunch is now known as tbielawa18:20
*** sshnaidm|pto has quit IRC18:36
*** macmonac has joined #ara19:20
macmonacHello, a small question, is it possible to use ara in ansible-pull mode ?19:22
dmsimardmacmonac: ara needs to be installed wherever ansible runs19:26
dmsimardmacmonac: I haven't personally tried it ansible-pull but as long as ara is installed and ansible is set up to use the ara callback, it should work19:26
dmsimardare you using ansible-pull due to scalability ?19:27
macmonacdmsimard: Thanks for the reply, Not for scalability, It's for client ( not server ) disponibility / connectivity.19:29
macmonacdmsimard: how the callback send data to ara ? Directly, in database or it can be by web access ? In this case, why not ?19:31
dmsimardmacmonac: by default, the ara callback saves everything to a local sqlite database -- the web interface is passive and only reads from the database19:32
dmsimardthe callback and the web application can also be set up to use mysql or postgresql instead of sqlite -- allowing you to aggregate data from multiple locations19:33
dmsimardI'm working on and off on ARA 1.0 which will feature a REST API to abstract the database layer -- so the callback sends the data over http post requests instead of directly inserting in the database19:34
dmsimardIt's not finished yet but thought I would mention that19:34
macmonacdmsimard: that's what I understood for MySQL or Postgres, but i think the interface is not complient for this use ( multiple host ansible execution ) ?19:37
dmsimardneed to brb, let me get back to you in a while19:39
macmonacit seems to be organized by playbook and not by host19:39
dmsimardmacmonac: that's how things are displayed right now, yes. 1.0 adds a feature to better track single hosts across multiple playbook executions19:54
macmonacI install ara in a vm. Do you know if i can find a small database somewhere to play with ara interface ?20:12
dmsimardmacmonac: sure20:15
dmsimardyou can browse an example of live data here: http://logs.openstack.org/56/549956/11/check/openstack-ansible-deploy-aio_lxc-ubuntu-bionic/30b44a3/logs/ara-report/20:15
dmsimardand if you want to download the database, just suffix ansible.sqlite to that url20:16
macmonacThank you very much20:17
dmsimardThe UI is not super intuitive, I'm not an expert at frontend or anything -- so I recorded a demo of the web interface where I explain the different features: https://www.youtube.com/watch?v=k3i8VPCanGo20:17
dmsimardIt was recorded a while back but it's still mostly accurate20:18
*** themurph has joined #ara20:21
*** themurph has quit IRC20:25
macmonacYes i view it. Thank you very much for all reply.20:26
macmonacMay be one evolution it's not easy to find a failed event20:27
macmonacIt could be interested to filter task by status for example20:27
macmonacSorry, i find the solution20:29
*** tbielawa is now known as tbielawa|g0n3z020:29
*** sshnaidm|pto has joined #ara20:34
macmonacThe last question. The reports are for all the playbook, not by host ?20:40
*** macmonac has quit IRC20:58
*** sshnaidm|pto has quit IRC21:10
*** sshnaidm|pto has joined #ara21:40
*** mgariepy has quit IRC22:20
*** mgariepy has joined #ara22:33
*** mgariepy has quit IRC22:49
*** spiette_ has joined #ara22:55
*** spiette has quit IRC23:00
*** sshnaidm|pto has quit IRC23:04
*** mgariepy has joined #ara23:04
*** mgariepy has quit IRC23:26
*** mgariepy has joined #ara23:39
*** mgariepy has quit IRC23:47
*** mgariepy has joined #ara23:59

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