*** schnipdip has joined #ara | 00:47 | |
schnipdip | Hi | 00:48 |
---|---|---|
*** schnipdip has quit IRC | 00:52 | |
*** schnipdip has joined #ara | 01:52 | |
schnipdip | can I stream the data using the API into plotext for real time data analytics>? | 01:56 |
schnipdip | also, there should be dependency checks on the nodejs installation? I ran into an issue with installing it. It was trying to pass apt-key add -... which isn't a parsable field | 02:12 |
dmsimard | schnipdip: hey, it's a bit late but happy to chat tomorrow | 03:24 |
dmsimard | ara-web is a bit neglected right now but there's a simple reporting UI built-in to the API server | 03:25 |
schnipdip | cool beans :) I appreciate it :D | 04:08 |
*** evrardjp has quit IRC | 04:33 | |
*** evrardjp has joined #ara | 04:33 | |
*** schnipdip has quit IRC | 05:05 | |
*** TKersten has joined #ara | 06:50 | |
*** sshnaidm|off is now known as sshnaidm | 09:44 | |
*** apollo13 has quit IRC | 09:53 | |
*** apollo13 has joined #ara | 09:55 | |
*** mgariepy has quit IRC | 11:05 | |
*** TKersten has left #ara | 11:05 | |
*** yeled has quit IRC | 11:23 | |
*** yeled has joined #ara | 11:34 | |
*** mgariepy has joined #ara | 12:32 | |
*** dbpiv has joined #ara | 12:54 | |
*** schnipdip has joined #ara | 13:19 | |
*** schnipdip has quit IRC | 13:48 | |
*** bwatson has quit IRC | 14:06 | |
*** dbpiv has joined #ara | 14:17 | |
*** mgariepy has quit IRC | 15:31 | |
*** dbpiv has quit IRC | 16:12 | |
*** mgariepy has joined #ara | 16:36 | |
*** schnipdip has joined #ara | 17:04 | |
schnipdip | Is there a configuration file to change the IP address of the development server? | 17:04 |
schnipdip | built from pip3 | 17:12 |
*** dbpiv has joined #ara | 17:16 | |
dmsimard | schnipdip: ara-manage runserver 0.0.0.0:8000 | 17:29 |
dmsimard | you might need to edit ALLOWED_HOSTS to take into account the hostname/ip under which you expect to access it | 17:30 |
schnipdip | cool beans :D I'll give it a shot. I'm really excited about setting up Ara. My friend and I wanted to build an Ansible plugin for task time data analytics. We ended up with the same design, except for the API server, as Ara (before we discovered Ara) | 17:31 |
schnipdip | Is allowed_hosts a django setting? | 17:32 |
dmsimard | yeah it's a django setting -- ara creates a default configuration file you can edit in ~/.ara/server/settings.yaml | 17:33 |
dmsimard | schnipdip: happy that you're excited, ara isn't perfect but I like to think it has a lot of potential :p | 17:34 |
schnipdip | It does! We want to utilize the API to out the analytics to a stream plotter | 17:35 |
dmsimard | btw there's new CLI commands in master that haven't been released yet. | 17:35 |
dmsimard | for lack of demo, there's some screenshots on https://twitter.com/arecordsansible | 17:37 |
schnipdip | Cool! I will take a look at it in a bit. I'm receiving a 400 bad request error at the moment. Just added 0.0.0.0 to Allowed_hosts (i'm not an web app guy as you can tell). | 17:39 |
dmsimard | 0.0.0.0 is the listen address (on all addresses) | 17:39 |
dmsimard | you need to add the address or hostname you're trying to reach, like ara.tld or 192.168.x.x or whatever | 17:40 |
dmsimard | also if you installed from pip, you might have picked up a settings regression from a dependency. There's an issue for it but it's not fixed yet. You can workaround by downgrading to the previous version: pip install "dynaconf<3.0" | 17:43 |
schnipdip | Okay, I will give it a shot. I'm still receiving a 400 error. I added the local host IPv4 to the ALLOWED_HOSTS and 0.0.0.0. | 17:46 |
dmsimard | yeah the regression can prevent settings from being loaded properly :( | 17:49 |
schnipdip | https://imgur.com/a/wMJ1glx | 17:54 |
schnipdip | Here is what I'm seeing | 17:54 |
dmsimard | the version of dynaconf looks alright but the fact that the settings file isn't being loaded properly reminds me of the issue a lot | 17:58 |
schnipdip | My env set up: | 17:58 |
dmsimard | how did you install with pip ? system-wide ? --user ? | 17:59 |
dmsimard | I'm not saying that this is what is happening here but you could have different versions installed across different librairies or interpreters | 17:59 |
schnipdip | let me take a look at my command history | 17:59 |
schnipdip | mm great it didn't record that pip command. I believe i copy pastaed out of Git | 18:01 |
dmsimard | where is ara-manage ? you can tell with "which ara-manage" | 18:01 |
schnipdip | ~/.local/bin/ara-manage | 18:01 |
dmsimard | ok so that means it was installed with --user, otherwise it'd be in /usr/bin or /usr/local/bin | 18:02 |
dmsimard | the pip show command you gave me ran as root so that returned the version of the packaged installed in the system librairies | 18:03 |
dmsimard | python packaging is confusing :p | 18:03 |
dmsimard | try: pip install --user "dynaconf<3.0" | 18:03 |
schnipdip | It's pretty confusing haha. So I ran it with the --user and it regressed the version to 2.2.3 | 18:06 |
dmsimard | now if you try again, settings are likely to work | 18:06 |
schnipdip | testing ara-manage runserver 0.0.0.0:8000 | 18:07 |
schnipdip | connecting via chrome to 10.91.100.144:8000 | 18:07 |
schnipdip | could be a firewall rule now that I am thinking about it | 18:08 |
schnipdip | bad request 400 | 18:08 |
dmsimard | is the bad request due to allowed_hosts again ? | 18:10 |
schnipdip | I'm not 100% sure. It's pulling the django settings ara.server.settings | 18:10 |
dmsimard | it should tell you in the errors, like in the screenshots you sent there was an error that said you needed to add the address in ALLOWED_HOSTS | 18:11 |
dmsimard | not in the browser but on the server side | 18:11 |
schnipdip | Yes, that error is still occurring | 18:12 |
schnipdip | 10.91.100.144 is the host that is running Ara. It's says, "Invalid HTTP_HOST header: '10.91.100.144:8000'. You may need to add '10.91.100.144' to ALLOWED_HOSTS. | 18:13 |
dmsimard | should be good if dynaconf isn't >=3.0 and it's in ALLOWED_HOSTS of ~/.ara/server/settings.yaml | 18:15 |
dmsimard | I guess you re-ran the ara-manage command so it picked up the new version | 18:15 |
schnipdip | Let me uninstall and reinstall ara and start from scratch. | 18:16 |
schnipdip | I was fiddling with sqlite3 because the versioning was wrong... BTW it's a pain in the ass the upgrade pysqlite versions | 18:17 |
dmsimard | what distro ? | 18:17 |
schnipdip | Red Hat 4.8.5-36 | 18:18 |
schnipdip | be right back | 18:19 |
dmsimard | er -- that looks like a kernel version.. would it be rhel8 ? | 18:20 |
schnipdip | it's 7.8 | 18:34 |
*** dbpiv has quit IRC | 18:34 | |
*** dbpiv has joined #ara | 18:34 | |
dmsimard | there's different gotchas (including that sqlite one you mentioned) for running under rhel7 :( | 18:39 |
dmsimard | runs out of the box on rhel8 though | 18:39 |
schnipdip | rats, okay, I'll spin up a new box for Rhel 8 | 18:40 |
*** dbpiv has quit IRC | 18:42 | |
dmsimard | sorry about that, rather send you the more simple/straightforward path | 18:42 |
schnipdip | That's okay. It only takes a few minutes to spin up a new box. I'd prefer to break it off of my dev ansible server anyways for now | 18:43 |
schnipdip | @dm | 19:19 |
schnipdip | dmsimard I'll continue this tonight. Something work related just came up. Started to provision the new RHEL8 box | 19:19 |
schnipdip | I noticed ~/.ara wasn't created after running the | 19:20 |
schnipdip | but it's there... all well, i'm updating the ALLOW_HOSTS section | 19:23 |
dmsimard | after running the [...] ? suspense is killing me ;) | 19:24 |
schnipdip | giving it a test :D i'm excited too! | 19:25 |
schnipdip | ohhh hmm new error | 19:28 |
schnipdip | error 500, is there a test playbook.yml I am supposed to run or can it be any playbook? | 19:30 |
dmsimard | need to run sql migrations maybe ? ara-manage migrate | 19:30 |
schnipdip | https://imgur.com/a/wMJ1glx | 19:30 |
schnipdip | last picture is the new error | 19:30 |
dmsimard | yeah no such table playbooks | 19:30 |
dmsimard | interrupt the server and run "ara-manage migrate" | 19:31 |
dmsimard | and start it up again | 19:31 |
schnipdip | YESSSSSSSSSSSSSSSSSSSSSSSSS!!!!!!!! | 19:31 |
schnipdip | It's working! | 19:31 |
schnipdip | AHAHAHAHHAHAHA!! | 19:31 |
*** dbpiv has joined #ara | 19:31 | |
dmsimard | \o/ | 19:32 |
schnipdip | Thank you so much! I'm going to make some standup notes in my journal | 19:32 |
dmsimard | so then the next step is to install just ara (not ara[server]) wherever you are running ansible from, export ANSIBLE_CALLBACK_PLUGINS=$(python3 -m ara.setup.callback_plugins), export ARA_API_SERVER=http://host:8000 and finally export ARA_API_CLIENT=http | 19:33 |
dmsimard | api_server and api_client can go under [ara] of your ansible.cfg | 19:33 |
schnipdip | Oh okay I see, I did an all in one server. I'll break them out. So I can go back to my dev ansible controller and install pip3 install --user ara | 19:37 |
dmsimard | it's really up to you, it can be colocated -- or not | 19:38 |
dmsimard | if you colocate ansible and ara, the API server doesn't need to be running all the time -- the callback uses the offline client to talk to the API | 19:40 |
dmsimard | if the API server is located elsewhere then it needs to run as a service | 19:40 |
dmsimard | there's an ansible role that supports centos8, should work on rhel8 too: https://github.com/ansible-community/ara-collection/blob/master/roles/ara_api/README.md | 19:41 |
schnipdip | in a dev env collation may be best. In Prod, we will break it out. Btw my friend and I own a basement datacenter - about 6 racks of compute/storage with a 10G backbone. We are going to be using it there :) I will also be using this for my work env for when I develop ansible code | 19:41 |
dmsimard | cool stuff, that's much larger than my basement cloud :) | 19:42 |
schnipdip | I built it from Ansible last night to test it. It worked until it got to the nodejs section. I think in the main.yml there should be a state check on nodejs. If nodejs exists and matches version, skip, otherwise do stuff. I had nodejs installed already and I was receiving an apt-key error. It was trying to parse '-', which isn't a valid key. | 19:44 |
schnipdip | It also saves processing time | 19:44 |
dmsimard | I'm not much of a nodejs or javascript person but yeah, we can fix it | 19:45 |
dmsimard | ara_api doesn't do any nodejs things -- that's ara-webn | 19:47 |
schnipdip | Same haha, it was one of those things that kept popping up during the install and I said "screw it, I'll do it myself" and disabled the nodejs section entirely | 19:47 |
schnipdip | It's nicely written code :) | 19:48 |
*** schnipdip has quit IRC | 20:42 | |
*** dbpiv has quit IRC | 20:52 | |
*** dbpiv has joined #ara | 20:59 | |
*** dbpiv has quit IRC | 21:17 | |
*** dbpiv has joined #ara | 21:22 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!