*** longkb has joined #heat | 00:51 | |
*** k_mouza has joined #heat | 01:12 | |
*** k_mouza has quit IRC | 01:17 | |
*** gmoro has quit IRC | 01:57 | |
*** hongbin has joined #heat | 02:29 | |
*** rcernin has quit IRC | 03:02 | |
*** bnemec has joined #heat | 03:05 | |
*** bnemec has quit IRC | 03:10 | |
*** rcernin has joined #heat | 03:28 | |
*** ramishra has joined #heat | 03:35 | |
*** hongbin has quit IRC | 03:57 | |
*** jtomasek has joined #heat | 06:19 | |
*** longkb has quit IRC | 06:22 | |
*** longkb has joined #heat | 06:23 | |
*** ricolin has joined #heat | 06:40 | |
*** rcernin has quit IRC | 07:07 | |
*** shardy has joined #heat | 07:23 | |
*** k_mouza has joined #heat | 07:42 | |
*** gmoro has joined #heat | 07:43 | |
*** k_mouza has quit IRC | 07:50 | |
*** skramaja has joined #heat | 07:57 | |
*** k_mouza has joined #heat | 08:11 | |
*** shardy has quit IRC | 08:18 | |
*** shardy has joined #heat | 08:26 | |
*** k_mouza has quit IRC | 08:26 | |
*** derekh has joined #heat | 08:39 | |
*** mattgo has joined #heat | 08:41 | |
*** skramaja_ has joined #heat | 08:45 | |
*** skramaja has quit IRC | 08:46 | |
*** sshnaidm_ has joined #heat | 08:59 | |
*** k_mouza has joined #heat | 09:01 | |
*** k_mouza has quit IRC | 09:06 | |
*** sshnaidm_ has quit IRC | 09:18 | |
*** gkadam has joined #heat | 09:21 | |
*** gkadam has quit IRC | 09:21 | |
*** sshnaidm has joined #heat | 10:06 | |
*** sshnaidm has quit IRC | 10:12 | |
*** openstackgerrit has joined #heat | 10:15 | |
openstackgerrit | YI-JIE,SYU proposed openstack/heat master: Change "services" to "service" https://review.openstack.org/611562 | 10:15 |
---|---|---|
*** gfidente has joined #heat | 10:22 | |
*** ricolin has quit IRC | 10:29 | |
*** sshnaidm has joined #heat | 10:58 | |
*** ricolin has joined #heat | 10:59 | |
*** mattgo has quit IRC | 11:15 | |
*** tobias-urdin has joined #heat | 11:19 | |
*** longkb has quit IRC | 11:19 | |
tobias-urdin | ricolin: how is the cfn support functionality wise? is there any plans on dropping cfn like cloudwatch was dropped? | 11:21 |
*** brtknr has joined #heat | 11:26 | |
* brtknr wonders why this channel isnt called #openstack-heat | 11:26 | |
brtknr | anyone there who can help me with list comprehension on heat hemplates? | 11:28 |
*** mattgo has joined #heat | 11:30 | |
brtknr | why does this syntax work `networks: { get_param: [ group_node_ports, {get_param: node_idx} ] }` | 11:34 |
brtknr | why does this syntax NOT work `networks: { get_param: [ group_node_ports, {get_param: node_idx} ] }` | 11:34 |
brtknr | and this DOES work: `networks: [ {port: { get_param: [ group_node_ports, {get_param: node_idx}, 0, port ] } } ]` | 11:35 |
brtknr | the only difference is the second wone simply gets the value of `port` from item 0 in the parent list and puts it back in the same structure | 11:37 |
brtknr | the error I get in the first case is ValueError: "''" is not a list/ | 11:37 |
*** strobelight has quit IRC | 11:39 | |
*** sshnaidm_ has joined #heat | 11:50 | |
*** sshnaidm has quit IRC | 11:53 | |
brtknr | im using HOT version pike | 12:04 |
brtknr | networks: | 12:04 |
brtknr | repeat: | 12:04 |
brtknr | for_each: | 12:04 |
brtknr | <%portdict%>: { get_param: [ group_node_ports, {get_param: node_idx} ] } | 12:04 |
brtknr | template: | 12:04 |
brtknr | <%portdict%> | 12:05 |
brtknr | i just tried this | 12:05 |
therve | brtknr: I think the for_each fails, not the get_param | 12:10 |
brtknr | i dont understand why | 12:12 |
brtknr | therve: ValueError: "{u'repeat': {u'for_each': {u'<%portdict%>': ''}}, u'template': u'<%portdict%>'}" is not a list | 12:12 |
brtknr | this is my new error | 12:12 |
therve | brtknr: What's your version? | 12:16 |
therve | tobias-urdin: I'd say it's here to stay, but it's mostly in maintenance mode. | 12:18 |
therve | We still don't have great alternative to signed urls | 12:19 |
tobias-urdin | therve: ok, thanks for the response! :) | 12:20 |
therve | Np | 12:20 |
ricolin | tobias-urdin, it's still functional IMO. there start to have voice out about whether or not we should drop cfn, we might have to check how's current service works without cfn. Or have to start move default from cfn to other stuff before we can start to discuss about dropping it | 12:20 |
tobias-urdin | i've had some issues running native heat only, first one is i have to fake heat_metadata_server_url config option, but also some users dont really understand why they cant use SoftwareDeployment for example | 12:22 |
tobias-urdin | so i'm thinking about just deploying it instead, even though i'd like heat native only | 12:22 |
ricolin | cfn signal is default for some services in heat, which means you have to specify to other signal in your template | 12:24 |
therve | tobias-urdin: You can use SoftwareDeployment without CFN? | 12:26 |
tobias-urdin | yeah, unfortunate for the customers using templates, but good that stuff like magnum etc are using native | 12:26 |
tobias-urdin | therve: *cant* | 12:27 |
therve | tobias-urdin: Why? | 12:27 |
brtknr | therve: pike | 12:27 |
tobias-urdin | File "/usr/lib/python2.7/site-packages/heat/engine/resources/signal_responder.py", line 151, in _get_ec2_signed_url | 12:27 |
tobias-urdin | which calls get_heat_cfn_url | 12:28 |
brtknr | therve: but I'm trying to run this on devstack master branch | 12:28 |
tobias-urdin | does a lookup against the endpoints and fails since there is no cfn endpoint | 12:28 |
therve | brtknr: OK I don't know then | 12:28 |
therve | tobias-urdin: Have you changed default_deployment_signal_transport ? | 12:28 |
brtknr | therve: :( | 12:29 |
therve | brtknr: Can you provide a small contained example? | 12:30 |
tobias-urdin | therve: oh no, thanks, i'll check it out | 12:33 |
therve | tobias-urdin: Note that there may still be an issue if users force usage of CFN | 12:34 |
therve | I don't think we have a nice way to "disable" it | 12:34 |
*** gkadam has joined #heat | 12:34 | |
therve | Same as zaqar or swift actually | 12:34 |
therve | But you can make it so that the default is correct at least | 12:34 |
ricolin | tobias-urdin, so as default_software_config_transport btw | 12:36 |
brtknr | therve: Hmm, I'll try | 12:50 |
*** strobelight has joined #heat | 12:57 | |
zaneb | tobias-urdin: heat-cfnclient is frozen in time, so I wouldn't recommend deploying cfn-only for that reason | 13:10 |
zaneb | the native client gives a much better experience and access to a much wider range of features | 13:10 |
*** jrist has quit IRC | 13:11 | |
*** jrist has joined #heat | 13:13 | |
tobias-urdin | zaneb: ack | 13:20 |
*** bnemec has joined #heat | 13:43 | |
brtknr | therve: how do i pass a list of dict as a default parameter? | 13:46 |
therve | brtknr: Just declare it in the template? | 13:46 |
brtknr | is this sensible: | 13:47 |
brtknr | networks: | 13:47 |
brtknr | type: json | 13:47 |
brtknr | label: networks | 13:47 |
brtknr | default: | 13:47 |
brtknr | - - port: x | 13:47 |
brtknr | - port: y | 13:47 |
brtknr | - - port: yy | 13:47 |
brtknr | therve: ^ | 13:47 |
brtknr | therve: sorry, heat newbie here | 13:48 |
therve | brtknr: I mean sure that looks like yaml. That's 2 nested lists though | 13:48 |
brtknr | therve: Yes its a list of list of dicts | 13:49 |
therve | OK then | 13:49 |
*** mchlumsky has joined #heat | 13:52 | |
zaneb | brtknr: does it fail in template-validate or when creating a stack? | 13:53 |
* zaneb is working on validation stuff at the moment | 13:53 | |
brtknr | zaneb:during validation | 13:54 |
brtknr | http://paste.openstack.org/show/732428/ | 13:55 |
brtknr | im trying to create a toy example that represents the real thing | 13:55 |
brtknr | but this is failing for a different reason | 13:55 |
*** mchlumsky has quit IRC | 13:57 | |
brtknr | sorry: this is the correct one http://paste.openstack.org/show/732429/ | 13:58 |
brtknr | i am not sure how to pass in a list of list an a parameter | 13:58 |
*** gkadam has quit IRC | 13:59 | |
brtknr | zaneb: not sure if json is the correct format | 13:59 |
*** mchlumsky has joined #heat | 13:59 | |
*** gkadam has joined #heat | 13:59 | |
zaneb | brtknr: I think json is what you want | 14:02 |
brtknr | zaneb: what then? | 14:03 |
zaneb | the template-validate call doesn't use parameter values (unlike the pre-flight validation that happens when you create a stack) | 14:03 |
openstackgerrit | Merged openstack/heat master: Change "services" to "service" https://review.openstack.org/611562 | 14:03 |
zaneb | so it may just not be able to tell that a list is going to appear there | 14:03 |
brtknr | zaneb: what would be the cause for ValueError: "{u'repeat': {u'for_each': {u'<%portdict%>': ''}}, u'template': u'<%portdict%>'}" is not a list | 14:04 |
brtknr | is this pre-flight validation or tempalte validation? | 14:04 |
zaneb | brtknr: that's what I asked you earlier :) | 14:04 |
brtknr | zaneb: how would you read the port value from this list of list? http://paste.openstack.org/show/732429/ | 14:15 |
brtknr | <%net%>.port doesnt seem to work | 14:16 |
brtknr | nor {get_param: [<%net%>, port]} | 14:16 |
brtknr | ERROR: Property error: : resources.my_server.properties.networks: : The Parameter (<%net%>) was not provided. | 14:18 |
brtknr | which makes sense | 14:18 |
brtknr | so how to you plug <%net%> as a param to get_params? | 14:18 |
*** gkadam_ has joined #heat | 14:33 | |
*** gkadam has quit IRC | 14:35 | |
zaneb | brtknr: I would have done what you did in that paste | 14:55 |
*** jmlowe has quit IRC | 14:57 | |
zaneb | brtknr: you might have more luck with http://paste.openstack.org/show/732435/ | 15:05 |
*** skramaja_ has quit IRC | 15:28 | |
*** gkadam_ has quit IRC | 15:38 | |
*** mattgo has quit IRC | 15:52 | |
*** sshnaidm_ is now known as sshnaidm | 16:14 | |
*** ricolin has quit IRC | 16:25 | |
zaneb | actually I missed the .port part in there | 16:35 |
zaneb | so "$.data[0].select({'network' => $.port})" | 16:36 |
zaneb | brtknr: ^ | 16:37 |
*** shardy has quit IRC | 16:43 | |
*** derekh has quit IRC | 16:54 | |
*** ramishra has quit IRC | 17:11 | |
openstackgerrit | Zane Bitter proposed openstack/heat master: Use OutputDefinition to generate attributes schema https://review.openstack.org/610103 | 17:21 |
openstackgerrit | Zane Bitter proposed openstack/heat master: Ensure Functions can be created without stack definition https://review.openstack.org/611680 | 17:21 |
brtknr | zaneb: didn't work :( | 17:22 |
brtknr | https://github.com/stackhpc/ansible-role-cluster-infra/blob/748e3fd50989823753e0ec069be054a2b6553425/files/resources/instance.yaml#L77 | 17:23 |
brtknr | for your ref, this is what im trying to content with ^^ | 17:23 |
openstackgerrit | Zane Bitter proposed openstack/heat master: Revert "Change "services" to "service"" https://review.openstack.org/611682 | 17:23 |
brtknr | zaneb: my head hurts | 17:23 |
zaneb | brtknr: what does the data for group_node_ports look like? | 17:25 |
brtknr | its a list of list of dicts like in the example i showed you earlier | 17:26 |
zaneb | ok | 17:27 |
brtknr | [stack@bharat-devstack p3-appliances]$ openstack stack update -t ansible/roles/stackhpc.cluster-infra/files/resources/cluster-infra.yaml -e env2.yml bharat | 17:27 |
brtknr | ERROR: ValueError: : resources.cluster_group<nested_stack>.resources.0<file:///opt/stack/p3-appliances/ansible/roles/stackhpc.cluster-infra/files/resources/cluster-group.yaml>.resources.node_group<nested_stack>.resources.0<file:///opt/stack/p3-appliances/ansible/roles/stackhpc.cluster-infra/files/resources/instance.yaml>.resources.instance: : No function "#indexer" matches supplied arguments | 17:27 |
brtknr | this is what i get back when i apply your suggestion | 17:27 |
zaneb | let me play around with some yaql stuff | 17:28 |
zaneb | brtknr: "$.data != '' and $.data[0].select({'network' => $.port}) or []" | 17:35 |
*** gfidente is now known as gfidente|afk | 18:04 | |
brtknr | It looks like it’s working but I need to check if it’s really working! | 19:07 |
brtknr | Will come back to you! | 19:07 |
brtknr | Thanks for sticking around and helping! | 19:07 |
brtknr | I’m on a train with lots of tunnels so connection is bad! | 19:07 |
openstackgerrit | Merged openstack/heat master: Revert "Change "services" to "service"" https://review.openstack.org/611682 | 19:21 |
*** gfidente|afk is now known as gfidente | 19:55 | |
*** gfidente has quit IRC | 20:21 | |
*** zaneb has quit IRC | 20:31 | |
*** openstackgerrit has quit IRC | 20:36 | |
*** zaneb has joined #heat | 20:54 | |
*** openstackgerrit has joined #heat | 21:00 | |
openstackgerrit | Zane Bitter proposed openstack/heat master: Ensure Functions can be created without stack definition https://review.openstack.org/611680 | 21:00 |
openstackgerrit | Zane Bitter proposed openstack/heat master: Use OutputDefinition to generate attributes schema https://review.openstack.org/610103 | 21:00 |
*** zaneb has quit IRC | 21:11 | |
*** bnemec is now known as bnemec-bbl | 21:20 | |
*** strobelight has quit IRC | 21:39 | |
*** mchlumsky has quit IRC | 22:21 | |
*** rcernin has joined #heat | 22:33 | |
*** pbourke has quit IRC | 22:35 | |
*** pbourke has joined #heat | 22:36 | |
*** zaneb has joined #heat | 23:24 | |
*** bnemec has joined #heat | 23:50 | |
*** bnemec-bbl has quit IRC | 23:52 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!