dmsimard | Nom nom memory | 00:40 |
---|---|---|
harlowja | ya | 00:46 |
harlowja | something has to be like iterating over way more than it should be imho | 00:47 |
*** viewlogic has joined #ara | 00:47 | |
*** hyamamoto has joined #ara | 00:49 | |
*** hyamamoto has joined #ara | 00:49 | |
*** Brainspackle has quit IRC | 00:51 | |
*** hiroki has quit IRC | 00:51 | |
*** hyamamoto is now known as hiroki | 00:51 | |
*** gvincent has quit IRC | 01:13 | |
*** gvincent has joined #ara | 01:13 | |
*** harlowja has quit IRC | 01:42 | |
*** dougbtv_ has quit IRC | 02:38 | |
*** harlowja has joined #ara | 03:37 | |
*** bcoca has quit IRC | 03:40 | |
*** harlowja has quit IRC | 05:22 | |
*** gvincent has quit IRC | 05:28 | |
*** gvincent has joined #ara | 05:28 | |
*** paulfantom has quit IRC | 08:10 | |
*** logan- has quit IRC | 08:11 | |
*** paulfantom has joined #ara | 08:11 | |
*** _KaszpiR__ has joined #ara | 08:12 | |
*** hwoarang has quit IRC | 08:12 | |
*** _KaszpiR_ has quit IRC | 08:12 | |
*** hwoarang_ has joined #ara | 08:12 | |
*** logan- has joined #ara | 08:13 | |
*** jlozadad[m] has quit IRC | 08:27 | |
*** jlozadad[m] has joined #ara | 08:34 | |
*** sshnaidm|afk is now known as sshnaidm|off | 09:00 | |
*** hwoarang_ is now known as hwoarang | 09:08 | |
*** rvgate has quit IRC | 09:13 | |
*** rvgate has joined #ara | 09:14 | |
*** rvgate has quit IRC | 09:48 | |
*** rvgate has joined #ara | 11:04 | |
*** resmo has joined #ara | 11:53 | |
*** dougbtv has joined #ara | 12:09 | |
*** dougbtv_ has joined #ara | 12:56 | |
*** dougbtv has quit IRC | 12:56 | |
*** tbielawa has joined #ara | 12:57 | |
*** bcoca has joined #ara | 13:17 | |
*** bcoca has joined #ara | 13:17 | |
openstackgerrit | David Moreau Simard proposed openstack/ara master: WIP Handle longer playbook path names https://review.openstack.org/512029 | 14:51 |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Make the use of basename on playbook path optional https://review.openstack.org/512050 | 14:52 |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Add an option to store a custom playbook path https://review.openstack.org/512052 | 14:52 |
*** openstackgerrit has quit IRC | 15:34 | |
ara-slack | <dmsimard> @harlowja when you figure out the "most awesome and optimal" gunicorn config, we should write that down somewhere in the docs | 15:48 |
*** resmo has quit IRC | 15:53 | |
ara-slack | <harlowja> @dmsimard yup, gunicorn is just easier than apache to get going (especially inside a docker container) | 16:16 |
ara-slack | <harlowja> File uploaded https://ara-community.slack.com/files/U6V9WRRTM/FA21JHUE9/-.txt / https://slack-files.com/T6VAB05L7-FA21JHUE9-101cb3c890 - prob this is also useful for folks to... | 16:17 |
paulfantom | dmsimard: just wanted to say that my project now hosts an ARA demo: https://demo.cloudalchemy.org/ara/ :) | 16:46 |
*** tbielawa is now known as tbielawa|lunch | 16:51 | |
*** harlowja has joined #ara | 17:21 | |
dmsimard | paulfantom: cool! You got a deployment error :p | 17:24 |
paulfantom | yeah, working on it :) | 17:25 |
*** harlowja has quit IRC | 17:25 | |
paulfantom | how can I have historical runs in ARA? Currently I'm doing `ara generate html ara && tar cvf ara.tgz ara && ansible -m unarchive -a "src=ara.tgz dest=/var/www/demo/" web` to generate report and copy it to my webserver. But it shows only last run, what I am doing wrong? | 17:52 |
dmsimard | paulfantom: as long as the data is in the same database, it should accumulate as many playbook runs as you want | 17:56 |
dmsimard | paulfantom: maybe your builds are isolated and running in a different database each time ? | 17:56 |
paulfantom | oh, forgot about it | 17:56 |
dmsimard | paulfantom: FWIW static HTML generation works well for a low volume but doesn't scale very well | 17:56 |
paulfantom | thanks! I need to rethink how I host this demo site | 17:57 |
dmsimard | You might be interested in reading this: https://ara.readthedocs.io/en/latest/advanced.html | 17:57 |
paulfantom | I know, you told me this some time earlier ;) | 17:57 |
paulfantom | is there any possibility to merge two separate reports? | 17:58 |
paulfantom | both of which are static files | 17:59 |
dmsimard | paulfantom: not easily | 18:00 |
paulfantom | ok, so it seems I have two options: 1) leave it as is and serve only last ansible run 2) host a SQL db to which ARA would connect | 18:01 |
paulfantom | right? | 18:01 |
*** tbielawa|lunch is now known as tbielawa | 18:02 | |
*** harlowja has joined #ara | 18:29 | |
dmsimard | paulfantom: there's a lot of different ways to do this, depends on your use case and what you prefer tbh | 19:22 |
dmsimard | serving the last ansible run (the one that deployed this very demo site) is probably okay ? and very simple too | 19:23 |
dmsimard | if you need more than that, it's going to be a bit more complicated so really that's up to you | 19:23 |
paulfantom | I think I'll stay with current solution | 19:24 |
paulfantom | Thanks ;-) | 19:24 |
*** _KaszpiR__ is now known as _KaszpiR_ | 20:01 | |
*** qwebirc18903 has joined #ara | 21:11 | |
qwebirc18903 | I'm new to Ara. I have it setup running with embedded server. I can see the playbook reports fine. However, if I run the playbook via Jenkins pipeline, I don't see the report. | 21:13 |
qwebirc18903 | don't get why Jenkins triggered playbooks don't show up in Ara. | 21:13 |
qwebirc18903 | I've made sure that the global Ansible config under /etc/ansible/ansible.cfg is configured to use ara. So, I'm really not sure whats the problem | 21:14 |
_KaszpiR_ | not loading plugin, usually | 21:15 |
_KaszpiR_ | or issue connecting to ara server | 21:15 |
_KaszpiR_ | it should be visible in verbose mode what is failing | 21:15 |
dmsimard | qwebirc18903: by default, the database is located under ~/.ara/ansible.sqlite | 21:17 |
dmsimard | qwebirc18903: so for example, if jenkins is running the job as the "jenkins" user, this might be in something like /var/lib/jenkins/.ara/ansible.sqlite | 21:17 |
dmsimard | whereas, if you're running under a different user, it would be in /home/user/.ara/ansible.sqlite | 21:17 |
dmsimard | when you fire the web server, it needs to know where the database is or assumes the default (which in this case appears empty for you) | 21:18 |
*** ChanServ sets mode: +o dmsimard | 21:18 | |
qwebirc18903 | ok thanks. that give me something to think about | 21:19 |
dmsimard | qwebirc18903: another use case that is common with jenkins is to generate a static html report at the end and then recover that in your logs | 21:20 |
dmsimard | so that a report only contains this one job, for example | 21:20 |
qwebirc18903 | ok. thanks dmsimard. | 21:21 |
_KaszpiR_ | hm... wondering, anyone tried to add ansible execution as ansible-local invoked by, for example, cobbler ( so that ansible is execute by kickstart/preseed) and thus ansible would report to ara? | 21:21 |
dmsimard | _KaszpiR_: I'm not sure I follow | 21:22 |
*** qwebirc18903 has quit IRC | 21:22 | |
_KaszpiR_ | ok, let me explain | 21:22 |
_KaszpiR_ | right now I run ara server on my laptop, I aslo use my laptop to run ansible to provision remote hosts - this works fine | 21:23 |
_KaszpiR_ | now the idea is to execute ansible on remote host locally (that is not via ssh) and still to report to remote ara instance (say, my laptop) | 21:23 |
_KaszpiR_ | now, that ansible run could be invoked by hand, or scripted | 21:24 |
_KaszpiR_ | and that script can be wrapped in kickstart or preseed or cloudinit, which are generally used during initial host provisioning | 21:25 |
_KaszpiR_ | so the only thing I would actually have to do would be to script installation of ara plugin for remote logging, ansible config to use ara and then finally invoke ansible provision by downloading required code from git | 21:26 |
_KaszpiR_ | another way would be just to send a notificiation to provisioner server to execute ansible to provision freshy booted server, but actually this makes things a bit more complicated | 21:27 |
*** openstackgerrit has joined #ara | 21:27 | |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Update integration jobs and fix broken unit tests https://review.openstack.org/558957 | 21:28 |
_KaszpiR_ | in general with such setup it would be really easy to integrate ara with cobbler or foreman without any more complex plugins | 21:28 |
_KaszpiR_ | especially under foreman | 21:28 |
dmsimard | _KaszpiR_: It's probably not a good idea to have servers connecting to your laptop :P | 21:28 |
_KaszpiR_ | 'laptop' was just as reference | 21:29 |
_KaszpiR_ | ara could be as dedicated server for reports | 21:29 |
_KaszpiR_ | could be also on the cobbler server itself | 21:30 |
dmsimard | there's definitely different approaches | 21:30 |
dmsimard | 1.0 (or 2.0 now?) will make this kind of integration easier with an API server (if you want to use it, it's optional) | 21:31 |
_KaszpiR_ | the thing is, rhight now I don't really need an api server at all | 21:32 |
_KaszpiR_ | what I really need is standalone ara instance just to accept connections to save reports | 21:32 |
_KaszpiR_ | and then adjusted kickstart or preseed files with scripts to clone and execute commands after cloning repoi | 21:33 |
_KaszpiR_ | actually I did that once with puppet in masterless mode | 21:33 |
_KaszpiR_ | of course the code was pretty simple and stored for example only password hashes and so on | 21:34 |
dmsimard | oh I misunderstood | 21:34 |
dmsimard | Right now the database credentials are required if you want to talk to a centralized/aggregated ara instance | 21:35 |
_KaszpiR_ | quck google shows noone did that yet | 21:35 |
_KaszpiR_ | hm ara api could be useful to create some temporary token to allow writing to ara instance, say 2h from the moment of requesting token | 21:37 |
_KaszpiR_ | we right now use terraform to spawn certian infra servers | 21:38 |
_KaszpiR_ | for example terraform talks with cobbler and triggers reinstallation of the servers via cobbler, and after cobbler reports the server is provisioed then terraform initiates ansible run to provision server further | 21:39 |
_KaszpiR_ | and this could be mixed with ara for better visibility | 21:39 |
dmsimard | _KaszpiR_: something like this ? https://getintodevops.com/blog/using-ansible-with-terraform | 21:40 |
_KaszpiR_ | AFAIR yeah something like this | 21:41 |
_KaszpiR_ | but there is more logic to talk to cobbler | 21:41 |
dmsimard | so terraform executes ansible locally | 21:41 |
_KaszpiR_ | yes | 21:42 |
dmsimard | but could it execute ansible on whatever other node instead that would then target the node you're bootstrapping ? | 21:42 |
dmsimard | like terraform -> bastion (with ansible and ara) -> new node | 21:42 |
*** tbielawa has quit IRC | 21:43 | |
_KaszpiR_ | probably | 21:43 |
_KaszpiR_ | https://www.slideshare.net/CodiLime/codilime-tech-talk-micha-poski-creation-of-a-sdwan-performance-test-infrastructure-based-on-baremetals?qid=a574a085-a3b8-420a-be62-9781921d39e9&v=&b=&from_search=5 here's the presentation what we done, unfortuantely in my native language, which is polish | 21:44 |
_KaszpiR_ | but slides are in english | 21:44 |
_KaszpiR_ | slide 12 | 21:45 |
_KaszpiR_ | so now terraform pokes cobbler to reboot server via ipmi, it reboots, gets initial scripts for provision via pxe and performs basic provision | 21:50 |
_KaszpiR_ | after that cobbler says server is ready, then terraform invokes locally ansible to connect to fresh server and ontinue provisioing with ansible | 21:51 |
_KaszpiR_ | this way we do not need custom preseed/kickstarts, but then we need to wait for node to report back to terraform | 21:52 |
dmsimard | so ansible is run on "localhost", the new node being deployed | 21:52 |
_KaszpiR_ | ansible-playbook command is executed on the same node which invokes terraform, for example jenkins slave | 21:52 |
dmsimard | ok and the inventory contains the new node | 21:53 |
_KaszpiR_ | yeah | 21:53 |
dmsimard | and why couldn't ara be hosted there ? like the jenkins slave | 21:53 |
_KaszpiR_ | it can | 21:53 |
_KaszpiR_ | it's just not implemented | 21:53 |
dmsimard | okay | 21:53 |
_KaszpiR_ | now it would be super easy to extend it | 21:54 |
dmsimard | I personally feel like that might be the simplest option ? | 21:54 |
_KaszpiR_ | yeah | 21:54 |
_KaszpiR_ | but my inithal thought was a bit different | 21:54 |
_KaszpiR_ | to invoke ansible-playbook on the provisioned server itself (no need for ssh connection) | 21:55 |
_KaszpiR_ | something like test-kitchen or packer-tool and ansible-local | 21:55 |
_KaszpiR_ | the only remote connection would be to send ara reports | 21:57 |
_KaszpiR_ | gotta try this maybe tomorrow | 22:00 |
_KaszpiR_ | so the only drawback would be a requirement to have python + ansible on provisioned host, or go mental and execute it in container :D | 22:03 |
dmsimard | _KaszpiR_: harlowja posted a docker container image example the other day :p | 22:04 |
dmsimard | http://paste.openstack.org/raw/718531/ | 22:05 |
ara-slack | <harlowja> https://ara-community.slack.com/files/U6V9WRRTM/FA21JHUE9/-.txt | 22:05 |
ara-slack | <harlowja> enjoy, ha | 22:05 |
_KaszpiR_ | need account to see that | 22:06 |
ara-slack | <harlowja> http://paste.openstack.org/raw/718531/ then | 22:06 |
dmsimard | _KaszpiR_: yeah that's why I pasted it | 22:06 |
ara-slack | <harlowja> or https://gist.github.com/harlowja/74a95dd6d5ac8bcd02fb0d7c797408a6 | 22:06 |
harlowja | remove or replace https://gist.github.com/harlowja/74a95dd6d5ac8bcd02fb0d7c797408a6#file-gistfile1-txt-L9-L15 | 22:06 |
_KaszpiR_ | dmsimard you want me to create slack account? | 22:07 |
harlowja | u have to be like in all the places | 22:07 |
harlowja | lol | 22:07 |
dmsimard | _KaszpiR_: no ? | 22:07 |
_KaszpiR_ | pls | 22:07 |
dmsimard | I mean there's the ara-slack bridge bot | 22:07 |
dmsimard | you don't have to :) | 22:07 |
_KaszpiR_ | irc, slack, rocket-chat, hipchat | 22:07 |
_KaszpiR_ | gitter | 22:07 |
harlowja | ya, use all of them | 22:07 |
harlowja | lol | 22:07 |
_KaszpiR_ | make it stop ;D | 22:07 |
dmsimard | there was demand for slack so I added it and bridged it | 22:07 |
_KaszpiR_ | what about discord | 22:08 |
dmsimard | I put one up | 22:08 |
harlowja | ya, that to | 22:08 |
dmsimard | because I personally like discord | 22:08 |
dmsimard | but no one showed up | 22:08 |
_KaszpiR_ | thank god there is a linking bot | 22:08 |
dmsimard | so I shut it down | 22:08 |
_KaszpiR_ | discord is for games | 22:08 |
_KaszpiR_ | and works perfectky for voice chats | 22:08 |
dmsimard | but anyway, there's 46 names in here and .. 71 people in slack | 22:08 |
dmsimard | so I figure you could say setting up slack was worthwhile (and especially low effort) | 22:09 |
dmsimard | It's 2018, I am able to understand that some people dislike IRC :) | 22:09 |
harlowja | i'm waiting for my hoverboard... | 22:10 |
harlowja | still waiting, lol | 22:10 |
_KaszpiR_ | :D | 22:10 |
dmsimard | I know right | 22:10 |
dmsimard | flying cars and all that | 22:10 |
dmsimard | anyway, if you really want to join slack I'm not going to stop you -- the invite is in the readme https://github.com/openstack/ara#community-and-getting-help | 22:11 |
dmsimard | I probably need to figure out at some point how to bridge the two if slack is really dropping the irc gateway | 22:11 |
dmsimard | I suppose someone's figured out how to make it work even without the gateway or something by now | 22:11 |
_KaszpiR_ | I think people will just write bot, or there is already one | 22:12 |
dmsimard | Someone could probably just use like errbot | 22:12 |
dmsimard | and bridge the two that way | 22:13 |
dmsimard | ¯\_(ツ)_/¯ | 22:13 |
_KaszpiR_ | I bet it would require slight adjusting some existing bot which is rught now used on quakenet to link discord | 22:13 |
_KaszpiR_ | ok, time to hit the pillow, cu | 22:23 |
*** Phinnay has quit IRC | 22:42 | |
*** weshay is now known as weshay_pto | 23:05 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!