Monday, 2018-11-05

*** gvincent has joined #ara07:03
*** sshnaidm|off is now known as sshnaidm|rover07:07
*** themroc has joined #ara08:30
*** gvincent has quit IRC12:40
*** themurph has joined #ara13:05
*** tbielawa has joined #ara13:07
*** tbielawa is now known as tbielawa|rdu13:07
*** gvincent has joined #ara14:04
*** themurph has quit IRC14:05
*** themurph has joined #ara14:39
*** tbielawa|rdu is now known as tbielawa14:53
*** tbielawa is now known as tbielawa|rdu14:53
*** spiette has quit IRC14:54
*** spiette has joined #ara15:06
*** cloudnull has quit IRC15:22
dmsimardapollo13: around to chat about the offline client patch ?15:44
apollo13dmsimard: sure, at least for 10 minutes, maybe a little bit more, then I'll head home15:48
apollo13so shoot :)15:48
dmsimardso, first of all15:48
dmsimardI really like the approach15:48
dmsimardof re-using the http client15:48
dmsimardand it respects the requirement that we should not require users to stand up an api server for things to work15:49
apollo13I fear there is a but coming :)15:49
dmsimardit's not a but, it's a question15:49
dmsimardhow would this work if a user has concurrent ansible-playbook commands running ?%15:50
apollo13each of them would spawn their own server15:50
dmsimardon the same host/port ?15:50
apollo13same host yes, but I bind to port zero15:51
apollo13which means the kernel assigns a free port above 32k15:51
apollo13(or whatever the dynamic range is on that system, do not know the sysctl out of my head for that)15:51
dmsimardoh, interesting15:52
apollo13cat  /proc/sys/net/ipv4/ip_local_port_range15:53
apollo13if you exhaust that you are out of luck (it shows min - max)15:53
apollo13that also includes ports that are needed to create a tcp connection (ie src port)15:53
dmsimardok, that's really good15:54
apollo13gotta run home, will read later15:56
dmsimardthat's all I had for now15:56
dmsimardI'll try it out and review the code15:56
apollo13dmsimard: to try the integration tests on ara-server you need to set allowed_hosts in server/configs/integration.cfg to localhost, it is no longer testserver15:59
*** tbielawa|rdu is now known as tbielawa|lunch16:28
dmsimardapollo13: works for me at a first glance -- how did you send up setting allowed_hosts ? Setting "testserver,localhost" doesn't work (it's probably not expecting it to be a list) and setting the same thing as ALLOWED_HOSTS env var didn't seem to work either.. I ended up setting just "localhost" for now but it seems like we might want more than one host in there are some point so we probably need to figure that16:36
dmsimardout16:36
apollo13oh yes I also just did set it to localhost; didn't check the other variant16:37
apollo13have to see why that fails16:37
apollo13gimme a sec16:38
apollo13(sorry for not testing that, but multiple allowed hosts is rather an edge case for most use cases)16:38
apollo13dmsimard: does ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=[]) in the settings.py fix it?16:39
apollo13instead of what master currently has16:39
apollo13let me read the docs though16:40
dmsimarddunno, let me see16:43
apollo13na, it does not; I fucked up somewhere along the way16:43
apollo13I am currently as far as ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=[]) but it double encodes somewhere16:46
*** openstackgerrit has quit IRC16:48
*** themurph has quit IRC16:52
apollo13dmsimard: ah lol, it does not simply pass an ini file but uses config obj :/16:52
*** themroc has quit IRC16:52
dmsimardapollo13: the offline client stuff just works, I'm not finding any issues with it16:53
*** sshnaidm|rover is now known as sshnaidm|afk16:53
dmsimardCode looks good to go as far as I can tell, are you good to merge it? I guess we need a patch to at least change testserver for localhost16:55
apollo13dmsimard: yes, fwiw your env variable would have been ARA_ALLOWED_HOSTS16:56
apollo13all vars are prefixed with ARA16:56
apollo13like in the ini file where you have [ara] as section16:56
dmsimardapollo13: oh16:56
dmsimardso what threw me off was the django error message16:57
dmsimardthat mentions ALLOWED_HOSTS16:57
dmsimard(not ARA_ALLOWED_HOSTS)16:57
apollo13yeah, because for Django it is ALLOWED_HOSTS, the thing is I do not want to set stuff like DEBUG in the env16:57
apollo13namespacing seems nicer16:57
dmsimardmakes sense to namespace ARA things16:58
dmsimarddjango things, maybe not16:58
dmsimardlike SECRET_KEY and ALLOWED_HOSTS16:59
apollo13I fear endless confusin16:59
apollo13how would you know what ends up in [ara] in the ini file and what outside it16:59
apollo13or maybe even add [django]? :D16:59
dmsimardhmmm16:59
dmsimardso those settings are in the server directory now17:00
dmsimarddespite that, would it mean that API settings would end up being there too ?17:01
apollo13what do you mean?17:01
dmsimardthere's ara/server/settings.py17:02
dmsimardbut there's no ara/api/settings.py17:02
dmsimardis that ok ?17:02
apollo13yes because ara/server is the django project which has settings for all apps17:02
apollo13ara/api is just an INSTALLED_APP like django.contrib.admin17:02
dmsimardok, makes sense17:03
*** openstackgerrit has joined #ara17:08
openstackgerritMerged openstack/ara-clients master: Switched the offline client to use an actual threaded http server.  https://review.openstack.org/61543917:08
openstackgerritFlorian Apolloner proposed openstack/ara-server master: Fixes parsing of lists in config files.  https://review.openstack.org/61560917:12
apollo13^ this should allow you to use lists in config files; I'll see that I can upstream that patch17:12
apollo13for now it would do17:12
apollo13ups, need to run black and isort17:12
apollo13I have to disable recreation of the linter env in tox.ini17:13
apollo13btw the tox -e linters seems to be broken; it says linters: commands succeeded even though isort and black failed17:14
openstackgerritFlorian Apolloner proposed openstack/ara-server master: Fixes parsing of lists in config files.  https://review.openstack.org/61560917:14
dmsimardapollo13: ok I'll check it out, thanks17:16
apollo13lets see https://github.com/willkg/everett/pull/7117:27
apollo13time for sport17:27
*** tbielawa|lunch has quit IRC18:01
*** themurph has joined #ara18:05
*** themurph has quit IRC19:19
openstackgerritFlorian Apolloner proposed openstack/ara-server master: Set exit code to 1 if at least one linter fails.  https://review.openstack.org/61563419:34
openstackgerritFlorian Apolloner proposed openstack/ara-server master: Fixes parsing of lists in config files.  https://review.openstack.org/61560919:45
apollo13dmsimard: lol, I fail at typing19:53
dmsimard¯\_(ツ)_/¯19:53
openstackgerritFlorian Apolloner proposed openstack/ara-server master: Set exit code to 1 if at least one linter fails.  https://review.openstack.org/61563419:54
apollo13that's it for me today codewise though19:54
apollo13btw how do you feel about the IBM acquisition?19:54
dmsimard¯\_(ツ)_/¯19:55
dmsimardhaha19:55
dmsimardI was in PTO last week so missed out on a lot and haven't fully caught up yet19:55
dmsimardmy "public" statement about the acquisition https://twitter.com/dmsimard/status/105726795825326899319:56
apollo13that's a fair statement, at least assuming that IBM doesn't force new policies down wrt open source at red hat. though that would probably be the end of red hat anyways19:57
dmsimardyeah, I mean, $34b is a lot of money19:58
dmsimardopen source software is public and licensed so they're not really buying any of that19:59
apollo13true, but take ansible as an example; would tower still be opensource if red hat were to acquire it now… that said, one can just hope for the best :)20:00
dmsimardI've definitely seen a lot of concern on social media about not just ansible but fedora, centos, ceph, etc.20:01
apollo13guess we will see what the future brings20:02
dmsimardhopefully it doesn't turn out like oracle and sun :(20:02
apollo13ha yeah20:02
*** themurph has joined #ara20:19
dmsimardapollo13: the linters job failed but it's because it's running on xenial, not bionic20:24
dmsimardI'll fix it20:24
*** themurph has quit IRC22:03
*** Xaroth has quit IRC22:19
*** apollo13 has quit IRC22:21
*** apollo13 has joined #ara22:23

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