Friday, 2015-05-29

*** arif-ali has quit IRC00:00
*** arif-ali has joined #heat00:04
*** asalkeld has quit IRC00:04
*** LiJiansheng has joined #heat00:12
*** chuckC_ has quit IRC00:17
*** asalkeld has joined #heat00:17
*** kebray has quit IRC00:19
*** cody-somerville has quit IRC00:23
*** Drago has quit IRC00:25
*** mixos has joined #heat00:27
*** mixos is now known as mixos-away00:27
*** mixos-away is now known as mixos00:28
*** jruano has joined #heat00:29
openstackgerritMiguel Grinberg proposed openstack/heat: Move extraroute resource in-tree  https://review.openstack.org/18660800:35
*** pm90_ has quit IRC00:37
*** sdake_ has quit IRC00:38
*** sdake has joined #heat00:38
*** dims_ has quit IRC00:42
*** jruano has quit IRC00:44
*** dims_ has joined #heat00:47
*** pm90_ has joined #heat00:50
*** tobe has joined #heat00:52
*** pm90__ has joined #heat00:52
*** sdake_ has joined #heat00:52
*** pm90_ has quit IRC00:55
*** sdake has quit IRC00:57
*** Qiming has joined #heat00:57
*** Qiming_ has joined #heat00:58
*** vahidh has quit IRC00:59
*** Qiming has quit IRC01:02
*** gokrokve has joined #heat01:03
*** LiJiansheng has quit IRC01:05
*** LiJiansheng has joined #heat01:06
*** pm90__ has quit IRC01:08
*** huangtianhua has joined #heat01:10
*** Qiming_ is now known as Qiming01:16
*** huangtianhua has quit IRC01:16
*** cody-somerville has joined #heat01:17
*** sdake_ has quit IRC01:17
*** sdake has joined #heat01:18
openstackgerritQiming Teng proposed openstack/heat: Squash Havana migration scripts  https://review.openstack.org/18629101:18
*** gokrokve has quit IRC01:20
*** gokrokve has joined #heat01:20
*** asalkeld has quit IRC01:21
*** tobe has quit IRC01:22
*** gokrokve has quit IRC01:25
*** alanf-mc has quit IRC01:25
*** alexpilotti has joined #heat01:28
*** dims_ has quit IRC01:35
*** asalkeld has joined #heat01:38
*** alexpilotti has quit IRC01:38
*** dims_ has joined #heat01:39
openstackgerritMerged openstack/heat: Removes deprecated metadata property from Resource class  https://review.openstack.org/17436001:43
openstackgerritMerged openstack/heat: Delete deprecated old-style client access  https://review.openstack.org/18504901:43
openstackgerritMerged openstack/heat: Avoid crash when registering resources  https://review.openstack.org/18623701:43
*** dims_ has quit IRC01:45
*** erkules_ has joined #heat01:46
*** erkules has quit IRC01:49
*** erkules_ has quit IRC01:51
*** tobe has joined #heat01:52
*** erkules_ has joined #heat01:53
*** Yanyanhu has joined #heat01:54
*** huangtianhua has joined #heat02:01
*** john-n-s| has quit IRC02:16
*** rwsu has quit IRC02:25
*** jruano has joined #heat02:35
*** jruano has quit IRC02:36
*** sdake_ has joined #heat02:40
*** sdake has quit IRC02:43
*** sdake has joined #heat02:43
*** sdake_ has quit IRC02:47
openstackgerritMerged openstack/heat: Stop monkey-patching global namespace  https://review.openstack.org/18636202:58
*** mwheckmann has joined #heat03:01
*** barra204 has quit IRC03:11
*** barra204 has joined #heat03:13
*** liusheng has quit IRC03:27
*** Qiming_ has joined #heat03:43
*** Qiming has quit IRC03:43
*** Qiming__ has joined #heat03:44
*** Qiming__ is now known as Qiming03:44
*** Qiming_ has quit IRC03:47
*** achanda has joined #heat03:53
*** steveg_afk has joined #heat03:57
sdakeasalkeld awake?03:58
sdakeor stevebaker? :)03:58
*** achanda has quit IRC04:05
*** achanda has joined #heat04:06
*** mwheckmann has quit IRC04:08
*** achanda has quit IRC04:11
asalkeldhi sdake04:17
sdakesup asalkeld04:17
sdakeI was going to ask you a code question04:17
asalkeldsure04:17
sdakebut I think someone in #magnum figured it out04:17
sdakebut i'll ask anyway04:17
sdakeI have a variable which contains a string of type str, int , long etc04:17
sdakeI want  to instantiate an object with a value based upon the variable name04:17
*** mixos has left #heat04:18
sdakeeg, if variable = dict, I want it to do dict(value)04:18
sdakeand not use eval()04:18
sdakeall I can find on the internets is to use globals()04:18
sdakewhich seems...04:18
sdakedirty like zebra04:18
asalkeldmaybe the inspect module?04:19
asalkeldhttp://stackoverflow.com/questions/592746/how-can-you-print-a-variable-name-in-python04:20
sdakeyou would think you could do var(value)04:20
asalkeldsdake: ^04:20
sdakereading through that doesnt' look like it solves the problem04:21
sdakevar = "str"04:22
sdakevalue = "groan"04:22
sdakea = str('groan') is what I want04:22
sdakeso I try a = var('groan')04:22
sdakethat doesn't work04:22
asalkeldno easy answer here04:23
sdakeya thought so04:23
sdakeglobals it is ! :)04:23
sdakeI've got that working04:23
sdakeour newest magnum core sorted out how to do it without globals04:24
sdakeI'll paste the review once she has it up so you can see what she did :)04:24
*** sdake_ has joined #heat04:29
*** sdake has quit IRC04:33
*** tobe has quit IRC04:52
*** rakesh_hs has joined #heat04:56
*** Raj1 has joined #heat04:58
*** achanda has joined #heat05:05
*** KanagarajM has joined #heat05:09
*** tsandall has quit IRC05:12
*** tspatzier has joined #heat05:13
*** ashishjain has joined #heat05:13
*** Raj1 has quit IRC05:14
*** nkhare has joined #heat05:14
*** tobe has joined #heat05:14
*** tsandall has joined #heat05:15
*** ishant has joined #heat05:21
*** cody-somerville has quit IRC05:23
*** vijayagurug has joined #heat05:29
*** tsandall has quit IRC05:42
openstackgerritIshant Tyagi proposed openstack/heat: Update wsgi.py to support reload from conf on SIGHUP  https://review.openstack.org/18476805:42
openstackgerritIshant Tyagi proposed openstack/heat: Update wsgi.py to support reload from conf on SIGHUP  https://review.openstack.org/18476805:44
*** sdake has joined #heat05:46
*** tobe has quit IRC05:47
openstackgerritKanagaraj Manickam proposed openstack/heat-specs: Monasca resource plugin for Alarm and Notification  https://review.openstack.org/17426205:47
*** sdake_ has quit IRC05:50
*** hdd has quit IRC05:56
*** multi_io has quit IRC06:00
*** multi_io has joined #heat06:02
openstackgerritOpenStack Proposal Bot proposed openstack/heat: Imported Translations from Transifex  https://review.openstack.org/18627506:04
*** cody-somerville has joined #heat06:09
*** jtomasek has joined #heat06:13
*** tobe has joined #heat06:15
*** nihilifer has joined #heat06:18
*** ashish123 has joined #heat06:20
*** ashishjain has quit IRC06:23
*** hdd has joined #heat06:24
*** Murali has joined #heat06:24
*** jprovazn has joined #heat06:25
*** jfluhmann has joined #heat06:26
*** ashish123 has quit IRC06:35
*** ashishjain has joined #heat06:36
openstackgerritYanyan Hu proposed openstack/heat: Fix a bug about unexpected ASG scaling  https://review.openstack.org/18665906:41
*** e0ne has joined #heat06:42
*** e0ne has quit IRC06:49
openstackgerritKanagaraj Manickam proposed openstack/heat: Convergence resource operations  https://review.openstack.org/16313206:52
*** ananta_ has joined #heat06:53
*** huangtianhua has quit IRC06:58
*** huangtianhua has joined #heat06:58
*** ifarkas has joined #heat06:59
*** hdd has quit IRC07:08
*** BManojlovic has joined #heat07:09
openstackgerritMerged openstack/python-heatclient: Add --tags option to stack-create and stack-update  https://review.openstack.org/18368007:17
*** gcivitella has joined #heat07:20
*** achanda has quit IRC07:22
*** erkules_ is now known as erkules07:22
*** erkules has joined #heat07:22
openstackgerritYanyan Hu proposed openstack/heat: Fix a bug about unexpected ASG scaling  https://review.openstack.org/18665907:22
*** pbrooko has joined #heat07:26
*** ananta_ has quit IRC07:30
openstackgerritSergey Kraynev proposed openstack/heat: Add functional test for neutron port  https://review.openstack.org/17818907:35
*** jistr has joined #heat07:38
*** achanda has joined #heat07:44
*** alexheneveld has joined #heat07:44
*** shardy has joined #heat07:50
sdakeasalkeld this is what I ended up with https://review.openstack.org/#/c/186287/07:51
sdakeisn't it grand?07:51
* sdake groans07:51
*** sdake_ has joined #heat07:55
openstackgerritIshant Tyagi proposed openstack/heat: Update wsgi.py to support reload from conf on SIGHUP  https://review.openstack.org/18476807:55
sdake_shardy you around07:58
shardysdake_: Hey, yup07:59
shardyhow's it going?07:59
sdake_shardy do you see a way to optimzie this patch07:59
*** sdake has quit IRC07:59
sdake_https://review.openstack.org/#/c/186287/07:59
sdake_good super busy07:59
sdake_have 2 presentations a day on magnum or kolla internally07:59
shardylooking07:59
sdake_everyone at csco in love with containers ! :)08:00
sdake_hot new hotness08:00
shardysdake_: I get the appeal, I'm really excited by the containerized TripleO work building on what you guys are doing :)08:01
shardysdake_: at some point, I'd like to explore what happens if you need to upgrade the container host on upgrade08:01
sdake_maybe when its not 1am and i haven't been going since 5am I can think about that :)08:01
shardye.g what happens if theres a kernel vulnerability in the box running the docker host?08:01
shardysdake_: sure :)08:02
*** pas-ha has joined #heat08:02
sdake_i'll add to my notes to get back to you on it08:02
shardyit was something which kept coming up in my discussions re containers as a "hard problem" that they don't solve, and we have no good answer for atm08:02
pas-hamorning all08:02
sdake_magnum solves it08:02
sdake_we isolate via vms08:02
sdake_vms are super secure08:02
sdake_so that patch08:03
sdake_any way to convert strings to literals objects?08:03
sdake_I couldn't find anything08:03
sdake_on the internets08:03
sdake_the old code used eval08:05
sdake_which is evil08:05
sdake_eval ('rm -rf /')08:05
sdake_not ideal08:05
shardysdake_: Heh, yeah clearly this is better than eval, there must be a way to lose those branches though, let me try a few things08:05
sdake_if you think of anything can you add to the review08:06
sdake_I need to hit the rack08:06
shardysdake_: sure, will do, ttyl08:06
sdake_I tried globals() I tried locals()08:06
sdake_I couldn't access the literals08:06
sdake_ast has some literal eval feature08:06
sdake_but also need to create objects on the fly08:07
sdake_that are not literals but classes in the system (under the module load location)08:07
sdake_those are in list[v1beta3PodStatus] for example08:07
sdake_thats what the regex is about08:07
shardyhttp://stackoverflow.com/questions/9522627/get-built-in-function-from-the-function-name08:07
sdake_btw, whoever invented swagger, fired08:07
shardythat appears to work08:07
shardygetattr(__builtin__, "str")08:08
shardyso you could have a nested function or lambda doing that?08:08
shardynot sure if six can paper over the py2/3 difference there08:08
sdake_that is py3 only right?08:08
sdake_I thnk we want to run on py2708:09
shardyNo it works on both but the syntax is different08:09
shardyI just tested on py2708:09
sdake_cool08:09
shardyimport __builtin__08:09
sdake_well I'll check that model out in the morning08:09
sdake_but I guess if the current code works I'll probablyl keep it08:09
sdake_this code is temporary sinc its autogeneated08:09
sdake_we are going  to human generate it when kubernetes releases the v1 api08:10
shardysdake_: If I get a chance later I'll post on the review with an alternate implementation08:10
sdake_sounds good08:11
sdake_the autogenerated code used eval08:11
sdake_bunch of fail swagger is08:12
sdake_swagger is strong wit he fail08:12
sdake_have I told you I didn't like swagger yet?08:12
shardyhaha :)08:12
*** dims_ has joined #heat08:12
*** ananta_ has joined #heat08:14
*** ricolin has quit IRC08:15
*** sdake_ has quit IRC08:17
*** dims_ has quit IRC08:18
*** ananta_ has quit IRC08:20
*** yassine_ has joined #heat08:21
*** tobe has quit IRC08:23
*** derekh has joined #heat08:23
openstackgerritQiming Teng proposed openstack/heat: Split engine service test cases (5)  https://review.openstack.org/18667308:24
*** tobe has joined #heat08:29
*** achanda has quit IRC08:35
*** ashishjain has quit IRC08:48
*** prazumovsky has joined #heat08:48
*** achanda has joined #heat08:48
*** ricolin has joined #heat08:52
*** bdossant has joined #heat08:58
therveIt'd be cool to get some review on https://review.openstack.org/#/c/171527/ (oslo policy stuff)09:00
openstackgerritThomas Herve proposed openstack/heat: Switch to oslo.policy  https://review.openstack.org/17152709:01
*** achanda has quit IRC09:02
shardytherve: lgtm!09:14
bdossantshardy: ryansb: can you build the heat-cfntools package version 1.3.0 for epel 6 and 7?09:15
bdossantor can i be added to the maintainers of that?09:16
shardybdossant: Hi, sure one of us can look at building that later today09:20
shardybdossant: you can request admin access via https://admin.fedoraproject.org/pkgdb/package/heat-cfntools/09:20
bdossantthat would be great09:20
openstackgerritMerged openstack/python-heatclient: Adds --format=log option to event-list  https://review.openstack.org/18494009:20
bdossantits weird but rdo didnt include heat-cfntools on their kilo repo09:22
*** lee__ has joined #heat09:29
*** Yanyanhu has quit IRC09:31
*** LiJiansheng has quit IRC09:31
*** LiJiansheng has joined #heat09:37
openstackgerritIshant Tyagi proposed openstack/heat-cfntools: Fix typos in cfn scripts  https://review.openstack.org/18669509:37
*** lee__ has quit IRC09:39
*** LiJiansheng has quit IRC09:45
*** KanagarajM has quit IRC09:48
therveSo according to bug #1455421 watchrule has been broken for about 3 releases09:48
openstackbug 1455421 in heat "Heat could not create samples with Ceilometer" [Undecided,In progress] https://launchpad.net/bugs/1455421 - Assigned to Rico Lin (rico-lin)09:48
therveNobody uses that?09:48
*** ananta_ has joined #heat09:50
*** dims_ has joined #heat09:51
openstackgerritMerged openstack/heat: Save snapshot to db before stack snapshot complete  https://review.openstack.org/18476909:51
*** jprovazn has quit IRC09:56
*** Qiming has quit IRC10:03
openstackgerritPeter Razumovsky proposed openstack/python-heatclient: Add tests for SessionClient  https://review.openstack.org/17898510:05
openstackgerritPeter Razumovsky proposed openstack/python-heatclient: Move usage methods *_request to get/post/etc  https://review.openstack.org/17540310:05
openstackgerritPeter Razumovsky proposed openstack/python-heatclient: Move SessionClient from HTTPClient to adapter  https://review.openstack.org/16348410:06
*** bvivek has joined #heat10:07
*** bvivek has quit IRC10:08
*** pbrooko has quit IRC10:10
*** pbrooko has joined #heat10:11
*** pbrooko_ has joined #heat10:13
*** pbrooko_ has quit IRC10:14
*** pbrooko has quit IRC10:14
*** pbrooko has joined #heat10:15
*** gfidente has joined #heat10:15
*** pbrooko has quit IRC10:16
*** pbrooko has joined #heat10:16
*** pbrooko has quit IRC10:16
*** pbrooko has joined #heat10:18
*** pbrooko has quit IRC10:18
*** ananta_ has quit IRC10:20
*** pbrooko has joined #heat10:21
*** pbrooko has quit IRC10:22
openstackgerritKairat Kushaev proposed openstack/heat: Backup new resource as soon as possible  https://review.openstack.org/18402610:22
*** pbrooko has joined #heat10:22
openstackgerritMerged openstack/heat: Heat could not create samples with Ceilometer  https://review.openstack.org/18390110:27
*** pbrooko has quit IRC10:27
*** pbrooko has joined #heat10:27
*** achanda has joined #heat10:28
*** gfidente has left #heat10:29
openstackgerritSirushti Murugesan proposed openstack/heat: Remove PROTOTYPE support status  https://review.openstack.org/18670510:34
*** ananta_ has joined #heat10:36
openstackgerritIshant Tyagi proposed openstack/heat-cfntools: Add --insecure/-k option to cfn-signal  https://review.openstack.org/18670710:40
openstackgerritMerged openstack/heat: Switch to oslo.policy  https://review.openstack.org/17152710:45
*** dims_ has quit IRC10:52
*** jprovazn has joined #heat10:55
*** ishant has quit IRC10:59
*** pbrooko has quit IRC11:03
*** yassine_ has quit IRC11:11
openstackgerritKairat Kushaev proposed openstack/heat: Backup new resource as soon as possible  https://review.openstack.org/18402611:15
openstackgerritPavlo Shchelokovskyy proposed openstack/heat: Move check_active to nova client plugin  https://review.openstack.org/18606311:22
*** Qiming has joined #heat11:27
*** vijayagurug has quit IRC11:29
*** pbrooko has joined #heat11:36
*** tobe has quit IRC11:39
openstackgerritPavlo Shchelokovskyy proposed openstack/heat: Do not pass rich objects in server's suspend  https://review.openstack.org/18642411:40
*** EricGonczer_ has joined #heat11:45
*** rpothier has joined #heat11:46
openstackgerritPavlo Shchelokovskyy proposed openstack/heat: Move check_active to nova client plugin  https://review.openstack.org/18606311:47
openstackgerritPavlo Shchelokovskyy proposed openstack/heat: Do not pass rich objects in server's suspend  https://review.openstack.org/18642411:47
openstackgerritPeter Razumovsky proposed openstack/heat-specs: Improvements in deprecation process  https://review.openstack.org/15323511:47
openstackgerritPavlo Shchelokovskyy proposed openstack/heat: Do not pass rich objects on server's resume  https://review.openstack.org/18636311:47
*** dims_ has joined #heat11:50
*** tspatzier has quit IRC11:53
*** rakesh_hs_ has joined #heat11:53
*** rakesh_hs has quit IRC11:56
*** tspatzier has joined #heat11:56
*** rakesh_hs_ has quit IRC12:00
*** BManojlovic has quit IRC12:00
*** achanda has quit IRC12:07
openstackgerritPeter Razumovsky proposed openstack/heat: Improve StackValidationFailed resp param_groups  https://review.openstack.org/18673112:09
*** tobe has joined #heat12:13
*** tobe has quit IRC12:14
*** prazumovsky has quit IRC12:15
*** blomquisg has quit IRC12:15
*** steveg_afk has quit IRC12:26
openstackgerritMerged openstack/heat: Add note on Barbican Order's order_ref structure  https://review.openstack.org/18543512:28
*** vijayagurug has joined #heat12:28
*** bdossant_ has joined #heat12:33
*** bdossant has quit IRC12:35
*** yassine_ has joined #heat12:38
*** EricGonczer_ has quit IRC12:44
therveQiming, I commented on https://review.openstack.org/#/c/186659/ interested in what you think12:44
Qimingthanks, therve, will discuss with Yanyan how to make it right12:45
*** ashishjain has joined #heat12:46
ashishjaincan someone suggest if using heat templates I can attach a storage to nova server.12:47
ashishjainHere nova server is using docker containers instead of vm12:47
Qimingashishjain, so you are using nova-docker?12:48
ashishjainQiming: yes12:48
Qimingsome of my coworkers spent a lot time hacking nova-docker to enable volume support12:48
*** nkhare has quit IRC12:49
ashishjainQiming : ohh wow12:49
ashishjainQiming: Were they successful?12:50
Qimingwell, I'm not quite familar with that work12:50
Qimingbut I do know they succeeded in attaching Manila shares to docker container12:50
Qimingthe goal was to support SPARK applications12:51
ashishjainQiming: So does Manila provide a persistent storage. Can it be used through heat templates?12:52
Qimingyes, ashishjain, the app was deployed using Heat templates12:52
ashishjainQiming: Manila  is for distributed storage12:53
Qimingright, that is what SPARK is about12:53
ashishjainQiming: Are there any samples available which I could follow?12:53
Qimingashishjain, drop me an email, I can point you to the person working on it12:53
*** karolyn has left #heat12:54
ashishjainQiming: thanks a lot for your help. What is your email address?12:54
*** radez_g0n3 is now known as radez12:54
Qimingtengqim@cn.ibm.com12:54
ashishjainQiming: aah you from IBM...I am an ex-ibmer too :)...12:55
ashishjainQiming: I will send you a note12:55
Qimingokay12:55
ashishjainsent , my email address is : jain.ashish31@gmail.com12:58
*** pm90_ has joined #heat13:05
*** pm90_ has quit IRC13:06
*** pm90_ has joined #heat13:07
*** yassine_ has quit IRC13:12
*** yassine_ has joined #heat13:12
*** yassine_ has quit IRC13:13
*** Tross1 has quit IRC13:13
*** yassine_ has joined #heat13:13
*** achanda has joined #heat13:14
*** dyasny has joined #heat13:21
*** blomquisg has joined #heat13:22
*** pm90_ has quit IRC13:25
*** vijayagurug has left #heat13:26
*** pm90_ has joined #heat13:26
*** nihilifer has quit IRC13:32
*** nihilifer has joined #heat13:37
*** Yanyanhu has joined #heat13:39
*** Yanyanhu has quit IRC13:39
*** dyasny has quit IRC13:45
*** gokrokve has joined #heat13:45
*** Tross has joined #heat13:45
*** gokrokve has quit IRC13:45
*** gokrokve has joined #heat13:46
*** mixos has joined #heat13:49
*** bdossant_ has quit IRC13:52
*** bdossant has joined #heat13:52
*** mwheckmann has joined #heat13:54
*** mixos has quit IRC13:56
*** Murali has quit IRC13:58
*** jfluhmann has quit IRC14:04
*** maximov has joined #heat14:05
*** htruta has quit IRC14:06
*** achanda has quit IRC14:10
*** tspatzier has quit IRC14:11
*** bdossant has quit IRC14:12
*** cody-somerville has quit IRC14:13
*** crose has joined #heat14:13
*** dims_ has quit IRC14:16
*** pitr-ch has joined #heat14:17
openstackgerritYanyan Hu proposed openstack/heat: Fix a bug about unexpected ASG scaling  https://review.openstack.org/18665914:18
*** sjmc7 has joined #heat14:19
*** bdossant has joined #heat14:23
*** htruta has joined #heat14:25
*** jistr has quit IRC14:26
*** ashishjain has quit IRC14:30
*** cody-somerville has joined #heat14:31
bdossantshardy: just convinced the guys from rdo to push heat-cfntools to kilo :) http://cbs.centos.org/koji/buildinfo?buildID=1283 they have forgotten14:32
*** vijendar has joined #heat14:35
*** vijendar has quit IRC14:35
shardybdossant: ha, yeah I just saw a build got kicked off :)14:35
* shardy didn't do anything..14:36
*** vijendar has joined #heat14:36
bdossant:)14:36
shardybdossant: I'll check in later & ensure things are all pushed as needed, I've not had time to get to it yet14:36
*** kebray has joined #heat14:36
*** kebray has quit IRC14:37
*** kebray has joined #heat14:37
*** pbrooko has quit IRC14:44
openstackgerritYanyan Hu proposed openstack/heat: Fix a bug about unexpected ASG scaling  https://review.openstack.org/18665914:44
*** alexheneveld has quit IRC14:45
*** sdake has joined #heat14:46
*** Yanyanhu has joined #heat14:46
*** jistr has joined #heat14:47
*** Yanyanhu has left #heat14:49
*** ananta_ has quit IRC14:52
*** jruano has joined #heat14:53
bdossantshardy: ok thanks14:56
*** dyasny has joined #heat14:57
*** EricGonczer_ has joined #heat14:59
*** jasond has joined #heat15:00
*** achanda has joined #heat15:00
*** hdd has joined #heat15:05
*** EricGonczer_ has quit IRC15:06
*** jprovazn has quit IRC15:07
*** EricGonczer_ has joined #heat15:09
*** ananta_ has joined #heat15:13
bdossantshardy: do you know why on heat.conf we need to have auth_uri /v2.0 to use v3, domains, etc?15:15
*** Qiming has quit IRC15:16
*** dims_ has joined #heat15:16
*** Raj1 has joined #heat15:17
*** alexheneveld has joined #heat15:20
*** sabeen has joined #heat15:23
*** sdake_ has joined #heat15:26
*** sabeen2 has joined #heat15:26
*** nihilifer has quit IRC15:27
*** ifarkas has quit IRC15:28
*** tsandall has joined #heat15:28
*** Raj1 has quit IRC15:29
*** sdake has quit IRC15:30
*** sabeen has quit IRC15:30
thervebdossant, Historical reasons15:32
therve/v3 should work, though?15:32
*** vijayagurug has joined #heat15:33
bdossantwell it works but its kinda misleading when you have to put in the config specifically 2.0 when you know you want to use v315:34
bdossanti just lost an afternoon dubugging this lol15:35
bdossantand some ssl problems as well :)15:35
thervebdossant, I mean putting /v3 should work15:37
bdossantyeah i tested it also works haha15:37
sdake_shardy morning still awake?15:38
bdossantyou are right15:38
*** vijayagurug has left #heat15:38
sdake_zaneb around?15:38
zanebhey15:39
sdake_zaneb mind offering a bit of consulting :)15:39
sdake_https://review.openstack.org/#/c/186287/22/magnum/common/pythonk8sclient/client/swagger.py15:39
zanebwhat does it pay? ;)15:39
zanebcoincidentally I was just looking at that15:39
sdake_my thanks and gratitude and hero worship of how well you know python :)15:39
sdake_so shardy says to use "if literal:"15:40
sdake_why the if?15:40
zaneblol15:40
zanebthe first comment you mean?15:40
sdake_I'm getting there - 3 years in - feel intermediate skill level15:40
sdake_the oen from shardy15:40
sdake_he says "if literal: setattr15:40
sdake_I dont get why the conditional is needed15:41
sdake_why not just call the setattr straight away15:41
zaneboh, the second comment15:41
sdake_oh sorry the second comment15:41
sdake_right15:41
*** bdossant_ has joined #heat15:41
sdake_20 patch sets for somethign so simple :)15:41
*** lkarm has joined #heat15:41
*** bdossant has quit IRC15:41
* sdake_ too old to write code I guess15:41
shardysdake_: hey15:42
zanebgetattr(builtins, obj_type) will return None if obj_type is not a built-in type15:42
sdake_oh hey shardy15:42
*** Drago has joined #heat15:42
*** Drago has quit IRC15:42
sdake_zaneb I am going to validate the obj typs and make sure they are literals15:42
*** Drago has joined #heat15:42
sdake_but that makes sense15:42
zanebhmm, actually it won't15:42
zanebit'll raise an exception15:42
zanebso prev line should be "builtin_type = getattr(builtins, obj_type, None)"15:43
sdake_I am going to do something like if obj_type in ['str', 'dict', ...]15:43
shardyYeah I expected there to be a try/catch block in there somewhere15:43
zanebeven better, do types = {'str': six.texttype, 'dict': dict, ...}15:44
zanebthen its types.get(objtype, None)15:44
sdake_zaenb I ahd thought of that actually15:44
sdake_but it was 2am15:45
sdake_and I needed more minerals :)15:45
sdake_I like that better then importing six for literals - shardy thoughts?15:45
zanebnone of this addresses the real question though15:46
sdake_which is?15:46
zanebwhich is: why do you have your own JSON deserialiser???15:46
sdake_autogenerated code15:46
*** mixos has joined #heat15:46
*** mixos is now known as mixos-away15:46
shardylol15:46
sdake_dont get me started15:46
sdake_i nerd raged all night last night about it15:46
sdake_i want to have a hppy day today :)15:47
shardysdake_: honestly I don't have a strong opinion, other than the "if not v" is probably going to do the wrong thing15:47
sdake_in essence kubernetes has a rest API, they expect people to write language bindings using something called "swagger" which is a code generator15:47
shardythe approach I suggested is probably one of several ways to make it a bit terser, which I thought was what you were trying to do :)15:47
*** mixos-away is now known as mixos15:48
sdake_the swagger code generator produces a slew of objects and then serializes/deserializes them into urllib calls15:48
sdake_based upon reading the /v1/swagger api endpoint in kubernetes15:48
sdake_ya, terrible idea15:48
sdake_code shoudl be written by humans not machines15:48
zanebsdake_: but seriously, why not inherit from json.JSONDecoder and just override the parts you need? or even use the object_hook parameter to do your own extra interpretation15:49
zaneb"object_hook, if specified, will be called with the result of every JSON object decoded and its return value will be used in place of the given dict. This can be used to provide custom deserializations (e.g. to support JSON-RPC class hinting)."15:49
zanebit's not even hacky15:49
sdake_the crux of the problem is the deserialize function that swagger peopel wrote uses eval15:49
sdake_which is insecure15:49
*** dims_ is now known as dimsum__15:49
sdake_zaneb that hadn't even entered my thought patterns :)15:50
zanebmeh, the way they were using it was not any less secure than what you're doing15:50
*** daneyon has joined #heat15:50
sdake_my implementation is insecure?15:50
zanebbut writing your own JSONDecoder is insane imho15:50
zanebnot that I can see15:51
sdake_does JSONDecoder import objects and build them?15:51
zanebbut e.g. eval('int') is not insecure15:51
sdake_one of the thigns we have to deal with is one of the strings we have to deal with is 'list[objectname]"15:51
zanebthey were whitelisting things that could be eval'd15:51
sdake_ya I agree perhaps their implementation wasn't insecure15:52
zanebeval is insecure if you use it to eval user-supplied data without checking15:52
sdake_our bandit gate is not intelligent about eval whitelisting15:52
zanebfair enough15:52
*** daneyon_ has joined #heat15:53
sdake_security people see eval and they implode :)15:53
sdake_i'll look into JSONDecoder (rtfm) later - have meeting now15:53
zanebit was pretty gratuitous imo, given that they could have just written {'int': int, ...}15:53
sdake_their code was terrible15:53
sdake_mine better :)15:53
zanebagree15:54
sdake_I dont want to spend alot of time on this code - we are writing our own python k8s cient in the future from scratch15:54
zanebimpl is better, but idea is still terrible though imho15:54
bdossant_heat.engine.stack [-] Stack CREATE FAILED (server11): Resource CREATE failed: SSLError: SSL exception connecting to https://keystonedev/main/v3/auth/tokens?nocatalog15:54
bdossant_does anyone know a way to bypass this?15:54
bdossant_some insecure flag that i can trigger15:55
zanebbdossant_: change auth endpoint to http maybe?15:55
sdake_zaneb shardy thanks guys for your pythonic expertise :)15:55
thervebdossant_, Or set the cert in the config15:55
*** daneyon has quit IRC15:55
bdossant_i cannot do that because the HAproxy (that i dont control) redirects to https15:56
*** jistr has quit IRC15:58
bdossant_yes i have the cafile16:00
bdossant_but still i get the exception when heat authenticates the user created for a wait resource (im using domains)16:01
bdossant_i wanted to bypass this for dev16:01
*** jistr has joined #heat16:06
*** bdossant_ has quit IRC16:07
*** jistr has quit IRC16:09
*** Raj1 has joined #heat16:13
*** pm90__ has joined #heat16:14
*** pm90_ has quit IRC16:14
*** rwsu has joined #heat16:15
*** bdossant has joined #heat16:16
*** vahidh has joined #heat16:18
*** henrique_ has joined #heat16:20
*** mixos is now known as mixos-away16:23
*** mixos-away is now known as mixos16:23
*** gokrokve has quit IRC16:23
*** nihilifer has joined #heat16:24
*** spzala has quit IRC16:24
*** spzala has joined #heat16:25
*** htruta has quit IRC16:27
*** gokrokve has joined #heat16:30
openstackgerritOpenStack Proposal Bot proposed openstack/heat: Updated from global requirements  https://review.openstack.org/18683116:32
*** Raj1 has left #heat16:33
*** nihilifer has quit IRC16:34
openstackgerritPavlo Shchelokovskyy proposed openstack/heat: WIP Do not pass rich objects on servers' delete  https://review.openstack.org/18683216:34
*** kebray has quit IRC16:34
*** sikor_sxe has quit IRC16:38
*** pas-ha has quit IRC16:41
*** pm90__ has quit IRC16:41
*** pm90_ has joined #heat16:42
*** gokrokve has quit IRC16:46
*** Drago has quit IRC16:47
*** derekh has quit IRC16:48
*** Tross has quit IRC16:51
*** spzala has quit IRC16:55
*** spzala has joined #heat16:55
*** ananta_ has quit IRC16:56
*** gokrokve has joined #heat16:57
*** hdd has quit IRC16:57
*** gokrokve has quit IRC16:57
*** gokrokve has joined #heat16:58
*** bdossant has quit IRC17:03
*** ashishjain has joined #heat17:04
*** daneyon_ has quit IRC17:05
*** sdake has joined #heat17:09
*** alanf-mc has joined #heat17:09
*** kebray has joined #heat17:09
*** achanda has quit IRC17:10
*** achanda_ has joined #heat17:10
*** sdake_ has quit IRC17:12
*** crose has quit IRC17:15
*** crose has joined #heat17:15
*** sdake_ has joined #heat17:20
*** kebray has quit IRC17:22
*** hdd has joined #heat17:23
*** sdake has quit IRC17:23
*** pm90_ has quit IRC17:23
*** mixos is now known as mixos-away17:25
*** gcivitella has quit IRC17:25
*** cody-somerville has quit IRC17:25
*** sdake has joined #heat17:26
*** barra204 has quit IRC17:26
*** Tross has joined #heat17:28
*** kebray has joined #heat17:29
*** sdake_ has quit IRC17:29
*** nihilifer has joined #heat17:31
*** achanda_ has quit IRC17:32
*** achanda has joined #heat17:33
*** jruano has quit IRC17:37
*** jruano has joined #heat17:40
*** kebray has quit IRC17:40
*** EricGonc_ has joined #heat17:42
*** EricGonczer_ has quit IRC17:44
*** nihilifer has quit IRC17:48
*** john-n-seattle has joined #heat17:54
*** mixos-away is now known as mixos17:59
*** achanda_ has joined #heat18:00
*** achanda has quit IRC18:02
*** spzala has quit IRC18:03
*** yassine_ has quit IRC18:03
*** spzala has joined #heat18:03
*** jrist has quit IRC18:06
*** kebray has joined #heat18:07
*** sdake_ has joined #heat18:07
*** barra204 has joined #heat18:09
*** Drago has joined #heat18:10
*** Drago has quit IRC18:10
*** Drago has joined #heat18:11
*** EricGonczer_ has joined #heat18:11
*** kebray has quit IRC18:12
*** sdake has quit IRC18:12
*** jrist has joined #heat18:12
*** kebray has joined #heat18:12
*** EricGonc_ has quit IRC18:14
*** barra204 has quit IRC18:15
*** spzala has quit IRC18:18
*** spzala has joined #heat18:18
*** pitr-ch_ has joined #heat18:20
*** barra204 has joined #heat18:20
*** pitr-ch has quit IRC18:21
*** allegra-s has joined #heat18:23
*** gokrokve_ has joined #heat18:24
*** alexpilotti has joined #heat18:26
*** gokrokve has quit IRC18:27
*** barra204_ has joined #heat18:28
*** gokrokve_ has quit IRC18:29
*** barra204 has quit IRC18:31
*** gokrokve has joined #heat18:31
*** dsneddon is now known as dsneddon_lunch18:37
*** sjmc7 has quit IRC18:41
*** sjmc7 has joined #heat18:45
*** barra204_ is now known as shakamunyi18:52
*** jcoufal has joined #heat18:54
*** jcoufal has quit IRC18:55
*** blomquisg has quit IRC18:55
*** tlashchova_ has joined #heat18:58
*** crose has quit IRC19:08
*** pbrooko has joined #heat19:17
*** pbrooko has quit IRC19:17
*** alexpilotti has quit IRC19:23
*** achanda_ has quit IRC19:23
openstackgerritJason Dunsmore proposed openstack/heat: Encrypt properties data  https://review.openstack.org/15138819:25
*** alanf-mc has quit IRC19:36
openstackgerritPavlo Shchelokovskyy proposed openstack/heat: Simplify handle_check in Nova server  https://review.openstack.org/18688819:37
*** sdake_ is now known as sdake19:43
*** sdake_ has joined #heat19:46
*** sdake has quit IRC19:49
*** sdake has joined #heat19:49
*** sdake_ has quit IRC19:53
*** openstack has joined #heat20:05
*** alexheneveld has quit IRC20:12
*** dyasny has quit IRC20:14
*** alanf-mc has joined #heat20:15
*** jfluhmann has joined #heat20:17
*** openstack has joined #heat20:30
*** sdake_ has joined #heat20:36
*** sdake has quit IRC20:40
*** gokrokve has quit IRC20:40
*** alexpilotti has joined #heat20:41
*** vahidh has quit IRC20:44
*** vahidh has joined #heat20:46
*** gokrokve has joined #heat20:46
*** spzala has quit IRC20:49
*** lkarm has quit IRC20:49
*** spzala has joined #heat20:49
*** blomquisg has joined #heat20:50
*** sdake has joined #heat20:50
*** gokrokve has quit IRC20:50
*** rpothier has quit IRC20:51
*** dsneddon_lunch is now known as dsneddon20:53
*** sdake_ has quit IRC20:54
*** jfluhmann has quit IRC20:55
sdakezaneb took your advice here http://ur1.ca/modcu -> http://paste.fedoraproject.org/227097/3293299820:56
sdakezaneb and the values are not being initailized with the value20:57
zanebsdake: looks better. I would still use the std library ;)20:59
*** openstackgerrit has quit IRC20:59
*** openstackgerrit has joined #heat21:00
sdakezaneb nm I figured out my dummy error21:00
*** gokrokve has joined #heat21:07
*** sdake is now known as steakache21:23
*** steakache is now known as sdake21:24
*** shakamunyi has quit IRC21:26
*** openstack has joined #heat21:32
*** tlashchova_ has quit IRC21:37
*** blomquisg has quit IRC21:40
*** allegra-s has quit IRC21:42
*** ashishjain has quit IRC21:47
sdakestevebaker a round?21:52
sdakejust want to chat, no annoying technical qs :)21:52
*** ashishjain has joined #heat21:52
*** dims_ has joined #heat21:53
*** dimsum__ has quit IRC21:55
*** alexpilotti has quit IRC21:56
*** jruano has quit IRC21:57
*** vijendar has quit IRC22:02
*** pm90_ has joined #heat22:02
*** jasond has quit IRC22:09
*** sabeen2 has quit IRC22:13
*** alanf-mc has quit IRC22:15
openstackgerritOpenStack Proposal Bot proposed openstack/heat: Updated from global requirements  https://review.openstack.org/18683122:15
*** EricGonc_ has joined #heat22:17
*** EricGonczer_ has quit IRC22:18
*** EricGonc_ has quit IRC22:19
*** mwheckmann has quit IRC22:24
*** hdd has quit IRC22:27
*** alanf-mc has joined #heat22:34
*** sdake_ has joined #heat22:39
*** sdake has quit IRC22:43
*** boris-42 has quit IRC22:48
*** sdake has joined #heat22:49
*** sdake has quit IRC22:49
*** sdake has joined #heat22:49
*** sdake_ has quit IRC22:52
*** pm90_ has quit IRC22:59
*** steveg_afk has joined #heat23:02
*** mixos has left #heat23:04
*** Marga_ has joined #heat23:10
*** Marga_ has quit IRC23:16
*** pm90_ has joined #heat23:31
*** gokrokve_ has joined #heat23:33
*** gokrokve has quit IRC23:37
*** mixos has joined #heat23:41
zanebsdake: copy-paste fail on that patch23:45
*** LiJiansheng has joined #heat23:46
sdakeoh ya?23:46
*** mixos has left #heat23:46
zanebleft a comment on the review23:46
zaneb(btw it's Saturday in stevebaker-land, so I wouldn't be surprised if he wasn't about)23:46
sdakeoh right23:47
sdakeI'll talk to you then :)23:47
*** LiJiansheng has quit IRC23:50
*** spzala has quit IRC23:50
*** LiJiansheng has joined #heat23:51
*** sdake_ has joined #heat23:56
*** pm90_ has quit IRC23:56
*** gokrokve_ has quit IRC23:56
*** gokrokve has joined #heat23:57

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