*** vincent- has joined #ara | 01:14 | |
*** dbpiv has quit IRC | 02:48 | |
*** dbpiv has joined #ara | 02:50 | |
*** dbpiv has quit IRC | 04:02 | |
*** vincent- has quit IRC | 07:52 | |
*** gvincent has joined #ara | 08:03 | |
*** vincent- has joined #ara | 08:15 | |
krion | wow, finally got time to give a shot to ara 1.x ^^ | 10:23 |
---|---|---|
krion | any mandatory read in order to migrate from 0.13 to 1.x | 10:23 |
krion | found the etherpad ;) | 10:32 |
krion | not sure the correct way to migrate my ara_record tasks though | 10:35 |
*** sshnaidm|afk is now known as sshnaidm | 10:40 | |
*** dbpiv has joined #ara | 11:39 | |
dmsimard | krion: ara_record usage should not be different from 0.x | 11:43 |
krion | ok, i'm missing something then, i'll dig | 12:07 |
dmsimard | If it is, it could be a bug but I'd need a way to reproduce the issue | 12:54 |
krion | looks like the python call for setup callbacks doesn't work | 13:01 |
krion | i'll dig | 13:01 |
dmsimard | Yeah, the idea is that the module retrieves the configuration loaded by the callback. The idea is that since it is an action module, it is run on the controller where the callback is also running. | 13:15 |
dmsimard | Are you using the offline client ? Or a remote API server ? | 13:16 |
*** jrist- is now known as jrist | 13:25 | |
*** sshnaidm is now known as sshnaidm|afk | 13:26 | |
*** sshnaidm|afk is now known as sshnaidm | 13:55 | |
krion | neither yet xD | 14:00 |
krion | i just pip install ara-server and remove ara yet | 14:01 |
krion | and my test playbooks doesn't run because of "unknow" ara_record tasks | 14:01 |
dmsimard | I'll pull the ara-server/clients/plugins packages from pypi, they aren't meant to be used yet | 14:08 |
dmsimard | they were standalone packages that existed prior to the merge of the different projects back into ara | 14:09 |
dmsimard | I want to make them available again eventually, but they're outdated right now. | 14:09 |
dmsimard | to get the latest alpha for 1.0, just use "pip install --pre ara" | 14:09 |
dmsimard | krion: ^ | 14:10 |
dmsimard | I hopefully updated docs and such to remove the mention of the standalone packages, let me know if I missed something | 14:12 |
krion | i'll try but i still need to declare callback_plugins variable or not ? ;) | 14:15 |
dmsimard | yeah, it's still the same thing | 14:16 |
dmsimard | pip install --pre ara | 14:16 |
krion | done | 14:17 |
dmsimard | export ANSIBLE_CALLBACK_PLUGINS=$(python -m ara.setup.callback_plugins) | 14:17 |
krion | alright, looks like it works now | 14:17 |
dmsimard | or in your ansible.cfg if you don't expect the path to change (across distributions, python versions, etc.) | 14:17 |
krion | before i just add ara-clients, ara-plugins and ara-server | 14:17 |
dmsimard | krion: did you read about those packages somewhere ? I ask because you're not the first person to try them | 14:18 |
krion | you mean i should remove them ? | 14:18 |
krion | not sure why i did install them | 14:18 |
krion | it's when i try to use a script that call the api since i was in 0.13 | 14:19 |
krion | (or in 0.x i mean) | 14:19 |
krion | https://gpldr.in/v/i2i6syHoYf/5ZXv0J3jItOyoHEZ | 14:21 |
krion | here's what i got | 14:21 |
krion | ok my playbooks run now | 14:22 |
krion | "run": not blocked by ara_record ^^ | 14:22 |
krion | i read somewhere that no migration is planned | 14:23 |
krion | so i guess i must first delete my old DB | 14:23 |
krion | sqlite3.OperationalError: no such column: hosts.changed | 14:23 |
krion | mv .ara .ara-old fix ;) | 14:25 |
krion | thanks for the great work ! | 14:25 |
*** dbpiv has quit IRC | 14:35 | |
dmsimard | krion: yeah, the procedure to install and use ara will stay backwards compatible (i.e, pip install ara, export ANSIBLE_CALLBACK_PLUGINS=...) but there's no upgrade path for taking a 0.x database to 1.0 | 14:50 |
dmsimard | the database model and the code has changed too much between the two | 14:50 |
dmsimard | if someone has the bandwidth to take on that, it would probably be easier to read the 0.x data and feed that to the API in 1.0 instead of doing an actual SQL migration | 14:52 |
dmsimard | krion: if you find any issues, feel free to use https://github.com/ansible-community/ara/issues | 14:53 |
dmsimard | I'll find time this week to re-organize the issue/feature/bug tracking | 14:53 |
*** ara-slack has joined #ara | 14:57 | |
*** ChanServ sets mode: +v ara-slack | 14:57 | |
dmsimard | realized that the slack bot wasn't in the channel.. it's trying to join before authenticating with nickserv.. gotta fix that | 14:58 |
krion | 2019-04-23 16:59:13,068 WARNING django.request: Not Found: / | 14:59 |
krion | [23/Apr/2019 16:59:13] "GET / HTTP/1.1" 404 77 | 14:59 |
krion | =) | 14:59 |
krion | but once again I didn't really search help or read closely something ;) | 14:59 |
dmsimard | need to hit /api/v1/ | 15:02 |
krion | hum... but i saw a webinterface as a demo or in a doc ? | 15:03 |
dmsimard | https://api.demo.recordsansible.org/api/v1/ | 15:03 |
dmsimard | unless you mean https://web.demo.recordsansible.org/ | 15:03 |
krion | yes, that one | 15:03 |
krion | (one of my goal is to catch the "unreacheable" node) | 15:04 |
dmsimard | that's from https://github.com/ansible-community/ara-web | 15:06 |
dmsimard | "npm install && npm start" should work if the API server is running locally -- the default config is 127.0.0.1:8000 | 15:07 |
dmsimard | otherwise you need to change the API server in https://github.com/ansible-community/ara-web/blob/master/public/config.json | 15:07 |
dmsimard | also note that there are roles to deploy the API and the web interface: https://ara.readthedocs.io/en/feature-1.0/ansible-role-ara-api.html && https://ara.readthedocs.io/en/feature-1.0/ansible-role-ara-web.html | 15:08 |
dmsimard | from https://github.com/ansible-community/ara/tree/feature/1.0/roles | 15:08 |
ara-slack | dmsimard: I don't have a good answer for you right now, I'll have to get back to you on that. | 15:13 |
krion | thanks a lot, maybe i'll try to request the api , should be enough for my use | 15:26 |
*** gvincent has quit IRC | 15:28 | |
dmsimard | krion: there's a simple example of how to get started with the python clients in the docs: https://ara.readthedocs.io/en/feature-1.0/api-usage.html#example-api-usage | 15:30 |
krion | I didn't click but that's probably the script that makes me install the ara-server ara-clients ara-plugins pip ;) | 15:40 |
dmsimard | Nope | 15:41 |
dmsimard | It's actual python code that shows how you can query the API and iterate through the results | 15:42 |
*** sshnaidm is now known as sshnaidm|afk | 15:54 | |
*** altlogbot_2 has quit IRC | 16:50 | |
*** altlogbot_2 has joined #ara | 16:50 | |
*** altlogbot_2 has quit IRC | 16:53 | |
*** altlogbot_2 has joined #ara | 16:54 | |
*** dbpiv has joined #ara | 16:58 | |
-openstackstatus- NOTICE: the zuul scheduler is being restarted now in order to address a memory utilization problem; changes under test will be reenqueued automatically | 19:07 | |
*** dbpiv has quit IRC | 21:44 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!