*** dmsimard0 is now known as dmsimard | 00:25 | |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Re-structure integration tests https://review.opendev.org/666297 | 00:37 |
---|---|---|
*** dbpiv has joined #ara | 00:37 | |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Re-structure integration tests https://review.opendev.org/666297 | 01:00 |
*** etienne has quit IRC | 01:12 | |
*** dbpiv has quit IRC | 03:40 | |
*** micisuta has joined #ara | 08:01 | |
*** zbr has joined #ara | 08:17 | |
*** herald85 has joined #ara | 08:30 | |
*** yeled has joined #ara | 09:31 | |
*** vincent--- has joined #ara | 09:59 | |
*** vincent- has joined #ara | 10:02 | |
*** vincent-- has quit IRC | 10:02 | |
*** vincent--- has quit IRC | 10:04 | |
*** micisuta1 has joined #ara | 10:27 | |
*** micisuta has quit IRC | 10:29 | |
*** micisuta1 has quit IRC | 10:32 | |
*** dbpiv has joined #ara | 12:35 | |
*** vincent-- has joined #ara | 12:47 | |
*** vincent- has quit IRC | 12:48 | |
*** micisuta has joined #ara | 13:13 | |
*** idir__ has joined #ara | 14: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 host | 14:12 |
dmsimard | idir__: this might have been fixed by https://github.com/ansible-community/ara/commit/bae32bf42565acd7749c235eab37ae4598d43925 | 14:13 |
dmsimard | which is in 1.0.1 but not 1.0.0 | 14:13 |
idir__ | i'm using pip install ara so it install the 1.0.1 | 14:14 |
dmsimard | are you setting ARA_API_CLIENT to http ? | 14:15 |
dmsimard | or setting it under [ara] in ansible.cfg ? | 14:16 |
idir__ | i'm using env variables | 14:16 |
idir__ | with exports | 14:16 |
idir__ | export ARA_API_SERVER="http://192.168.226.59:8000" | 14:17 |
idir__ | i addition of callback and action | 14:17 |
dmsimard | idir__: you need export ARA_API_CLIENT=http too | 14:20 |
dmsimard | see https://ara.readthedocs.io/en/latest/ara-plugin-configuration.html#ara-callback-plugin | 14:20 |
idir__ | i add the variable juste now and i'm testing with jenkins | 14:21 |
idir__ | is this variable tell to ara to use the remote api | 14:21 |
idir__ | because when i do it manually in hosts i don't export this one | 14:22 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Re-structure integration tests https://review.opendev.org/666297 | 14:22 |
dmsimard | idir__: the default API client is the offline client | 14:22 |
dmsimard | if you want to send data elsewhere, you need to set the API client to http | 14:23 |
dmsimard | the offline client is adequate for local/offline use but requires the server dependencies installed (hence the error you got0 | 14: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 |
dmsimard | that error doesn't tell us much, are you sure ARA_API_SERVER is being taken into account ? | 14:26 |
dmsimard | not sure what, if anything, exists at localhost:3128 | 14: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=http | 14:28 |
dmsimard | that looks okay to me | 14:28 |
dmsimard | can you turn up verbosity with ARA_DEBUG=true and ARA_LOG_LEVEL=DEBUG ? | 14:29 |
idir__ | as env variable ? | 14:29 |
dmsimard | Yeah | 14:31 |
idir__ | donne i'm waiting for the execution | 14:31 |
dmsimard | You might also need to pass "-vvv" (three Vs) so Ansible doesn't hide the exception from the callback | 14:34 |
dmsimard | We should probably have some basic troubleshooting docs | 14:34 |
idir__ | i'am executing with -vvvv | 14:34 |
idir__ | and nothing more shown | 14:35 |
idir__ | i have the save warning | 14:35 |
idir__ | same | 14: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 subscriptable | 14:35 |
dmsimard | That's likely an error cascading from the fact that there's no playbook to attach the task to | 14: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 |
dmsimard | That last error might be https://github.com/ansible-community/ara/issues/48 | 14:37 |
dmsimard | I haven't had a reliable way to reproduce it yet | 14:37 |
dmsimard | Do you have non-ascii characters in file paths ? | 14:37 |
dmsimard | Like accents or stuff like that | 14:38 |
idir__ | no | 14:39 |
dmsimard | idir__: I got ara to send data for all the Ansible integration tests using just this PR: https://github.com/ansible/ansible/pull/57231/files | 14:40 |
dmsimard | So it should work for you as well, not sure what else to say | 14:41 |
dmsimard | Maybe try to put the config in an ansible.cfg file and export ANSIBLE_CONFIG=/path/to/ansible | 14:41 |
dmsimard | .cfg * | 14:41 |
idir__ | i have also used an .cfg it work fine without jenkins | 14:42 |
dmsimard | If it works with the ansible.cfg file, maybe there's a bug with the env var, I dunno. | 14:42 |
idir__ | ans the config is | 14: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/callback | 14:43 |
idir__ | action_plugins=/home/idjemaoune/.ara_1/virtualenv/lib64/python3.6/site-packages/ara/plugins/action | 14:43 |
idir__ | without adding api client | 14:44 |
idir__ | and it work fine | 14:44 |
*** zbr is now known as zbr|ruck | 14:44 | |
dmsimard | if that worked, it's a bug | 14:46 |
dmsimard | the offline client should not reach out to an external api server | 14:46 |
idir__ | o.o | 14:55 |
idir__ | i'm wast | 14:55 |
idir__ | lol | 14:55 |
dmsimard | seriously, 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 bug | 14:57 |
dmsimard | If there is a bug we'd need a way to reproduce it easily | 14:58 |
*** vincent-- has quit IRC | 14:58 | |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add support for mysql backend in the ara_api role https://review.opendev.org/666317 | 15:03 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app https://review.opendev.org/665323 | 15:06 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API https://review.opendev.org/663968 | 15: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 it | 15:19 |
dmsimard | idir__: are you able to reproduce the issue outside of jenkins ? | 15:19 |
openstackgerrit | Merged recordsansible/ara master: Re-structure integration tests https://review.opendev.org/666297 | 15:19 |
dmsimard | like on a random virtual machine with a minimal playbook or something | 15:20 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app https://review.opendev.org/665323 | 15:36 |
*** idir__ has quit IRC | 15:41 | |
dmsimard | Marbug: mysql integration tested now http://logs.openstack.org/17/666317/4/check/ansible-role-ara-api-ubuntu-mysql/7eb0247/logs/server/mysqldump.sql.txt :p | 15:42 |
Marbug | aaah cool! | 15:43 |
dmsimard | if you want to take a look: https://review.opendev.org/#/c/666317/ | 15:43 |
dmsimard | it's not alpine but hey, it works | 15:43 |
Marbug | Well 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 |
Marbug | At first sight it looks good, although I must say that I don't have any experiance with zuul 😅 | 15:44 |
Marbug | aaah I see now http://logs.openstack.org/17/666317/4/check/ansible-role-ara-api-ubuntu-mysql/7eb0247/ :D | 15:45 |
dmsimard | Marbug: zuul runs jobs as ansible playbooks and has an implementation of ara so I can see ara reports while I'm working on ara :p | 15:46 |
dmsimard | it gets a bit inception-ish and confusing sometimes | 15:46 |
Marbug | I 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 |
dmsimard | zuul uses a stable version of ara, though | 15:49 |
dmsimard | but yeah | 15:50 |
*** med_ has quit IRC | 16:03 | |
*** micisuta has quit IRC | 16:05 | |
*** Idir__ has joined #ara | 16:13 | |
*** vincent- has joined #ara | 16:17 | |
*** herald85 has quit IRC | 16:17 | |
*** Idir__ has quit IRC | 16:17 | |
*** gvincent has quit IRC | 16:34 | |
*** gvincent has joined #ara | 16:34 | |
*** vincent- has quit IRC | 16:50 | |
*** vincent- has joined #ara | 16:57 | |
*** gvincent has quit IRC | 17:00 | |
*** gvincent has joined #ara | 17:17 | |
pabelanger | dmsimard: 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#l8579 | 17:40 |
pabelanger | landing code to copy ansible.sqlite db now | 17:40 |
pabelanger | but good news, is it is limited to specific network platform | 17:40 |
pabelanger | cisco ios | 17:40 |
pabelanger | so, shouldn't be hard to reproduce | 17:40 |
dmsimard | pabelanger: thanks for hunting that down | 18:25 |
dmsimard | oh yeah, I love when that happens | 18:31 |
dmsimard | ERROR! Unexpected Exception, this is probably a bug: Unsupported API client: __omit_place_holder__7ae6cbcc37ecc45fcea9d84e896dd77c8eb66a02 (use 'http' or 'offline') | 18:31 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app https://review.opendev.org/665323 | 18:34 |
pabelanger | dmsimard: okay, we'll have database next time it happens | 18:34 |
openstackgerrit | Merged recordsansible/ara master: Add support for mysql backend in the ara_api role https://review.opendev.org/666317 | 18:47 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API https://review.opendev.org/663968 | 18:48 |
dmsimard | apollo13: noticed a fun problem with the offline client | 18:52 |
dmsimard | the 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 migrations | 18:53 |
dmsimard | now I'm pondering if ara_record should ever use the offline client at all | 18:57 |
dmsimard | either it queries the offline client endpoint (which is http) or a remote one | 18:57 |
dmsimard | it doesn't need to spin up the whole django stack just for a task | 18:58 |
dmsimard | but then, I don't really see obvious plumbing to expose the random port to ara_recrd | 19:02 |
*** apollo13 has quit IRC | 19:10 | |
*** apollo13 has joined #ara | 19:12 | |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API https://review.opendev.org/663968 | 19:21 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: WIP: Implement Ansible lookup plugin to query the ARA API https://review.opendev.org/663968 | 19:26 |
*** dbpiv has quit IRC | 20:04 | |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add toggle to disable sql migrations for the offline client https://review.opendev.org/666723 | 20:12 |
dmsimard | somewhat a bandaid for the issue ^ | 20:13 |
dmsimard | simple and good enough for now :p | 20:13 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add toggle to disable sql migrations for the offline client https://review.opendev.org/666723 | 20:13 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app https://review.opendev.org/665323 | 20:38 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add toggle to disable sql migrations for the offline client https://review.opendev.org/666723 | 20:42 |
*** sshnaidm is now known as sshnaidm|off | 21:55 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!