*** iokiwi has quit IRC | 00:11 | |
*** ivve has quit IRC | 00:47 | |
*** ricolin has joined #heat | 00:48 | |
*** happyhemant has quit IRC | 01:00 | |
*** maddtux has joined #heat | 01:00 | |
*** flwang has joined #heat | 01:14 | |
flwang | stevebaker: hello | 01:27 |
---|---|---|
*** jcoufal has quit IRC | 01:54 | |
*** skramaja has joined #heat | 03:40 | |
*** ricolin has quit IRC | 04:27 | |
gregwork | this is semi heat related (because yaql intrinsic) .. how would you refer to the key in this dict based on the following dict: https://pastebin.com/Z4VHxgmE | 05:16 |
gregwork | i can filter out the right one with $.node_map.values().where($.type = 'primary-db') | 05:16 |
gregwork | im not entirely sure how to refer that path back to referencing the key | 05:16 |
gregwork | there arent alot of examples online and yaql seems like a pretty powerful tool for doing lookups/transforms in heat | 05:17 |
gregwork | im trying to clean up this dict by using a smarter query that can extract the name of the key for use in other parts of the heat template. ive been working around this by adding an extra key called "name" with the same data as the key itself https://pastebin.com/ca1C15wF | 05:21 |
gregwork | in that example i can run : let(x => $.node_map) -> $x.items().select($[1]).where($.type = 'primary-db').name | 05:21 |
gregwork | that will give me exactly what i want, but requires the dict have that superfluous key | 05:21 |
*** ramishra has joined #heat | 05:31 | |
*** radeks has joined #heat | 05:42 | |
*** tkajinam has quit IRC | 06:00 | |
*** tkajinam has joined #heat | 06:06 | |
*** ricolin has joined #heat | 06:41 | |
*** tkajinam_ has joined #heat | 06:53 | |
*** tkajinam has quit IRC | 06:56 | |
*** ricolin has quit IRC | 06:59 | |
*** arbrandes has quit IRC | 07:00 | |
*** arbrandes has joined #heat | 07:01 | |
*** ivve has joined #heat | 07:07 | |
*** spsurya has joined #heat | 07:07 | |
*** ricolin has joined #heat | 07:18 | |
*** happyhemant has joined #heat | 07:23 | |
*** rubasov has joined #heat | 07:24 | |
*** ttsiouts has joined #heat | 07:37 | |
*** e0ne has joined #heat | 07:57 | |
*** e0ne has quit IRC | 08:08 | |
*** tkajinam_ has quit IRC | 08:09 | |
*** mlycka has joined #heat | 08:26 | |
*** gfidente has joined #heat | 08:53 | |
*** e0ne has joined #heat | 09:03 | |
*** e0ne has quit IRC | 09:03 | |
*** e0ne has joined #heat | 09:07 | |
*** e0ne has quit IRC | 09:15 | |
*** rcernin has quit IRC | 09:16 | |
*** e0ne has joined #heat | 09:19 | |
*** e0ne has quit IRC | 09:21 | |
*** ricolin has quit IRC | 09:37 | |
*** e0ne has joined #heat | 09:39 | |
*** gfidente has quit IRC | 10:07 | |
*** ttsiouts has quit IRC | 10:13 | |
*** ttsiouts has joined #heat | 10:13 | |
*** maddtux has quit IRC | 10:17 | |
*** ttsiouts has quit IRC | 10:17 | |
*** gfidente has joined #heat | 11:01 | |
*** ttsiouts has joined #heat | 11:19 | |
*** ttsiouts has quit IRC | 11:23 | |
*** ttsiouts has joined #heat | 11:23 | |
*** SmearedBeard has joined #heat | 11:27 | |
*** ttsiouts has quit IRC | 11:47 | |
*** ttsiouts has joined #heat | 12:03 | |
*** SmearedBeard has quit IRC | 12:22 | |
*** SmearedBeard has joined #heat | 12:23 | |
*** SmearedBeard has quit IRC | 12:30 | |
*** SmearedBeard has joined #heat | 12:31 | |
*** e0ne has quit IRC | 12:44 | |
*** e0ne has joined #heat | 12:44 | |
*** SmearedBeard has quit IRC | 12:45 | |
*** jmlowe has quit IRC | 13:03 | |
*** jcoufal has joined #heat | 13:09 | |
*** jmlowe has joined #heat | 13:24 | |
*** jmlowe has quit IRC | 13:25 | |
*** skramaja has quit IRC | 13:33 | |
*** jmlowe has joined #heat | 13:36 | |
*** ricolin has joined #heat | 13:39 | |
*** k_mouza has joined #heat | 13:44 | |
*** happyhemant has quit IRC | 13:47 | |
*** tkajinam has joined #heat | 13:55 | |
*** mlycka has quit IRC | 14:06 | |
*** jmlowe has quit IRC | 15:01 | |
*** k_mouza has quit IRC | 15:02 | |
*** jmlowe has joined #heat | 15:05 | |
*** tkajinam has quit IRC | 15:06 | |
*** spsurya has quit IRC | 15:16 | |
*** ivve has quit IRC | 15:52 | |
*** ttsiouts has quit IRC | 16:01 | |
*** ttsiouts has joined #heat | 16:02 | |
*** ricolin has quit IRC | 16:03 | |
*** ricolin has joined #heat | 16:04 | |
*** ricolin has quit IRC | 16:05 | |
*** ttsiouts has quit IRC | 16:06 | |
*** e0ne has quit IRC | 16:08 | |
*** jmlowe has quit IRC | 16:15 | |
*** DinaBelova has quit IRC | 16:30 | |
*** DinaBelova has joined #heat | 16:39 | |
*** gfidente has quit IRC | 16:46 | |
*** jcoufal has quit IRC | 17:29 | |
*** e0ne has joined #heat | 17:29 | |
*** ivve has joined #heat | 17:31 | |
*** k_mouza has joined #heat | 17:44 | |
*** k_mouza has quit IRC | 17:48 | |
*** jmlowe has joined #heat | 18:40 | |
*** jcoufal has joined #heat | 19:03 | |
*** jcoufal has quit IRC | 19:36 | |
*** jtomasek has quit IRC | 19:58 | |
*** e0ne has quit IRC | 20:03 | |
*** e0ne has joined #heat | 20:37 | |
flwang | stevebaker: morning, just wanna to have a chat about the ignition issue | 21:22 |
stevebaker | flwang: hey | 21:22 |
*** ramishra has quit IRC | 21:23 | |
stevebaker | gregwork: do you know about http://yaqluator.com/ ? | 21:24 |
flwang | stevebaker: seems ignition team is not interested in support the mutli part mime. now i'm thinking if we can get heat support iginition by adding a new user-data-type like IGNITION around https://github.com/openstack/heat/blob/master/heat/engine/resources/openstack/nova/server.py#L129 | 21:24 |
*** zaneb has quit IRC | 21:25 | |
*** zaneb has joined #heat | 21:25 | |
*** e0ne has quit IRC | 21:32 | |
stevebaker | flwang: I have another idea. For user_data_type=SOFTWARE_CONFIG, when the userdata data is built, test the supplied userdata to see if it is ignition json. If it is, add the necessary ignition file writing to bootstrap software-config, otherwise do the current multipart-mime building. That change would happen here https://github.com/openstack/heat/blob/master/heat/engine/clients/os/nova.py#L381 | 21:37 |
flwang | stevebaker: yep, i think that also works, and will get smaller changes | 21:39 |
flwang | would you mind me proposing a patch? | 21:39 |
stevebaker | flwang: sure thing | 21:39 |
flwang | does heat team need a spec for this or a story on storyboard is good enough? | 21:40 |
stevebaker | flwang: maybe test for {"ignition": {"version": "*"}} | 21:41 |
stevebaker | flwang: I have no idea, I'm not a heat dev any more ;) | 21:41 |
flwang | stevebaker: yep, we can try to json.loads it and then check if it's matching the pattern we defined | 21:42 |
flwang | but i think that's a good idea with reasonable size | 21:42 |
stevebaker | sounds good | 21:42 |
flwang | thank you very much | 21:44 |
*** jcoufal has joined #heat | 21:51 | |
*** k_mouza has joined #heat | 22:01 | |
*** jcoufal has quit IRC | 22:06 | |
*** rcernin has joined #heat | 22:19 | |
*** ivve has quit IRC | 22:52 | |
*** tkajinam has joined #heat | 23:03 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!