Thursday, 2018-10-18

*** bcoca has quit IRC00:21
*** helloweenx_ has joined #ara06:51
*** helloweenx has quit IRC06:53
*** themurph has joined #ara07:13
*** themurph has quit IRC07:17
*** gvincent has joined #ara07:34
*** openstackgerrit has quit IRC07:35
*** sshnaidm_ has joined #ara08:59
helloweenx_hey guys, anyone can help me out with finishing configure ARA? I have installed ARA with role in apache mode, i have website running, but database is empty.09:01
Xarothhave you configured ansible, and run a play?09:08
helloweenx_i have my ansible up and running for a few months, configured in ansible.cfg paths to ARA callback (not sure if right) and tried to run some plays09:09
Xarothis there a ~/.ara folder and a database in there?09:13
helloweenx_i guess, its ansible.sqlite right?09:14
Xarothyeah09:16
helloweenx_well that is present09:17
helloweenx_in that file i can see some data09:17
Xarothwhat you want to do is make sure that your ansible ara config writes to the same database as apache is reading out of09:17
Xarothas in https://ara.readthedocs.io/en/latest/webserver.html#create-the-ansible-and-ara-configuration09:17
helloweenx_yea i was going oveer this09:18
*** sshnaidm_ has quit IRC09:18
helloweenx_so now apache is just not reading the right database, right?09:19
Xarothmost likely09:19
helloweenx_and i can specify these settings in my ansible.cfg with these variables? https://ara.readthedocs.io/en/latest/configuration.html#parameters-and-their-defaults09:22
Xarothmhm09:25
helloweenx_i'm quite puzzled from sqlite settings. isnt it weird that every user have its on DB file in his home folder? shouldnt there be just one main DB file?10:00
apollo13helloweenx_: switch from sqlite to postgres and tada :D10:01
helloweenx_oh well if its that easy.. :-D10:01
helloweenx_so in production environment is recommended to use like mysql or postgresql?10:02
*** sshnaidm has joined #ara10:06
*** sshnaidm has quit IRC10:12
*** sshnaidm has joined #ara10:58
helloweenx_pretty stupid question.. ara will create tables in db once it tries to write into it or i need to do it by myself?11:04
helloweenx_i mean in mysql11:04
Xarothara-manage createall11:21
Xarothcreates the tables11:21
Xaroth(make sure you tell it where and what etc)11:22
helloweenx_huh, is this information somewhere in documentation? didnt run into it11:22
Xaroththe createall command?11:24
Xaroththat's just ara-manage -h11:24
Xarothfor the rest: https://ara.readthedocs.io/en/latest/configuration.html#ara11:24
helloweenx_yea i mean how should i know, there is something like ara-manage? i saw it once in documentation, where it was starting devel server i think11:30
XarothWhenever I see a command I try to see what else it can do :P11:33
helloweenx_hehe, i am working in linux environment for few months, not used to this from windows :-D11:35
helloweenx_bwt let me correct you, its ara-manage -? :-D11:36
Xarothin linux land it's usually -h or --help11:37
Xarothso I try them in that order11:37
Xarothbut yeah, for ara it's --help and -?11:37
Xaroth-h is for the --host option I think11:37
helloweenx_so my another stupid question would be, how do i tell to ara-manage, that i want create tables in my mysql database.. do i have to edit some cfg file, or i add some parameters that point to mysql db?11:41
Xarothcheck the link I pasted, it shows where ara looks for its config11:42
helloweenx_yea i read whole documentation back and forward many times now :-D so "ara-manage" will use configuration file ara.cfg?11:43
Xarothtry it? I mean, [ara] port = 123411:44
Xaroththen ara-manage runserver11:44
Xarothand see what port it starts on11:44
*** sshnaidm_ has joined #ara11:50
*** sshnaidm has quit IRC11:53
*** themurph has joined #ara11:54
helloweenx_alright, i'm oficialy lost. Can you please walk through my settings with me and look for mistake i dont see?12:22
gundalowhelloweenx_: put them in pastebin or gist (make sure their aren't any passwords) then someone here maybe able to review13:07
helloweenx_thanks for tip13:11
*** jrist has quit IRC13:11
helloweenx_so this is my /etc/ara/ara.cfg settings - i have back sqlite, with mysql website just dies.. but i would like to go with mysql definitly13:13
helloweenx_https://pastebin.com/sp19NxXC13:13
*** jrist has joined #ara13:13
helloweenx_not really sure what other settings needs to be reviewed13:14
helloweenx_for mysql i used this default connection string - database = mysql+pymysql://ara:password@localhost/ara13:15
Xarothwhy ara.cfg? shouldn't that be /etc/ansible/ansible.cfg ?13:15
Xarothara checks the ansible.cfg paths for the [ara] block13:15
helloweenx_i think ara read this cfg file too, if he dont find it in ansible.cfg13:16
Xarothfair enough13:16
helloweenx_but you know, its just what i think, not what i know :-D13:16
XarothI'd say try ansible.cfg :)13:16
helloweenx_alright, on it13:16
Xarothit uses `find_ini_config_file` from ansible itself13:18
Xarothso I doubt it'll find an ara.cfg13:18
helloweenx_so i just moved ara.cfg content into ansible.cfg, tried to delete ara.cfg and there is no change - so now ara is reading ansible.cfg file for sure13:24
helloweenx_sadly i still have website without connection to right db13:24
helloweenx_whoa whoa whoa13:26
helloweenx_its working now, what the hell13:26
helloweenx_so all i need is just to connect it to mysql instead of sqlite and i wont bother any of you for a while :-D13:31
*** tbielawa has joined #ara13:32
*** bcoca has joined #ara13:41
helloweenx_so in this connection string: database = mysql+pymysql://ara:password@localhost/ara     mysql+pymysql:// is mandatory. ara is username? password i guess will be his password :-D @localhost is server, where is mysql hosted and /ara is database name, is that correct?14:22
dmsimardhelloweenx_: yes15:23
dmsimardXaroth: thanks for helping out! Appreciate it :)15:23
dmsimardhelloweenx_: maybe reading this FAQ will help you understand how things work: https://ara.readthedocs.io/en/stable/faq.html#can-ansible-with-ara-run-on-a-different-server-than-the-web-application15:25
dmsimardsqlite vs mysql doesn't matter15:25
dmsimardIf your data didn't end up in the web interface, that's likely because Ansible and Apache were not using the same one15:26
dmsimardThe database by default is located at ~/.ara/ansible.sqlite, I think the role sets it up in /var/lib/ara so Apache can read from it15:27
dmsimardThe most likely cause of your data not being in the UI was likely because of a "disagreement" between apache and your user's configuration15:27
dmsimardmysql is useful if you want to aggregate data from multiple locations or need increased concurrency15:28
gnupyxin my company, Ara write a sqlite  At the end of the deployment, pgloader send the data in a postgres15:37
dmsimardgnupyx: so you aggregate data in a central database ?15:38
gnupyxyes15:38
dmsimardNeat! I'd love to read a blog post or something on your setup :D15:39
dmsimardOpenStack doesn't need to aggregate data so we keep sqlite but we load them dynamically: https://ara.readthedocs.io/en/stable/advanced.html15:40
gnupyxand I have an other ara to read the postgresql15:40
dmsimardSo where do your sqlite databases come from ?15:41
gnupyxansible is in a docker container, and after a deploy is destroyed15:43
gnupyxmy stack is jenkins + ansible (in docker)15:43
gnupyxa project use jenkins to deploy15:43
dmsimardOh now I really want to read about it haha15:43
gnupyxyes why not15:44
gnupyxfor the moment, i don't have a blog but it's an idea15:44
gnupyxi'm french, so my english is not very good, but i will try to write an english post about my need15:45
dmsimardI might move my ara blog posts to getara.org15:45
dmsimardInstead of my personal blog15:45
dmsimardSo perhaps it could be a community blog15:45
gnupyxI read your blog, it's very interesting15:46
gnupyxmy main problem with ara + postgres is the loss connection with the database15:48
gnupyxif I lose the connection my deployment failed, not acceptable for my company15:49
dmsimardYes, exactly why I tend to privilege sqlite15:50
gnupyxI have 13 jenkins15:50
gnupyx:)15:50
dmsimardARA 1.0 will allow for better scalability and availability if you need it15:51
gnupyxpgloader is not a very good solution, but it's worked15:51
dmsimardWhile not required, 1.0 ships an stateless API server15:52
gnupyxi think, i need a message queue for aggregate and have real time deployment in a dashboard15:52
gnupyxYes15:52
dmsimardSo you can just load balance as many API servers as you need15:52
gnupyxfor the moment all ara is with ansible then i just use the callback15:52
gnupyxI try to follow the development on gerrit15:53
dmsimardgnupyx: https://demo.getara.org/api/v1/15:54
gnupyxdjango is a good product15:55
gnupyx:)15:55
gnupyxit's time for me16:07
gnupyxsee you later16:07
dmsimardsee ya16:07
*** sshnaidm_ is now known as sshnaidm16:14
*** tbielawa is now known as tbielawa|lunch17:50
*** bcoca has quit IRC18:34
*** tbielawa|lunch is now known as tbielawa18:49
*** tbielawa is now known as tbielawa|g0n320:26
*** tbielawa|g0n3 has quit IRC20:27

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