Tuesday, 2019-04-23

*** vincent- has joined #ara01:14
*** dbpiv has quit IRC02:48
*** dbpiv has joined #ara02:50
*** dbpiv has quit IRC04:02
*** vincent- has quit IRC07:52
*** gvincent has joined #ara08:03
*** vincent- has joined #ara08:15
krionwow, finally got time to give a shot to ara 1.x ^^10:23
krionany mandatory read in order to migrate from 0.13 to 1.x10:23
krionfound the etherpad ;)10:32
krionnot sure the correct way to migrate my ara_record tasks though10:35
*** sshnaidm|afk is now known as sshnaidm10:40
*** dbpiv has joined #ara11:39
dmsimardkrion: ara_record usage should not be different from 0.x11:43
krionok, i'm missing something then, i'll dig12:07
dmsimardIf it is, it could be a bug but I'd need a way to reproduce the issue12:54
krionlooks like the python call for setup callbacks doesn't work13:01
krioni'll dig13:01
dmsimardYeah, 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
dmsimardAre you using the offline client ? Or a remote API server ?13:16
*** jrist- is now known as jrist13:25
*** sshnaidm is now known as sshnaidm|afk13:26
*** sshnaidm|afk is now known as sshnaidm13:55
krionneither yet xD14:00
krioni just pip install ara-server and remove ara yet14:01
krionand my test playbooks doesn't run because of "unknow" ara_record tasks14:01
dmsimardI'll pull the ara-server/clients/plugins packages from pypi, they aren't meant to be used yet14:08
dmsimardthey were standalone packages that existed prior to the merge of the different projects back into ara14:09
dmsimardI want to make them available again eventually, but they're outdated right now.14:09
dmsimardto get the latest alpha for 1.0, just use "pip install --pre ara"14:09
dmsimardkrion: ^14:10
dmsimardI hopefully updated docs and such to remove the mention of the standalone packages, let me know if I missed something14:12
krioni'll try but i still need to declare callback_plugins variable or not ? ;)14:15
dmsimardyeah, it's still the same thing14:16
dmsimardpip install --pre ara14:16
kriondone14:17
dmsimardexport ANSIBLE_CALLBACK_PLUGINS=$(python -m ara.setup.callback_plugins)14:17
krionalright, looks like it works now14:17
dmsimardor in your ansible.cfg if you don't expect the path to change (across distributions, python versions, etc.)14:17
krionbefore i just add ara-clients, ara-plugins and ara-server14:17
dmsimardkrion: did you read about those packages somewhere ? I ask because you're not the first person to try them14:18
krionyou mean i should remove them ?14:18
krionnot sure why i did install them14:18
krionit's when i try to use a script that call the api since i was in 0.1314:19
krion(or in 0.x i mean)14:19
krionhttps://gpldr.in/v/i2i6syHoYf/5ZXv0J3jItOyoHEZ14:21
krionhere's what i got14:21
krionok my playbooks run now14:22
krion"run": not blocked by ara_record ^^14:22
krioni read somewhere that no migration is planned14:23
krionso i guess i must first delete my old DB14:23
krionsqlite3.OperationalError: no such column: hosts.changed14:23
krionmv .ara .ara-old fix ;)14:25
krionthanks for the great work !14:25
*** dbpiv has quit IRC14:35
dmsimardkrion: 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.014:50
dmsimardthe database model and the code has changed too much between the two14:50
dmsimardif 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 migration14:52
dmsimardkrion: if you find any issues, feel free to use https://github.com/ansible-community/ara/issues14:53
dmsimardI'll find time this week to re-organize the issue/feature/bug tracking14:53
*** ara-slack has joined #ara14:57
*** ChanServ sets mode: +v ara-slack14:57
dmsimardrealized that the slack bot wasn't in the channel.. it's trying to join before authenticating with nickserv.. gotta fix that14:58
krion2019-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 7714:59
krion=)14:59
krionbut once again I didn't really search help or read closely something ;)14:59
dmsimardneed to hit /api/v1/15:02
krionhum... but i saw a webinterface as a demo or in a doc ?15:03
dmsimardhttps://api.demo.recordsansible.org/api/v1/15:03
dmsimardunless you mean https://web.demo.recordsansible.org/15:03
krionyes, that one15:03
krion(one of my goal is to catch the "unreacheable" node)15:04
dmsimardthat's from https://github.com/ansible-community/ara-web15:06
dmsimard"npm install && npm start" should work if the API server is running locally -- the default config is 127.0.0.1:800015:07
dmsimardotherwise you need to change the API server in https://github.com/ansible-community/ara-web/blob/master/public/config.json15:07
dmsimardalso 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.html15:08
dmsimardfrom https://github.com/ansible-community/ara/tree/feature/1.0/roles15:08
ara-slackdmsimard: I don't have a good answer for you right now, I'll have to get back to you on that.15:13
krionthanks a lot, maybe i'll try to request the api , should be enough for my use15:26
*** gvincent has quit IRC15:28
dmsimardkrion: 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-usage15:30
krionI didn't click but that's probably the script that makes me install the ara-server ara-clients ara-plugins pip ;)15:40
dmsimardNope15:41
dmsimardIt's actual python code that shows how you can query the API and iterate through the results15:42
*** sshnaidm is now known as sshnaidm|afk15:54
*** altlogbot_2 has quit IRC16:50
*** altlogbot_2 has joined #ara16:50
*** altlogbot_2 has quit IRC16:53
*** altlogbot_2 has joined #ara16:54
*** dbpiv has joined #ara16:58
-openstackstatus- NOTICE: the zuul scheduler is being restarted now in order to address a memory utilization problem; changes under test will be reenqueued automatically19:07
*** dbpiv has quit IRC21:44

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