OS::Heat::ResourceGroup - Nested Stack Issue

asked 2015-04-29 06:01:58 -0600

kevin_zhu gravatar image

updated 2015-04-29 11:41:14 -0600

I am using the Heat resource type 'OS::Heat::ResourceGroup' for horizental scalling test, and this resource is configured with a yaml file as the nested stack for its resource. When doing the stack preview check, i came across such issue below. In short, the error is:

ERROR: HT-64408AE Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.

I can guanrentee that my template and nested template are both well formated and my environment info is:

#

[root@CST1 init.d]# heat --version 0.2.10 [root@CST1 init.d]# heat-manage --version 2014.1.2.1

#

Could somebody help on that? Thanks a lot!

[Detail Log] ----> {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "HT-64408AE Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.", "traceback": "Traceback (most recent call last):\n\n File \"/usr/lib/python2.6/site-packages/heat/openstack/common/rpc/amqp.py\", line 462, in _process_data\n *args)\n\n File \"/usr/lib/python2.6/site-packages/heat/openstack/common/rpc/dispatcher.py\", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, *kwargs)\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/service.py\", line 65, in wrapped\n return func(self, ctx, args, *kwargs)\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/service.py\", line 481, in preview_stack\n return api.format_stack_preview(stack)\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/api.py\", line 147, in format_stack_preview\n fmt_resources = map(format_resource, stack.preview_resources())\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/parser.py\", line 418, in preview_resources\n for resource in self.resources.itervalues()]\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/stack_resource.py\", line 121, in preview\n return nested.preview_resources()\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/parser.py\", line 418, in preview_resources\n for resource in self.resources.itervalues()]\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/stack_resource.py\", line 104, in preview\n template = parser.Template(self.child_template())\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/resources/template_resource.py\", line 144, in child_template\n self._parsed_nested = template_format.parse(self.template_data())\n\n File \"/usr/lib/python2.6/site-packages/heat/engine/resources/template_resource.py\", line 170, in template_data\n 'exc': r_exc})\n\n File \"/usr/lib/python2.6/site-packages/heat/openstack/common/gettextutils.py\", line 198, in __mod__\n unicode_mod = super(Message, self).__mod__(params)\n\n File \"/usr/lib/python2.6/site-packages/heat/openstack/common/gettextutils.py\", line 275, in __str__\n raise UnicodeError(msg)\n\nUnicodeError: HT-64408AE Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.\n", "type": "UnicodeError"}, "title": "Bad Request"}

Traceback (most recent call last): File "/usr/bin/heat", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.6/site-packages/heatclient/shell.py ... (more)

edit retag flag offensive close merge delete