Monday, 2019-01-21

*** hongbin has joined #openstack-containers00:18
*** livelace has joined #openstack-containers00:38
*** livelace has quit IRC00:46
jakeyip@eandersson: I've looked at your review. Most of it is ok. There's one thing I'm not sure - why did the docs say to replace json.dumps() with jsonutils.dump_as_bytes() ?01:00
eanderssonSo dump_as_bytes will just do as it says, return the dump as bytes01:01
jakeyip@eandersson: json.dump() converts to a str, but jsonutils.dump_as_bytes() converts to a byte. The equivlant is jsonutils.dumps()01:01
eanderssone.g. https://review.openstack.org/#/c/631331/9/magnum/api/http_error.py01:02
eanderssonfor things like https://review.openstack.org/#/c/631331/9/magnum/db/sqlalchemy/models.py01:02
eanderssonI wasn't sure tbh01:02
jakeyipI'm looking at https://review.openstack.org/#/c/631331/9/magnum/tests/functional/api/v1/models/baypatch_model.py01:02
eanderssonI felt like it should have been bytes originally01:02
eanderssonbut I might be wrong01:02
eanderssonYea - same goes for those01:03
jakeyipprevious one is oK01:03
jakeyiphmm wait, the second part of https://review.openstack.org/#/c/631331/9/magnum/api/http_error.py might not be ok too.01:04
eanderssonYea - they do the same thing01:04
eandersson[six.b(json.dumps(err))] vs  [jsonutils.dump_as_bytes(err)]01:04
jakeyipreading https://six.readthedocs.io/#six.b, in py2 it returns a str.01:04
eanderssonnotice the six.b(..)01:04
eanderssonyea bytes is not really a thing in py201:05
eanderssonit's just the baseclass01:05
jakeyipI need to read more. Question is - if we have six handling it already, do we need to do more? (are things breaking that we need to fix that?)01:06
eanderssonIt's better practice01:06
eanderssonbut no not breaking anything01:06
eanderssondocumentation does encourage it's use thou01:07
eandersson> [with oslo.serialization 1.10 or newer] Replace json.dumps(obj) with oslo_serialization.jsonutils.dump_as_bytes(obj)01:07
jakeyipyeah I'm curious about this. why not .dumps()01:08
eanderssonas far as I know bytes is what should be used, unless it needs to be humanly readable01:09
eandersson(faster etc)01:09
eanderssonso ideally strings should be in byte format until it needs to be rendered (e.g. config file, logs etc)01:10
jakeyipwill changing dumps() to dump_as_bytes() break anything that's using these functions expecting a str ?01:12
eanderssonit could potentially, but only if the code isn't already handling it properly01:13
eanderssone.g. https://github.com/openstack/magnum/blob/54bea06b5a5f35e25fcc80353d7b9617df22ebdd/magnum/common/x509/operations.py#L10801:13
eanderssonthe above would handle this01:14
eanderssonbut there is a risk for sure, but I would argue that if there are areas of the code that does not handle this, it should be fixed01:15
eanderssonmore "future" proof01:15
jakeyiphmm yeah. looking at https://github.com/openstack/oslo.serialization/commit/92f2111b26d21a30e3dda62a942aa7f28ae4153701:15
eanderssonI am fine with playing this safer thou, and just changing it in the place where it makes sense01:16
eanderssonbecause the current patch would need a lot of manual testing to make sure we aren't missing unit-tests or functional tests01:17
eanderssonI am also not an expert yet on Python 3, still stuck in the world of Python 2 :p01:17
*** jaewook_oh has joined #openstack-containers01:19
jakeyipI was also thinking we might need to take it in 2 passes.01:20
eanderssonFeel free to add comments on the sections you would like reverted from dump_as_bytes to dumps01:21
jakeyipfirst pass to make it work in py3. second pass for all the 'efficiency' changes, i.e. just dumping as bytes directly and making sure everything that calls that function is handling it properly downstream.01:21
eanderssonsure01:21
jakeyipok, I'll look through that review and give comments. thanks! :)01:22
eanderssonsounds good =]01:31
eanderssonthanks01:31
*** hongbin has quit IRC01:39
*** jaewook_oh has quit IRC01:40
*** hongbin has joined #openstack-containers01:41
*** hongbin_ has joined #openstack-containers01:45
*** hongbin has quit IRC01:45
*** jaewook_oh has joined #openstack-containers01:51
*** sapd1_x has joined #openstack-containers02:11
*** mkuf_ has quit IRC02:40
*** ykarel has joined #openstack-containers03:01
*** Bhujay has joined #openstack-containers03:30
*** Bhujay has quit IRC03:35
*** sapd1_x has quit IRC03:38
*** ramishra has joined #openstack-containers03:41
*** sapd1_x has joined #openstack-containers03:56
*** udesale has joined #openstack-containers04:00
*** udesale has quit IRC04:00
*** udesale has joined #openstack-containers04:01
*** lpetrut has joined #openstack-containers04:42
*** Bhujay has joined #openstack-containers04:43
*** ramishra has quit IRC04:59
*** lpetrut has quit IRC05:05
*** ramishra has joined #openstack-containers05:07
*** ykarel has quit IRC05:19
*** spsurya has joined #openstack-containers05:41
*** ykarel has joined #openstack-containers05:47
*** ramishra_ has joined #openstack-containers05:48
*** ramishra has quit IRC05:51
*** lpetrut has joined #openstack-containers06:10
*** hongbin has joined #openstack-containers06:25
*** hongbin has quit IRC06:25
*** hongbin_ has quit IRC06:27
*** adrianreza has quit IRC06:42
*** corvus has quit IRC06:42
*** adrianreza has joined #openstack-containers06:43
*** mkuf_ has joined #openstack-containers06:47
*** ramishra_ has quit IRC06:50
*** rado_ has joined #openstack-containers06:55
*** mkuf_ has quit IRC06:55
*** mkuf has joined #openstack-containers06:55
*** rado__ has joined #openstack-containers06:58
*** ramishra has joined #openstack-containers06:59
*** rcernin has quit IRC07:00
*** rado_ has quit IRC07:01
*** Dobroslaw has joined #openstack-containers07:16
*** sapd1_x has quit IRC07:47
*** sapd__x has joined #openstack-containers07:47
*** lpetrut has quit IRC07:58
*** ykarel is now known as ykarel|lunch07:58
*** ramishra has quit IRC08:03
*** ignaziocassano1 has joined #openstack-containers08:05
*** Bhujay has quit IRC08:09
*** ramishra has joined #openstack-containers08:09
*** sapd__x has quit IRC08:30
*** sapd__x has joined #openstack-containers08:30
*** ykarel|lunch is now known as ykarel08:32
*** Bhujay has joined #openstack-containers08:53
*** Bhujay has quit IRC08:53
*** Bhujay has joined #openstack-containers08:54
*** Bhujay has quit IRC08:55
*** Bhujay has joined #openstack-containers08:56
*** sapd__x has quit IRC09:18
*** salmankhan has joined #openstack-containers09:21
*** salmankhan1 has joined #openstack-containers09:30
*** salmankhan has quit IRC09:30
*** salmankhan1 is now known as salmankhan09:30
*** sapd__x has joined #openstack-containers09:30
*** ramishra has quit IRC09:38
*** ramishra has joined #openstack-containers09:40
*** salmankhan has quit IRC09:44
*** salmankhan has joined #openstack-containers09:47
*** salmankhan1 has joined #openstack-containers09:51
*** salmankhan has quit IRC09:52
*** salmankhan1 is now known as salmankhan09:52
*** ArchiFleKs has quit IRC10:07
*** ArchiFleKs has joined #openstack-containers10:10
*** openstackgerrit has quit IRC10:21
*** ramishra has quit IRC10:41
*** ramishra has joined #openstack-containers10:41
*** openstackgerrit has joined #openstack-containers10:44
openstackgerritDiogo Guerra proposed openstack/magnum master: Enable metrics-server access to apiserver  https://review.openstack.org/63206510:44
*** livelace has joined #openstack-containers10:46
*** udesale has quit IRC11:20
ignaziocassano1I am trying patches you just released for magnum11:35
ignaziocassano1I got same issues on proxy. In the old version I modified with the help of spyros the scripts under /usr/lib/python2.7/dist-packages/magnum/drivers/common/templates/kubernetes/fragments11:35
ignaziocassano1because PROXY variables are not inherited11:35
ignaziocassano1in /etc/sysconfig/heat-params PROXY E NO PROXY variables are present but we must modify configure-kubernetes-master.sh to force them11:35
ignaziocassano1. /etc/sysconfig/heat-params11:35
ignaziocassano1echo "configuring kubernetes (master)"11:35
ignaziocassano1 _prefix=${CONTAINER_INFRA_PREFIX:-docker.io/openstackmagnum/}11:35
ignaziocassano1export HTTP_PROXY=${HTTP_PROXY}11:35
ignaziocassano1export HTTPS_PROXY=${HTTPS_PROXY}11:35
ignaziocassano1export NO_PROXY=${NO_PROXY}11:35
ignaziocassano1echo "HTTP_PROXY IS ${HTTP_PROXY}"11:35
ignaziocassano1exporting the above variables when external network has a proxy, the master is installed but stack hangs creating kube master Resource Group11:35
*** lpetrut has joined #openstack-containers11:47
*** sapd__x has quit IRC11:53
*** ArchiFleKs has quit IRC12:06
*** ArchiFleKs has joined #openstack-containers12:25
*** udesale has joined #openstack-containers12:26
*** jaewook_oh has quit IRC12:57
*** ykarel is now known as ykarel|away13:59
*** udesale has quit IRC14:05
*** udesale has joined #openstack-containers14:06
*** ykarel|away has quit IRC14:08
*** ignaziocassano1 has quit IRC14:09
*** sapd__x has joined #openstack-containers14:21
*** yahrens has joined #openstack-containers14:34
yahrens hey! I was looking into magnum and I was wondering about the state of kubernetes cluster federations. All I could find was specs and API endpoints but not actual drivers or implementation. Did I miss something?14:35
*** Bhujay has quit IRC14:43
*** rado__ has quit IRC14:44
*** dave-mccowan has joined #openstack-containers14:55
*** dave-mccowan has quit IRC15:12
*** Bhujay has joined #openstack-containers15:21
*** ykarel|away has joined #openstack-containers15:22
*** ykarel|away is now known as ykarel15:25
*** Bhujay has quit IRC15:43
*** munimeha1 has joined #openstack-containers15:52
*** ricolin has joined #openstack-containers15:55
*** udesale has quit IRC16:01
*** ricolin has quit IRC16:02
*** hongbin has joined #openstack-containers16:18
*** ramishra has quit IRC16:24
*** sapd__x has quit IRC16:25
*** yahrens has quit IRC16:47
*** salmankhan has quit IRC17:32
*** salmankhan has joined #openstack-containers17:35
*** fragatina has joined #openstack-containers17:43
*** salmankhan has quit IRC17:43
*** fragatina has quit IRC17:44
*** salmankhan has joined #openstack-containers17:44
*** fragatina has joined #openstack-containers17:44
*** fragatina has quit IRC17:52
*** logan- has quit IRC17:52
*** fragatina has joined #openstack-containers17:52
*** logan_ has joined #openstack-containers17:53
*** logan_ is now known as logan-17:53
*** fragatina has quit IRC17:55
*** fragatina has joined #openstack-containers17:56
*** fragatina has quit IRC17:58
*** fragatina has joined #openstack-containers17:58
*** fragatina has quit IRC18:03
*** fragatina has joined #openstack-containers18:03
*** fragatina has quit IRC18:05
*** fragatina has joined #openstack-containers18:05
*** lpetrut has quit IRC18:06
*** openstackgerrit has quit IRC18:07
*** fragatina has quit IRC18:07
*** fragatina has joined #openstack-containers18:08
*** fragatina has quit IRC18:08
*** fragatina has joined #openstack-containers18:09
*** fragatina has quit IRC18:09
*** fragatina has joined #openstack-containers18:10
*** fragatina has quit IRC18:11
*** fragatina has joined #openstack-containers18:12
*** fragatina has quit IRC18:13
*** fragatina has joined #openstack-containers18:14
*** fragatina has quit IRC18:15
*** fragatina has joined #openstack-containers18:16
*** _fragatina_ has joined #openstack-containers18:17
*** fragatina has quit IRC18:22
*** _fragatina_ has quit IRC18:40
*** fragatina has joined #openstack-containers18:41
*** fragatina has quit IRC18:47
*** fragatina has joined #openstack-containers18:47
*** fragatina has quit IRC18:47
*** fragatina has joined #openstack-containers18:48
*** ykarel has quit IRC18:53
*** fragatina has quit IRC18:56
*** fragatina has joined #openstack-containers18:56
*** fragatina has quit IRC18:57
*** fragatina has joined #openstack-containers18:58
*** fragatina has quit IRC19:03
*** fragatina has joined #openstack-containers19:04
*** fragatina has quit IRC19:07
*** fragatina has joined #openstack-containers19:07
-openstackstatus- NOTICE: The error causing post failures on jobs has been corrected. It is safe to recheck these jobs.19:16
*** fragatina has quit IRC19:28
*** fragatina has joined #openstack-containers19:29
*** fragatina has quit IRC19:39
*** fragatina has joined #openstack-containers19:39
*** fragatina has quit IRC19:42
*** fragatina has joined #openstack-containers19:43
*** fragatina has quit IRC20:20
*** fragatina has joined #openstack-containers20:21
lxkongyankcrime: i don't think there is any ongoing work in magnum to support federation.20:51
*** rcernin has joined #openstack-containers21:54
lxkongstrigazi: hi, could you please review this patch https://review.openstack.org/#/c/630820/? It's for removing the fip associated with the octavia lbs.22:00
*** fragatina has quit IRC22:04
*** fragatina has joined #openstack-containers22:04
*** spsurya has quit IRC22:09
*** fragatina has quit IRC22:11
*** fragatina has joined #openstack-containers22:12
*** fragatina has quit IRC22:18
*** fragatina has joined #openstack-containers22:19
*** fragatina has quit IRC22:39
*** fragatina has joined #openstack-containers22:40
*** fragatina has quit IRC22:40
*** fragatina has joined #openstack-containers22:40
*** fragatina has quit IRC22:41
*** fragatina has joined #openstack-containers22:42
*** fragatina has quit IRC22:44
*** fragatina has joined #openstack-containers22:45
*** fragatina has quit IRC22:51
*** fragatina has joined #openstack-containers22:52
*** fragatina has quit IRC23:07
*** fragatina has joined #openstack-containers23:08
*** livelace has quit IRC23:15
*** livelace has joined #openstack-containers23:33
*** hongbin has quit IRC23:42
*** livelace has quit IRC23:42
*** munimeha1 has quit IRC23:53

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