Monday, 2019-03-04

*** jmlowe has joined #heat00:37
*** sdake has joined #heat01:06
*** sdake has quit IRC01:44
*** sdake has joined #heat01:48
*** sdake has quit IRC01:59
*** sdake has joined #heat02:05
*** sdake has quit IRC02:08
*** sdake has joined #heat02:42
*** sdake has quit IRC02:44
*** sdake has joined #heat02:51
*** vishwanathj has joined #heat02:58
*** sdake has quit IRC03:24
*** sdake has joined #heat03:26
*** sdake has quit IRC03:41
*** vishwanathj has quit IRC03:52
*** vishwanathj has joined #heat03:58
*** vishwanathj has quit IRC04:07
*** ramishra has joined #heat04:26
*** jmlowe has quit IRC04:29
*** vishwanathj has joined #heat04:42
vishwanathjHi, Looking for guidance on how to use the "conditions" to be able to assign a property to a resource .... I want to be able to add or remove a property from a resource based on a condition  using a single resource definition. An example would be as illustrated at http://paste.openstack.org/show/747207/04:45
vishwanathjdepending if a condition is true, I would like to have the ip_address defined in L7 at http://paste.openstack.org/show/747207/ ... if the condition is not true, the resource defintion should like at lines 10 to 1504:46
vishwanathjWould really appreciate if you could guide me on how to achieve the above ^^^^04:47
*** sdake has joined #heat05:09
*** skramaja has joined #heat05:11
*** sm806 has quit IRC05:11
*** sm806 has joined #heat05:12
*** ricolin has joined #heat05:27
*** sdake has quit IRC05:48
*** sdake has joined #heat05:54
*** sdake has quit IRC06:01
ramishravishwanathj: you can do something like http://paste.openstack.org/show/747208/06:14
*** asmita_ has joined #heat06:52
asmita_Hi. Review request for patch https://review.openstack.org/#/c/580943/ and https://review.openstack.org/#/c/583429.06:55
asmita_Thank you.06:55
vishwanathjramishra thanks06:59
vishwanathjramishra I shall try that and see how it goes,  appreciate your suggestion07:00
*** sm806 has quit IRC07:16
*** sm806 has joined #heat07:16
*** hjensas has quit IRC07:22
*** hjensas has joined #heat07:26
*** jtomasek has joined #heat07:30
vishwanathjramishra would not having line 10 AT ALL be valid too?07:40
vishwanathjramishra the above question is in context of http://paste.openstack.org/show/747208/07:41
vishwanathjI want to know if it could be used in other use cases07:42
ramishravishwanathj: you can't skip top level properties with conditions (only their values). But, you can have two resources and one of them enabled based on condition in your template07:53
ramishrathere are some examples in https://github.com/openstack/heat-templates/blob/master/hot/condition.yaml07:54
vishwanathjramishra thanks07:55
*** tosky has joined #heat08:27
*** e0ne has joined #heat08:34
*** k_mouza has joined #heat09:10
*** ttsiouts has joined #heat09:11
*** k_mouza has quit IRC09:15
*** k_mouza has joined #heat09:16
*** a-pugachev has joined #heat09:22
*** e0ne has quit IRC09:40
*** jistr is now known as jistr|sick09:42
asmita_zaneb: HI09:50
asmita_Hi09:50
*** gkadam has joined #heat09:50
*** gfidente has joined #heat09:52
*** asmita_ has left #heat10:00
*** gfidente has quit IRC10:00
*** mwhahaha has quit IRC10:01
*** mwhahaha has joined #heat10:01
*** gfidente has joined #heat10:08
*** e0ne has joined #heat10:16
*** asmita has joined #heat10:27
*** ricolin has quit IRC10:50
*** ttsiouts has quit IRC11:04
*** ttsiouts has joined #heat11:05
*** ttsiouts has quit IRC11:09
*** e0ne has quit IRC11:10
*** e0ne has joined #heat11:11
*** a-pugachev has quit IRC11:53
*** ttsiouts has joined #heat11:59
*** e0ne has quit IRC12:00
*** e0ne has joined #heat12:08
*** jcoufal has joined #heat12:34
*** ttsiouts_ has joined #heat12:36
*** ttsiouts has quit IRC12:40
*** jistr|sick is now known as jistr|sick|mtg13:01
*** e0ne has quit IRC13:04
*** k_mouza_ has joined #heat13:07
*** k_mouza has quit IRC13:11
*** skramaja_ has joined #heat13:13
*** skramaja has quit IRC13:13
*** sdake has joined #heat13:24
*** zbitter has joined #heat13:30
*** zaneb has quit IRC13:32
*** sm806 has quit IRC13:33
*** sm806 has joined #heat13:34
*** skramaja_ has quit IRC13:38
*** k_mouza has joined #heat13:49
*** k_mouza_ has quit IRC13:50
*** zbitter is now known as zaneb13:56
*** sdake has quit IRC14:14
*** jmlowe has joined #heat14:18
*** ttsiouts_ has quit IRC14:18
*** ttsiouts has joined #heat14:19
*** ttsiouts has quit IRC14:21
*** ttsiouts has joined #heat14:21
*** sdake has joined #heat14:25
*** sdake has quit IRC14:25
*** beekneemech is now known as bnemec14:33
*** sdake has joined #heat14:38
*** zaneb has quit IRC14:42
*** ekultails has joined #heat14:47
*** sdake has quit IRC14:49
*** sdake has joined #heat14:55
*** e0ne has joined #heat14:59
*** e0ne has quit IRC15:02
*** jistr|sick|mtg is now known as jistr|sick15:02
*** e0ne has joined #heat15:04
*** ttsiouts has quit IRC15:06
*** ttsiouts has joined #heat15:07
*** ttsiouts has quit IRC15:11
*** sdake has quit IRC15:11
*** sdake has joined #heat15:15
*** ricolin has joined #heat15:42
*** sdake has quit IRC16:00
*** e0ne has quit IRC16:06
*** e0ne has joined #heat16:12
*** gfidente has quit IRC16:19
*** e0ne has quit IRC16:20
*** e0ne has joined #heat16:22
*** e0ne has quit IRC16:23
*** gfidente has joined #heat16:25
*** zaneb has joined #heat16:30
*** ramishra has quit IRC16:31
*** Chaserjim has joined #heat16:41
*** Chaserjim has quit IRC16:41
*** Chaserjim has joined #heat16:42
*** sdake has joined #heat17:22
*** k_mouza_ has joined #heat17:43
*** k_mouza has quit IRC17:47
*** k_mouza_ has quit IRC17:47
*** gfidente has quit IRC17:50
vishwanathjHi, I was wondering if the construct I have at lines 18 to 41 http://paste.openstack.org/show/747253/ is valid when using "conditions". I have been exploring this only the last 2 days and would appreciate you guidance. Thanks17:58
*** e0ne has joined #heat17:59
*** e0ne has quit IRC18:17
*** gfidente has joined #heat18:25
zanebvishwanathj: yes, at first glance that looks completely legit18:31
zanebnote that None on line 6 is the literal string "None"18:32
vishwanathjzaneb thanks, it is not quoted though, If the parameter "network_vlan_static_self_ips" value is not passed, it would be equivalent to None, right?18:35
zanebvishwanathj: no. for a start, the YAML equivalent of Python's None is null18:36
zanebalso, it's not allowed to just 'not pass' a parameter value unless it has a default18:37
zanebin which case, the value you get will be the default, not None18:37
zanebvishwanathj: I'd recommend you use an empty string "" as the default and then compare to an empty string in the condition18:38
vishwanathjI am using nested templates, in the parent template, I have defined a default value ---> "default: \n - "18:39
vishwanathjis the above acceptable as an alternate to ""18:40
vishwanathjthe \n ^^^ is to indicated that '-' is on the next line18:40
zanebso in python terms the default value is [None]?18:44
zanebthat's allowed (if the parameter type is json), although a little strange18:48
*** k_mouza has joined #heat19:01
*** ricolin has quit IRC19:01
vishwanathjzaneb thanks19:05
*** k_mouza has quit IRC19:05
*** sdake has quit IRC19:07
*** sm806 has quit IRC19:13
*** e0ne has joined #heat19:13
*** sm806 has joined #heat19:13
*** openstackgerrit has quit IRC19:23
*** sm806 has quit IRC19:26
*** sm806 has joined #heat19:27
*** gmoro has joined #heat19:31
*** gmoro_ has quit IRC19:33
*** k_mouza has joined #heat19:46
*** sm806 has quit IRC19:52
*** sm806 has joined #heat19:53
*** k_mouza has quit IRC20:04
*** jmlowe has quit IRC20:08
*** sm806 has quit IRC20:11
*** sm806 has joined #heat20:12
*** gfidente is now known as gfidente|afk20:21
*** e0ne has quit IRC20:22
*** sm806 has quit IRC20:32
*** sm806 has joined #heat20:33
*** BlackDex has quit IRC20:39
*** jmlowe has joined #heat20:46
*** jtomasek has quit IRC20:48
*** BlackDex has joined #heat20:49
*** sdake has joined #heat20:52
*** sm806 has quit IRC21:01
*** sm806 has joined #heat21:02
*** gfidente|afk has quit IRC21:05
*** jcoufal has quit IRC21:28
*** jcoufal has joined #heat21:37
*** sdake has quit IRC21:41
*** sdake has joined #heat21:43
*** zzzeek has quit IRC21:54
*** zzzeek has joined #heat21:54
*** jcoufal has quit IRC22:02
*** neatherweb has joined #heat22:41
*** sdake has quit IRC22:50
vishwanathjzaneb others I have nested templates (refer http://paste.openstack.org/show/747262/ that shows 4 templates in order that are nested) I added some conditions in the 4th level template and an "if" condition and started getting the error "ERROR: Failed to validate: : resources.ip_nnic_handler_ip1: : Failed to validate: resources.network_vlan_ports: Failed to validate: Failed to validate: resources[0]: The Parameter (23:00
vishwanathjnetwork_vlan_static_self_ips) was not provided"....I am failing to understand what I have done wrong23:00
*** sdake has joined #heat23:12
*** tosky has quit IRC23:28
*** sdake has quit IRC23:35
zanebvishwanathj: you have to either define a default for the parameter or pass a value23:38
zanebat each level of nesting23:38

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