Monday, 2019-09-09

openstackgerritPierre GINDRAUD proposed recordsansible/ara master: Add TIME_ZONE as initial value for settings file  https://review.opendev.org/68090604:19
openstackgerritPierre GINDRAUD proposed recordsansible/ara master: Handle timezone from TZ variable  https://review.opendev.org/67834805:01
*** gvincent has joined #ara06:23
*** vincent- has joined #ara07:35
*** vincent-- has joined #ara07:40
*** vincent- has quit IRC07:42
*** sshnaidm|afk is now known as sshnaidm07:51
*** sshnaidm is now known as sshnaidm|ruck07:51
*** vincent--- has joined #ara08:10
*** vincent-- has quit IRC08:12
*** vincent--- has quit IRC08:15
*** idir__ has joined #ara08:18
idir__hello, i'm deploying ara in front on traefik with https, all works well but, when i'm trying to use ara callback with ansible on jenkins, i have this error (HTTPSConnectionPool(host='mdsa403api.devops.april.interne.fr', port=443): Max08:20
idir__protocol (_ssl.c:841)'),)))08:20
idir__before setting https all was working well08:21
idir__can you help me please ?08:21
apollo13idir__: you will have to show the full traceback and where does this happen08:32
idir__ok08:32
apollo13(use dpaste.com, don't paste the whole trace into the channel)08:33
apollo13or dpaste.de rather08:33
idir__yes08:33
idir__http://dpaste.com/3B9N1JF08:34
idir__when deploying gitlab with ansible/jenkins08:34
idir__i install ara and configure it to call the API whiwh is on https server08:34
apollo13how old is your python?08:37
idir__3.608:37
idir__with ansible 2.808:37
apollo13you might wanna try to follow this https://stackoverflow.com/questions/33410577/python-requests-exceptions-sslerror-eof-occurred-in-violation-of-protocol08:37
*** apollo13 has quit IRC08:38
idir__ok i'll see thank you apollo :)08:38
idir__there is another problem with encoding, is there an issue talking about this ?08:39
*** apollo13 has joined #ara08:40
idir__so for ssl problem, i try to unset some proxy vars and it does not work i will  https://stackoverflow.com/questions/33410577/python-requests-exceptions-sslerror-eof-occurred-in-vio...08:42
apollo13well you probably would know if you configured a proxy08:43
apollo13but I'd also check https://stackoverflow.com/a/5068139608:43
apollo13which TLS versions do you require in traefik?08:43
idir__tls 1.208:46
apollo13and which openssl version?08:46
idir__nothing in docs :/08:47
apollo13openssl version ;)08:47
apollo13apparently tls 1.2 is since 1.0.108:47
idir__yes08:48
apollo13either way, you can try going down to 1.1/1.0 in traefik and see if that fixes it, then you know you know are on the right track08:48
apollo13if that all doesn't help use tcpdump to see which side fails the exchange where08:48
idir__when trying to request  the api from commande line using python request it works08:50
*** idir__ has quit IRC09:00
*** vincent--- has joined #ara09:13
*** vincent--- has quit IRC10:09
*** vincent- has joined #ara10:10
*** krion has joined #ara10:12
openstackgerritJean-Philippe Evrard proposed recordsansible/ara master: Make env setup allow use of other plugins  https://review.opendev.org/67928110:17
*** sshnaidm|ruck is now known as sshnaidm|afk11:15
*** sshnaidm|afk is now known as sshnaidm|ruck12:32
*** spiette has quit IRC13:04
*** spiette has joined #ara13:08
*** idir__ has joined #ara13:49
idir__i'm facing the same problem since this morning, the https configuration of ara, when curl the ara api which is secure all work well but when trying to ara callback configuration on ansible then is ssl error13:51
idir__there is ssl error !13:51
idir__is there some one to help, appllo13 helped me this morning but i still have the problem13:53
dmsimardidir__: what version of django ?13:56
*** dbpiv has joined #ara13:57
idir__i guess is the last one which used in ara13:57
dmsimardidir__: I vaguely remember someone telling me about a ssl issue that was fixed by downgrading django to <2.213:58
dmsimardwhich is still within the requirements of >=2.1.513:58
idir__i'm using the callback and the api separately14:00
idir__the api in a server with http and i install ara with ansible in another host14:00
dmsimardok, sure14:01
dmsimardthat should work14:01
idir__yes it's work well but the problem is when i use activate ssl on traefik which is on front of gunicorn14:02
idir__i can curl14:02
idir__but when i combine14:02
idir__ara callback with ansible and configure to send on this api, i have the problem ( [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),)))14:03
dmsimardidir__: do you have access to a python interpreter where the callback is installed ?14:03
idir__yes14:04
idir__in this host i just install ara not ara[server] so there not problem with django14:05
idir__the api is installed on docker containers14:05
idir__i created an architecture using docker and docker compose to deploy many instances of ara14:06
dmsimardidir__: so if I run this little snippet locally, it'll work with a https endpoint: https://gist.github.com/dmsimard/783e4e190322f1a346b296437400929b14:07
dmsimardidir__: can you run that exact snippet and let me know if that works ?14:07
idir__ok14:07
idir__i have a big json14:10
idir__so i think it work14:10
dmsimardidir__: ok, so how about you change the endpoint so it's yours14:10
idir__yes i'm changing14:10
idir__erro :/14:11
dmsimardI'm not familiar with traefik but maybe there's something wrong with the config14:12
dmsimardthe api.demo endpoint uses nginx for ssl termination14:12
dmsimardand it's a letsencrypt certificate14:13
idir__yes i was using nginx but it's not work very well14:13
idir__i'm not using the letencrypt14:14
idir__i'm using a self signed cert of the company14:14
dmsimardidir__: is the CA certificate part of the bundle ?14:14
dmsimardcurl and python requests are not necessarily using the same certificate store14:15
idir__is there something to tel python to not verify the cert14:16
dmsimardidir__: there is an env variable to get requests to load different CAs, ex: https://stackoverflow.com/a/4298214414:17
idir__or how can i tell python to use the same key store like curl14:17
idir__ok i'll try this14:18
idir__i use the env vars14:21
idir__i re execute the littre script i now i dont have the same error14:21
idir__i have 401 it's normal because i set auth o14:21
idir__on14:21
idir__it works :)  thank you a lot :)14:25
idir__you are the best ;)14:25
dmsimardidir__: yay14:35
*** idir__ has quit IRC14:41
*** sshnaidm|ruck is now known as sshnaidm|afk16:00
*** njt has quit IRC16:50
*** njt has joined #ara16:52
*** vincent- has quit IRC17:22
*** dbpiv has quit IRC17:28
*** dbpiv has joined #ara17:28
*** dbpiv has quit IRC17:35
*** vincent- has joined #ara18:18
*** vincent- has quit IRC19:31
*** vincent- has joined #ara19:35
*** vincent- has quit IRC19:48
*** gvincent has quit IRC19:50

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