Thursday, 2019-06-20

*** dmsimard0 is now known as dmsimard00:25
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Re-structure integration tests  https://review.opendev.org/66629700:37
*** dbpiv has joined #ara00:37
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Re-structure integration tests  https://review.opendev.org/66629701:00
*** etienne has quit IRC01:12
*** dbpiv has quit IRC03:40
*** micisuta has joined #ara08:01
*** zbr has joined #ara08:17
*** herald85 has joined #ara08:30
*** yeled has joined #ara09:31
*** vincent--- has joined #ara09:59
*** vincent- has joined #ara10:02
*** vincent-- has quit IRC10:02
*** vincent--- has quit IRC10:04
*** micisuta1 has joined #ara10:27
*** micisuta has quit IRC10:29
*** micisuta1 has quit IRC10:32
*** dbpiv has joined #ara12:35
*** vincent-- has joined #ara12:47
*** vincent- has quit IRC12:48
*** micisuta has joined #ara13:13
*** idir__ has joined #ara14:08
idir__hello i'm back :) ; i tried i'm to use ara with jenkins and ansible, after installing ansible and ara, then exporting the env variables, i get thi error "ara.setup.exceptions.MissingDjangoException: Unable to import Django: the server dependencies can be installed with 'pip install ara[server]'"14:11
idir__i just want to install ara and call api in another host14:12
dmsimardidir__: this might have been fixed by https://github.com/ansible-community/ara/commit/bae32bf42565acd7749c235eab37ae4598d4392514:13
dmsimardwhich is in 1.0.1 but not 1.0.014:13
idir__i'm using pip install ara so it install the 1.0.114:14
dmsimardare you setting ARA_API_CLIENT to http ?14:15
dmsimardor setting it under [ara] in ansible.cfg ?14:16
idir__i'm using env variables14:16
idir__with exports14:16
idir__export ARA_API_SERVER="http://192.168.226.59:8000"14:17
idir__i addition of callback and action14:17
dmsimardidir__: you need export ARA_API_CLIENT=http too14:20
dmsimardsee https://ara.readthedocs.io/en/latest/ara-plugin-configuration.html#ara-callback-plugin14:20
idir__i add the variable juste now and i'm testing with jenkins14:21
idir__is this variable tell to ara to use the remote api14:21
idir__because when i do it manually in hosts i don't export this one14:22
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Re-structure integration tests  https://review.opendev.org/66629714:22
dmsimardidir__: the default API client is the offline client14:22
dmsimardif you want to send data elsewhere, you need to set the API client to http14:23
dmsimardthe offline client is adequate for local/offline use but requires the server dependencies installed (hence the error you got014:23
idir__i set the variable and now i have " Failure using method (v2_playbook_on_start) in callback plugin (<ansible.plugins.callback./opt/jenkins- slave/mdsa403/workspace/ara_test/ansible/lib/python3.6/site- packages/ara/plugins/callback/ara_default.CallbackModule object at 0x7f988bb39780>): HTTPConnectionPool(host='localhost', port=3128): Read timed out. (read timeout=30)"14:24
dmsimardthat error doesn't tell us much, are you sure ARA_API_SERVER is being taken into account ?14:26
dmsimardnot sure what, if anything, exists at localhost:312814:26
idir__this is what i'm doing exaclty :14:28
idir__ pip install ara           export ANSIBLE_CALLBACK_PLUGINS=/opt/jenkins-slave/mdsa403/workspace/ara_test/ansible/lib64/python3.6/site-packages/ara/plugins/callback           export ANSIBLE_ACTION_PLUGINS=/opt/jenkins-slave/mdsa403/workspace/ara_test/ansible/lib64/python3.6/site-packages/ara/plugins/action           export ARA_API_SERVER="http://192.168.226.59:8000"           export ARA_API_CLIENT=http14:28
dmsimardthat looks okay to me14:28
dmsimardcan you turn up verbosity with ARA_DEBUG=true and ARA_LOG_LEVEL=DEBUG ?14:29
idir__as env variable ?14:29
dmsimardYeah14:31
idir__donne i'm waiting for the execution14:31
dmsimardYou might also need to pass "-vvv" (three Vs) so Ansible doesn't hide the exception from the callback14:34
dmsimardWe should probably have some basic troubleshooting docs14:34
idir__i'am executing with -vvvv14:34
idir__and nothing more shown14:35
idir__i have the save warning14:35
idir__same14:35
idir__[WARNING]: Failure using method (v2_runner_on_ok) in callback plugin (<ansible.plugins.callback./opt/jenkins- slave/mdsa403/workspace/ara_test/ansible/lib/python3.6/site- packages/ara/plugins/callback/ara_default.CallbackModule object at 0x7f260332cda0>): 'NoneType' object is not subscriptable14:35
dmsimardThat's likely an error cascading from the fact that there's no playbook to attach the task to14:36
idir__and this one :14:36
idir__[WARNING]: Failure using method (v2_playbook_on_play_start) in callback plugin (<ansible.plugins.callback./opt/jenkins- slave/mdsa403/workspace/ara_test/ansible/lib/python3.6/site- packages/ara/plugins/callback/ara_default.CallbackModule object at 0x7f260332cda0>): 'ascii' codec can't decode byte 0xe2 in position 11: ordinal not in range(128)14:36
dmsimardThat last error might be https://github.com/ansible-community/ara/issues/4814:37
dmsimardI haven't had a reliable way to reproduce it yet14:37
dmsimardDo you have non-ascii characters in file paths ?14:37
dmsimardLike accents or stuff like that14:38
idir__no14:39
dmsimardidir__: I got ara to send data for all the Ansible integration tests using just this PR: https://github.com/ansible/ansible/pull/57231/files14:40
dmsimardSo it should work for you as well, not sure what else to say14:41
dmsimardMaybe try to put the config in an ansible.cfg file and export ANSIBLE_CONFIG=/path/to/ansible14:41
dmsimard.cfg *14:41
idir__i have also used an .cfg it work fine without jenkins14:42
dmsimardIf it works with the ansible.cfg file, maybe there's a bug with the env var, I dunno.14:42
idir__ans the config is14:42
idir__[ara] api_server = http://http://192.168.226.59:8000/14:43
idir__[defaults] callback_plugins=/home/idjemaoune/.ara_1/virtualenv/lib64/python3.6/site-packages/ara/plugins/callback14:43
idir__action_plugins=/home/idjemaoune/.ara_1/virtualenv/lib64/python3.6/site-packages/ara/plugins/action14:43
idir__without adding api client14:44
idir__and it work fine14:44
*** zbr is now known as zbr|ruck14:44
dmsimardif that worked, it's a bug14:46
dmsimardthe offline client should not reach out to an external api server14:46
idir__o.o14:55
idir__i'm wast14:55
idir__lol14:55
dmsimardseriously, though, if api_client is set to http, the api_server is set, it should just work. If it doesn't, either there is a mistake or there is a bug14:57
dmsimardIf there is a bug we'd need a way to reproduce it easily14:58
*** vincent-- has quit IRC14:58
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add support for mysql backend in the ara_api role  https://review.opendev.org/66631715:03
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app  https://review.opendev.org/66532315:06
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API  https://review.opendev.org/66396815:11
idir__i send the error to ktibi and he has the access to our gitlab, so he will see the code may be i did something wrong and dont see it15:19
dmsimardidir__: are you able to reproduce the issue outside of jenkins ?15:19
openstackgerritMerged recordsansible/ara master: Re-structure integration tests  https://review.opendev.org/66629715:19
dmsimardlike on a random virtual machine with a minimal playbook or something15:20
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app  https://review.opendev.org/66532315:36
*** idir__ has quit IRC15:41
dmsimardMarbug: mysql integration tested now http://logs.openstack.org/17/666317/4/check/ansible-role-ara-api-ubuntu-mysql/7eb0247/logs/server/mysqldump.sql.txt :p15:42
Marbugaaah cool!15:43
dmsimardif you want to take a look: https://review.opendev.org/#/c/666317/15:43
dmsimardit's not alpine but hey, it works15:43
MarbugWell I didn't had time today to checkout the client_api error I had, but I hope I can get back to it on monday :)15:43
MarbugAt first sight it looks good, although I must say that I don't have any experiance with zuul 😅15:44
Marbugaaah I see now http://logs.openstack.org/17/666317/4/check/ansible-role-ara-api-ubuntu-mysql/7eb0247/ :D15:45
dmsimardMarbug: zuul runs jobs as ansible playbooks and has an implementation of ara so I can see ara reports while I'm working on ara :p15:46
dmsimardit gets a bit inception-ish and confusing sometimes15:46
MarbugI would also say dangerous, for in case of a query that might break something, and your logs would become trash, but hey, sometimes it's the only way to go forth fast enough :-)15:48
dmsimardzuul uses a stable version of ara, though15:49
dmsimardbut yeah15:50
*** med_ has quit IRC16:03
*** micisuta has quit IRC16:05
*** Idir__ has joined #ara16:13
*** vincent- has joined #ara16:17
*** herald85 has quit IRC16:17
*** Idir__ has quit IRC16:17
*** gvincent has quit IRC16:34
*** gvincent has joined #ara16:34
*** vincent- has quit IRC16:50
*** vincent- has joined #ara16:57
*** gvincent has quit IRC17:00
*** gvincent has joined #ara17:17
pabelangerdmsimard: same encoding issue again: https://logs.zuul.ansible.com/89/57789/8d9f8e0547417362c0241ab039e360035b778478/third-party-check-silent/ansible-test-network-integration-ios-python27/4855045/job-output.html#l857917:40
pabelangerlanding code to copy ansible.sqlite db now17:40
pabelangerbut good news, is it is limited to specific network platform17:40
pabelangercisco ios17:40
pabelangerso, shouldn't be hard to reproduce17:40
dmsimardpabelanger: thanks for hunting that down18:25
dmsimardoh yeah, I love when that happens18:31
dmsimardERROR! Unexpected Exception, this is probably a bug: Unsupported API client: __omit_place_holder__7ae6cbcc37ecc45fcea9d84e896dd77c8eb66a02 (use 'http' or 'offline')18:31
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app  https://review.opendev.org/66532318:34
pabelangerdmsimard: okay, we'll have database next time it happens18:34
openstackgerritMerged recordsansible/ara master: Add support for mysql backend in the ara_api role  https://review.opendev.org/66631718:47
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API  https://review.opendev.org/66396818:48
dmsimardapollo13: noticed a fun problem with the offline client18:52
dmsimardthe callback initializes the offline client which runs the sql migrations the first time -- when ara_record tasks run, they get their own client which re-runs migrations18:53
dmsimardnow I'm pondering if ara_record should ever use the offline client at all18:57
dmsimardeither it queries the offline client endpoint (which is http) or a remote one18:57
dmsimardit doesn't need to spin up the whole django stack just for a task18:58
dmsimardbut then, I don't really see obvious plumbing to expose the random port to ara_recrd19:02
*** apollo13 has quit IRC19:10
*** apollo13 has joined #ara19:12
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API  https://review.opendev.org/66396819:21
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API  https://review.opendev.org/66396819:26
*** dbpiv has quit IRC20:04
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add toggle to disable sql migrations for the offline client  https://review.opendev.org/66672320:12
dmsimardsomewhat a bandaid for the issue ^20:13
dmsimardsimple and good enough for now :p20:13
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add toggle to disable sql migrations for the offline client  https://review.opendev.org/66672320:13
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app  https://review.opendev.org/66532320:38
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add toggle to disable sql migrations for the offline client  https://review.opendev.org/66672320:42
*** sshnaidm is now known as sshnaidm|off21:55

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