| *** jmlowe has joined #heat | 00:37 | |
| *** sdake has joined #heat | 01:06 | |
| *** sdake has quit IRC | 01:44 | |
| *** sdake has joined #heat | 01:48 | |
| *** sdake has quit IRC | 01:59 | |
| *** sdake has joined #heat | 02:05 | |
| *** sdake has quit IRC | 02:08 | |
| *** sdake has joined #heat | 02:42 | |
| *** sdake has quit IRC | 02:44 | |
| *** sdake has joined #heat | 02:51 | |
| *** vishwanathj has joined #heat | 02:58 | |
| *** sdake has quit IRC | 03:24 | |
| *** sdake has joined #heat | 03:26 | |
| *** sdake has quit IRC | 03:41 | |
| *** vishwanathj has quit IRC | 03:52 | |
| *** vishwanathj has joined #heat | 03:58 | |
| *** vishwanathj has quit IRC | 04:07 | |
| *** ramishra has joined #heat | 04:26 | |
| *** jmlowe has quit IRC | 04:29 | |
| *** vishwanathj has joined #heat | 04:42 | |
| vishwanathj | Hi, 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 |
|---|---|---|
| vishwanathj | depending 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 15 | 04:46 |
| vishwanathj | Would really appreciate if you could guide me on how to achieve the above ^^^^ | 04:47 |
| *** sdake has joined #heat | 05:09 | |
| *** skramaja has joined #heat | 05:11 | |
| *** sm806 has quit IRC | 05:11 | |
| *** sm806 has joined #heat | 05:12 | |
| *** ricolin has joined #heat | 05:27 | |
| *** sdake has quit IRC | 05:48 | |
| *** sdake has joined #heat | 05:54 | |
| *** sdake has quit IRC | 06:01 | |
| ramishra | vishwanathj: you can do something like http://paste.openstack.org/show/747208/ | 06:14 |
| *** asmita_ has joined #heat | 06: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 |
| vishwanathj | ramishra thanks | 06:59 |
| vishwanathj | ramishra I shall try that and see how it goes, appreciate your suggestion | 07:00 |
| *** sm806 has quit IRC | 07:16 | |
| *** sm806 has joined #heat | 07:16 | |
| *** hjensas has quit IRC | 07:22 | |
| *** hjensas has joined #heat | 07:26 | |
| *** jtomasek has joined #heat | 07:30 | |
| vishwanathj | ramishra would not having line 10 AT ALL be valid too? | 07:40 |
| vishwanathj | ramishra the above question is in context of http://paste.openstack.org/show/747208/ | 07:41 |
| vishwanathj | I want to know if it could be used in other use cases | 07:42 |
| ramishra | vishwanathj: 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 template | 07:53 |
| ramishra | there are some examples in https://github.com/openstack/heat-templates/blob/master/hot/condition.yaml | 07:54 |
| vishwanathj | ramishra thanks | 07:55 |
| *** tosky has joined #heat | 08:27 | |
| *** e0ne has joined #heat | 08:34 | |
| *** k_mouza has joined #heat | 09:10 | |
| *** ttsiouts has joined #heat | 09:11 | |
| *** k_mouza has quit IRC | 09:15 | |
| *** k_mouza has joined #heat | 09:16 | |
| *** a-pugachev has joined #heat | 09:22 | |
| *** e0ne has quit IRC | 09:40 | |
| *** jistr is now known as jistr|sick | 09:42 | |
| asmita_ | zaneb: HI | 09:50 |
| asmita_ | Hi | 09:50 |
| *** gkadam has joined #heat | 09:50 | |
| *** gfidente has joined #heat | 09:52 | |
| *** asmita_ has left #heat | 10:00 | |
| *** gfidente has quit IRC | 10:00 | |
| *** mwhahaha has quit IRC | 10:01 | |
| *** mwhahaha has joined #heat | 10:01 | |
| *** gfidente has joined #heat | 10:08 | |
| *** e0ne has joined #heat | 10:16 | |
| *** asmita has joined #heat | 10:27 | |
| *** ricolin has quit IRC | 10:50 | |
| *** ttsiouts has quit IRC | 11:04 | |
| *** ttsiouts has joined #heat | 11:05 | |
| *** ttsiouts has quit IRC | 11:09 | |
| *** e0ne has quit IRC | 11:10 | |
| *** e0ne has joined #heat | 11:11 | |
| *** a-pugachev has quit IRC | 11:53 | |
| *** ttsiouts has joined #heat | 11:59 | |
| *** e0ne has quit IRC | 12:00 | |
| *** e0ne has joined #heat | 12:08 | |
| *** jcoufal has joined #heat | 12:34 | |
| *** ttsiouts_ has joined #heat | 12:36 | |
| *** ttsiouts has quit IRC | 12:40 | |
| *** jistr|sick is now known as jistr|sick|mtg | 13:01 | |
| *** e0ne has quit IRC | 13:04 | |
| *** k_mouza_ has joined #heat | 13:07 | |
| *** k_mouza has quit IRC | 13:11 | |
| *** skramaja_ has joined #heat | 13:13 | |
| *** skramaja has quit IRC | 13:13 | |
| *** sdake has joined #heat | 13:24 | |
| *** zbitter has joined #heat | 13:30 | |
| *** zaneb has quit IRC | 13:32 | |
| *** sm806 has quit IRC | 13:33 | |
| *** sm806 has joined #heat | 13:34 | |
| *** skramaja_ has quit IRC | 13:38 | |
| *** k_mouza has joined #heat | 13:49 | |
| *** k_mouza_ has quit IRC | 13:50 | |
| *** zbitter is now known as zaneb | 13:56 | |
| *** sdake has quit IRC | 14:14 | |
| *** jmlowe has joined #heat | 14:18 | |
| *** ttsiouts_ has quit IRC | 14:18 | |
| *** ttsiouts has joined #heat | 14:19 | |
| *** ttsiouts has quit IRC | 14:21 | |
| *** ttsiouts has joined #heat | 14:21 | |
| *** sdake has joined #heat | 14:25 | |
| *** sdake has quit IRC | 14:25 | |
| *** beekneemech is now known as bnemec | 14:33 | |
| *** sdake has joined #heat | 14:38 | |
| *** zaneb has quit IRC | 14:42 | |
| *** ekultails has joined #heat | 14:47 | |
| *** sdake has quit IRC | 14:49 | |
| *** sdake has joined #heat | 14:55 | |
| *** e0ne has joined #heat | 14:59 | |
| *** e0ne has quit IRC | 15:02 | |
| *** jistr|sick|mtg is now known as jistr|sick | 15:02 | |
| *** e0ne has joined #heat | 15:04 | |
| *** ttsiouts has quit IRC | 15:06 | |
| *** ttsiouts has joined #heat | 15:07 | |
| *** ttsiouts has quit IRC | 15:11 | |
| *** sdake has quit IRC | 15:11 | |
| *** sdake has joined #heat | 15:15 | |
| *** ricolin has joined #heat | 15:42 | |
| *** sdake has quit IRC | 16:00 | |
| *** e0ne has quit IRC | 16:06 | |
| *** e0ne has joined #heat | 16:12 | |
| *** gfidente has quit IRC | 16:19 | |
| *** e0ne has quit IRC | 16:20 | |
| *** e0ne has joined #heat | 16:22 | |
| *** e0ne has quit IRC | 16:23 | |
| *** gfidente has joined #heat | 16:25 | |
| *** zaneb has joined #heat | 16:30 | |
| *** ramishra has quit IRC | 16:31 | |
| *** Chaserjim has joined #heat | 16:41 | |
| *** Chaserjim has quit IRC | 16:41 | |
| *** Chaserjim has joined #heat | 16:42 | |
| *** sdake has joined #heat | 17:22 | |
| *** k_mouza_ has joined #heat | 17:43 | |
| *** k_mouza has quit IRC | 17:47 | |
| *** k_mouza_ has quit IRC | 17:47 | |
| *** gfidente has quit IRC | 17:50 | |
| vishwanathj | Hi, 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. Thanks | 17:58 |
| *** e0ne has joined #heat | 17:59 | |
| *** e0ne has quit IRC | 18:17 | |
| *** gfidente has joined #heat | 18:25 | |
| zaneb | vishwanathj: yes, at first glance that looks completely legit | 18:31 |
| zaneb | note that None on line 6 is the literal string "None" | 18:32 |
| vishwanathj | zaneb 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 |
| zaneb | vishwanathj: no. for a start, the YAML equivalent of Python's None is null | 18:36 |
| zaneb | also, it's not allowed to just 'not pass' a parameter value unless it has a default | 18:37 |
| zaneb | in which case, the value you get will be the default, not None | 18:37 |
| zaneb | vishwanathj: I'd recommend you use an empty string "" as the default and then compare to an empty string in the condition | 18:38 |
| vishwanathj | I am using nested templates, in the parent template, I have defined a default value ---> "default: \n - " | 18:39 |
| vishwanathj | is the above acceptable as an alternate to "" | 18:40 |
| vishwanathj | the \n ^^^ is to indicated that '-' is on the next line | 18:40 |
| zaneb | so in python terms the default value is [None]? | 18:44 |
| zaneb | that's allowed (if the parameter type is json), although a little strange | 18:48 |
| *** k_mouza has joined #heat | 19:01 | |
| *** ricolin has quit IRC | 19:01 | |
| vishwanathj | zaneb thanks | 19:05 |
| *** k_mouza has quit IRC | 19:05 | |
| *** sdake has quit IRC | 19:07 | |
| *** sm806 has quit IRC | 19:13 | |
| *** e0ne has joined #heat | 19:13 | |
| *** sm806 has joined #heat | 19:13 | |
| *** openstackgerrit has quit IRC | 19:23 | |
| *** sm806 has quit IRC | 19:26 | |
| *** sm806 has joined #heat | 19:27 | |
| *** gmoro has joined #heat | 19:31 | |
| *** gmoro_ has quit IRC | 19:33 | |
| *** k_mouza has joined #heat | 19:46 | |
| *** sm806 has quit IRC | 19:52 | |
| *** sm806 has joined #heat | 19:53 | |
| *** k_mouza has quit IRC | 20:04 | |
| *** jmlowe has quit IRC | 20:08 | |
| *** sm806 has quit IRC | 20:11 | |
| *** sm806 has joined #heat | 20:12 | |
| *** gfidente is now known as gfidente|afk | 20:21 | |
| *** e0ne has quit IRC | 20:22 | |
| *** sm806 has quit IRC | 20:32 | |
| *** sm806 has joined #heat | 20:33 | |
| *** BlackDex has quit IRC | 20:39 | |
| *** jmlowe has joined #heat | 20:46 | |
| *** jtomasek has quit IRC | 20:48 | |
| *** BlackDex has joined #heat | 20:49 | |
| *** sdake has joined #heat | 20:52 | |
| *** sm806 has quit IRC | 21:01 | |
| *** sm806 has joined #heat | 21:02 | |
| *** gfidente|afk has quit IRC | 21:05 | |
| *** jcoufal has quit IRC | 21:28 | |
| *** jcoufal has joined #heat | 21:37 | |
| *** sdake has quit IRC | 21:41 | |
| *** sdake has joined #heat | 21:43 | |
| *** zzzeek has quit IRC | 21:54 | |
| *** zzzeek has joined #heat | 21:54 | |
| *** jcoufal has quit IRC | 22:02 | |
| *** neatherweb has joined #heat | 22:41 | |
| *** sdake has quit IRC | 22:50 | |
| vishwanathj | zaneb 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 |
| vishwanathj | network_vlan_static_self_ips) was not provided"....I am failing to understand what I have done wrong | 23:00 |
| *** sdake has joined #heat | 23:12 | |
| *** tosky has quit IRC | 23:28 | |
| *** sdake has quit IRC | 23:35 | |
| zaneb | vishwanathj: you have to either define a default for the parameter or pass a value | 23:38 |
| zaneb | at each level of nesting | 23:38 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!