Thursday, 2016-02-11

*** spzala has quit IRC00:00
*** vahidh_ has quit IRC00:35
*** vahidh has joined #openstack-heat-translator00:35
*** vahidh has quit IRC00:40
*** spzala has joined #openstack-heat-translator00:55
*** spzala has quit IRC01:00
*** sridhar_ram has quit IRC01:17
*** bobh has joined #openstack-heat-translator01:50
*** bobh has quit IRC01:50
*** spzala has joined #openstack-heat-translator01:58
*** spzala has quit IRC02:02
*** bobh has joined #openstack-heat-translator02:07
*** bobh has quit IRC02:13
*** openstackgerrit has quit IRC02:15
*** sridhar_ram has joined #openstack-heat-translator02:19
*** spzala has joined #openstack-heat-translator02:21
*** openstackgerrit has joined #openstack-heat-translator02:24
*** spzala has quit IRC02:29
*** bobh has joined #openstack-heat-translator02:47
*** bobh has quit IRC02:52
openstackgerritMerged openstack/heat-translator: Updated from global requirements  https://review.openstack.org/27867104:00
*** sridhar_ram has quit IRC05:08
*** vahidh has joined #openstack-heat-translator05:21
*** vahidh has quit IRC05:25
*** tbh has joined #openstack-heat-translator06:50
*** vishwanathj has quit IRC07:00
*** openstackgerrit has quit IRC08:47
*** openstackgerrit_ has joined #openstack-heat-translator08:47
*** openstackgerrit_ is now known as openstackgerrit08:48
*** ig0r_ has joined #openstack-heat-translator12:12
*** tbh has quit IRC12:35
*** bobh has joined #openstack-heat-translator13:21
*** bobh has quit IRC13:25
*** bobh has joined #openstack-heat-translator14:19
*** spzala has joined #openstack-heat-translator14:21
*** ig0r_ has quit IRC15:21
openstackgerritMathieu Velten proposed openstack/heat-translator: Merge interfaces between the node template, its type and its type hierarchy.  https://review.openstack.org/26953715:41
*** vahidh has joined #openstack-heat-translator15:48
*** madhavi has joined #openstack-heat-translator15:50
madhavi----------------------/*--------------------------------------------++15:56
*** Meena_ has joined #openstack-heat-translator15:57
spzalahi all16:00
spzalaI am on call .. please give me a minute16:00
*** Meena_ has quit IRC16:01
*** Meena_ has joined #openstack-heat-translator16:01
*** mvelten has joined #openstack-heat-translator16:04
spzalao/16:04
spzalatopol: bobh: there?16:04
spzalamvelten: thanks for joining16:05
bobho/16:05
spzalaMeena_: madhavi: hi16:05
spzalais srinivas joining?16:05
Meena_Hi16:05
madhavihi16:05
topolo/16:05
mveltenhi there16:05
spzalaso I have couple of things to discuss and get everyone's opinion16:06
spzalafirst, handling key_name  https://bugs.launchpad.net/heat-translator/+bug/154423716:06
openstackLaunchpad bug 1544237 in Heat Translator "Handle key_name parameter in translated template" [Medium,New] - Assigned to Bob Haddleton (bob-haddleton)16:06
spzalaplease look at it and see anyone has any comments with the approach we are taking. bobh is working on it16:07
*** Meena__ has joined #openstack-heat-translator16:07
bobhspzala: My plan is to use a general solution that copies all properties into the object16:07
spzalabobh: I was just talking to mvelten over phone and he is fine with the changes .. we are good but wanted to bring to everyone's attention16:07
spzalabobh: all propperties? well, let's see as you upload changes, that will give better idea. Also, you may want to look at the second discussion I wanted to have today16:08
bobhspzala: ok16:08
spzalasecond one is, handling parameters - today we force user to provide parameters if default value is not set in template16:09
spzalaand we update template accordingly with actual values of parameters16:09
*** Meena_ has quit IRC16:09
madhavisrinivas is busy  ..he might not join...16:09
spzalabut we have requirements for couple things as I tried briefing here https://blueprints.launchpad.net/heat-translator/+spec/handle-cli-user-input16:10
spzalamadhavi: thx for checking, np we will touch base via emails16:10
spzalaalso mvelten is working on https://review.openstack.org/#/c/269747/16:11
spzalaso basically what we want to do is:16:11
spzala1. make parameters optionals, if provided validate it and in the translated template do not set actual value but use 'get_param: {x:y}"16:11
spzalaso that user can have opportunity to provide parameters at the deployment time with Heat if they wish to16:12
spzalabobh: any comments on that?16:12
bobhspzala: it looks good to me - makes sense to support both scenarios16:12
spzalabobh: if not right away, please let me know once you can think about it16:13
mveltenif provided set it as default in the parameter description16:13
spzalabobh: yup16:13
mveltenjust to be clear :)16:13
spzalamvelten: true, that way user of translator don't think providing parameters was waste16:13
bobhmvelten: so provided parameters override defaults, and can then be overridden again at deployment time?16:13
spzalamvelten: :) thanks16:13
mveltenexactly16:14
bobh+116:14
spzalaso one problem here is,16:14
spzalahandling parameters that may (mostly in real life) require from user for OS and HOST capabilities of TOSCA Compute16:14
mveltenthe "set default to provided value" is already present, my patch changes hardcoding to get_param, no we have to handle the special cases of key_name ans stuff related to flavor/image16:15
spzalaHeat has nothing to do with those parameters16:15
bobhmvelten: Is there a reason key_name needs to be a special case?16:15
spzalamvelten: yup those special cases16:15
spzalabobh: yes, it's special compare to other parameters because TOSCA doesn't have a concept of key16:16
spzalabobh: so TOSCA template won't have 'inputs' section with key_name16:16
mveltenthe key_name can use a get_param, but it means that we are actually adding a parameter. Currently we never do that16:16
bobhspzala: We (Tacker) are deriving an object from Compute and then adding properties that Heat supports, like key_name16:16
spzalabobh: that's what we will be doing with your patch on key_name (we are doing it today but it's hard coded as you know)16:17
bobhspzala: yes16:17
spzalabobh: so when user provide key_name (something we need to have a unique name input key that we recognize as a key name,  I believe)16:18
spzalawe either create a new entry in parameters section and set key_name:get_param{} or16:19
spzalajust create an entry for all Nova Server with key_name:<user provided value>16:19
spzalaI guess second approach is cleaner and we don't mess with adding a new input16:19
bobhspzala: so does that require the user to provide a key for all Servers?16:20
spzalabut that limits user to provide key_name at the translation time only vs providing at deployment time but that should be OK16:20
spzalabobh: hmmm.. that's good question .. so far with local testing I use single key only. Is it common to have scenario you mentioned?16:21
bobhspzala: depends on whether the user is storing the HOT template for deployment later or multiple times16:21
mveltenmoreover the key is actually not mandatory, so if not specified in the input parameters of the translator we can just skip it16:21
bobhspzala: in our scenarios (NFV) we almost never use keys16:21
spzalamvelten: yes, agree .. that's the reason for bobh: patch on key_name16:21
spzalabobh: :-) OK, so then for now let's just not worry about multiple keys16:22
spzalabobh: that's how we have today, and no one complain yet .. so let's just go with single key expectation16:22
spzalaand set that for Nova Server entries16:22
bobhspzala: I was thinking of the possibility that someone would translate they template and then deploy it multiple times using a different key for each deployment16:22
spzalabobh: mvelten: makes sense?16:22
bobhdoes this make "key_name" a reserved word when it shows up in inputs/parameters?16:23
spzalawe have documentation of how we are handling key_name today, and we will document our new approach there16:23
spzalabobh: yep, we need to16:23
spzalabobh: to recognize the key16:23
bobhspzala: ok16:24
spzalacool16:25
spzalamvelten: sounds good?16:25
mveltenyes16:25
spzalabobh: mvelten: thx. I have a BP opened to use heat client for validating our translated template but as you know today (and we will continue it)16:26
bobhspzala: just to make sure I understand - in a Simple Profile template, specifying key_name in the inputs will cause the key_name property to be added to (all?) Compute nodes16:26
spzalabobh: well, no, I meant to say 'key_name' as reserved parameter to be expected as parameter. Since TOSCA doesn't have such concept and TOSCA can be used outside Heat,16:27
spzalait's up to user, if they have provided such a key name in advance in TOSCA template then we can use it accordinly16:28
bobhspzala: ok, just wanted to clarify - so the template itself will have no key_name reference required, but if you pass it a parameter it will be handled16:28
spzalabobh: yes16:28
bobhspzala: got it16:28
spzalabobh: cool, thx16:29
spzalabobh: mvelten: so I was saying that today we have hot_*.yaml templates that we expect as translation output for our testing, as you create such templates please please test it with Heat16:29
spzala:-) you might already, but if not please do so16:29
bobhspzala: will do16:30
spzalabobh: thanks16:30
spzalaMeena_: I had the same question to you to your patch on policies :-)16:30
mveltenI can validate, testing them right now is a bit tricky our Heat is not cooperative with userdata: SOFTWARE_CONFIG16:31
Meena__yes sahdev16:31
spzalaMeena_: to make sure that they are deployable16:31
spzalamvelten: ahh, I see16:31
mveltenbut i need to fix that so I should be able to fully test in some time16:31
Meena__i tried with heat but ony the affinity case16:31
bobhmvelten: should user_data default be removed too?16:31
spzalamvelten: OK, I will try to run your templates. Yup, if you can have it in your environment that would be great and make patch merging quick16:32
spzalabobh: I guess so, that's needed to not to force user to create key16:32
spzalabobh: as part of the key_name fix right?16:33
bobhspzala: I can remove it at the same time.  It might affect the SoftwareConfig and SoftwareDeployment resources16:33
spzalaMeena_: cool :) OK, but you will be doing any new templates so that's great16:33
mveltenbobh: no we can't I think, if we do we need to pass everything through the cloudinit metadata using a MultipartMime something (I have examples in Magnum)16:33
bobhspzala: I need to check to see if user_data gets inserted anywhere, and if it does maybe user_data_format should be inserted only in those cases?16:34
mveltenIf you try a SoftwareDeploy with userdata: RAW it rejects it16:34
mveltenoh sorry i was talking about  user_data_format :)16:34
spzalabobh: Ohhhh16:35
spzalabobh: sorry I read it as key_name default16:35
bobhmvelten: so can we insert it only in that case?  Also there is the possibility that the user might want to specify a specific user_data_format16:35
spzalabobh: No, please don't remove it16:35
bobhspzala: sorry about that16:35
spzalaspzala: user data is good to have as default16:35
spzalabobh: ^16:35
bobhspzala: I think it's another area that will need to be looked at as templates get more complex16:35
spzalabobh: that doesn't hurt anything I guess, and all TOSCA templates are based on softwareconfig16:36
*** madhavi has quit IRC16:36
spzalabobh: yup, let's look at it separately16:36
bobhspzala: ok - we'll see if we run into any issues16:36
spzalamvelten: thanks for your findings16:36
spzalabobh: yup16:36
Meena__spzala: I have a question to ask16:37
spzalaMeena_: sure16:37
Meena__In placement policy, we are not passing the affinity or anti affinity rule in tosca parser16:38
Meena__But I think that should be provided by the user16:38
spzalaMeena_: hmmm.. sorry not on top of my head, policy may need to change little (something I can bring to TOSCA TC) as we implement16:39
Meena__oh ok16:40
spzalaMeena_: can we take it offline please?16:40
Meena__sure16:40
spzalaMeena_: cool, thanks16:40
spzalaI don't have anything specific16:40
spzalaOpen discussion now - anyone has anything to discuss ?16:41
Meena__Nothing from my side16:41
bobhspzala: nothing here16:41
spzalaMeena_: bobh: cool16:41
spzalamvelten: anything else?16:42
mveltennop fine for me :)16:42
spzala:) OK, thanks16:42
*** sridhar_ram has joined #openstack-heat-translator16:42
bobhspzala: one thing I just thought16:43
spzalawell, great discussion all and very productive.. thank you so much and bye for now16:43
spzalabobh: sure16:43
bobhspzala: I need to add heat-translator to the global-requirements.txt for use in Tacker16:43
spzalaMeena_: it must be late for you, feel free to drop if you want16:43
Meena__fine bye16:43
bobhspzala: is that something you want to handle or should I make the change?  Not sure whether to wait for 0.4.0 or not16:43
spzalaMeena_: thanks. Bye!16:43
*** Meena__ has left #openstack-heat-translator16:44
spzalabobh: nope, I think that's just tracker specific change.16:44
bobhok - just wanted to check since it's global Infra requirements16:44
spzalabobh: yup, sure16:45
bobhspzala: I'll include you as a reviewer just so you're aware16:45
spzalabobh: you may need to make changes once we have 0.4.0 out16:45
bobhspzala: that's why I think I will wait - I need 0.4.0 anyway16:45
spzalaspzala: since certain thing in parser will need 0.4.0 of translator16:45
spzalabobh: sure, that's good too.. I thought if you want to go ahead with 0.3.0 or greater in requirement that will work for requirement side changes16:46
bobhspzala: still debating :-)16:46
spzalabobh: heat-translator is usually around 2-3 weeks cycle after parser release so I m hoping to have 0.4.0 of translator in 2 weeks16:47
spzalabobh: :-)16:47
spzalabobh: aren't you having tosca-parser specific req too?16:47
bobhspzala: thanks - there are a couple of things I need to get into that release so I'll try to get them in ASAP16:47
bobhspzala: yes - we needed 0.4.0 for that too16:47
bobhspzala: I am doing the work in stages in Tacker so we can review the tosca-parser changes first, then add in the heat-translator changes when 0.4.0 is available16:48
spzalabobh: sure, no worries.. I can always wait little more before pypi to get in something important16:48
bobhspzala: thanks!16:48
spzalabobh: sure16:48
spzalabobh: you are welcome!16:48
spzalaalright then, have a nice rest of the day/evening :-) and talk to you later! thanks again all!16:49
bobhbye16:50
spzalabobh: bye16:50
*** vishwanathj has joined #openstack-heat-translator16:57
openstackgerritMathieu Velten proposed openstack/heat-translator: Merge interfaces between the node template, its type and its type hierarchy.  https://review.openstack.org/26953717:09
openstackgerritMathieu Velten proposed openstack/heat-translator: Interpret get_artifact in inputs handling  https://review.openstack.org/27668617:31
*** vishwana_ has joined #openstack-heat-translator19:00
*** vishwanathj has quit IRC19:03
*** sridhar_ram1 has joined #openstack-heat-translator19:55
*** sridhar_ram has quit IRC19:56
*** spzala has quit IRC20:49
*** vishwanathj has joined #openstack-heat-translator21:13
*** vishwana_ has quit IRC21:15
*** spzala has joined #openstack-heat-translator21:19
*** spzala has quit IRC21:19
*** sridhar_ram1 is now known as sridhar_ram22:00
*** sridhar_ram has quit IRC23:00
*** vishwanathj has quit IRC23:08
openstackgerritMerged openstack/heat-translator: Merge interfaces between the node template, its type and its type hierarchy.  https://review.openstack.org/26953723:14
*** bobh has quit IRC23:29

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