Comment 2 for bug 1240289

Revision history for this message
Angus Salkeld (asalkeld) wrote :

Some more debug:

heat -d create wp-url -u https://raw.github.com/openstack/heat-templates/master/cfn/F17/WordPress_Single_Instance.template -P "KeyName=dropbear_angus;InstanceType=m1.tiny"
curl -i -X POST -H 'X-Auth-Key: menticaquaci' -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'X-Auth-Url: http://openstack-controller-vip.eng.bne.redhat.com:5000/v2.0' -H 'X-Auth-User: asalkeld' -H 'User-Agent: python-heatclient' -d '{"stack_name": "wp-url", "disable_rollback": true, "template_url": "https://raw.github.com/openstack/heat-templates/master/cfn/F17/WordPress_Single_Instance.template", "parameters": {"KeyName": "dropbear_angus", "InstanceType": "m1.tiny"}, "timeout_mins": 60}' http://192.168.1.101:8004/v1/1027066049c049beb2422586d1959d1b/stacks
DEBUG (http:114) curl -i -X POST -H 'X-Auth-Key: menticaquaci' -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'X-Auth-Url: http://openstack-controller-vip.eng.bne.redhat.com:5000/v2.0' -H 'X-Auth-User: asalkeld' -H 'User-Agent: python-heatclient' -d '{"stack_name": "wp-url", "disable_rollback": true, "template_url": "https://raw.github.com/openstack/heat-templates/master/cfn/F17/WordPress_Single_Instance.template", "parameters": {"KeyName": "dropbear_angus", "InstanceType": "m1.tiny"}, "timeout_mins": 60}' http://192.168.1.101:8004/v1/1027066049c049beb2422586d1959d1b/stacks

HTTP/1.1 500 Internal Server Error
date: Thu, 17 Oct 2013 04:59:46 GMT
content-length: 243
content-type: application/json; charset=UTF-8

{"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "", "traceback": " in \"<string>\", position 1", "type": "ReaderError"}, "title": "Internal Server Error"}

DEBUG (http:124)
HTTP/1.1 500 Internal Server Error
date: Thu, 17 Oct 2013 04:59:46 GMT
content-length: 243
content-type: application/json; charset=UTF-8

{"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "", "traceback": " in \"<string>\", position 1", "type": "ReaderError"}, "title": "Internal Server Error"}

ERROR:

(no error message above)

-----------------------------------------------------------------------------------------------------------
2013-10-17 15:59:46.041 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTPS connection (1): raw.github.com
2013-10-17 15:59:46.980 DEBUG requests.packages.urllib3.connectionpool [-] "GET /openstack/heat-templates/master/cfn/F17/WordPress_Single_Instance.template HTTP/1.1" 200 1706 from (pid=2955) _make_request /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:289
2013-10-17 15:59:46.982 ERROR root [-] Unexpected error occurred serving API: 'utf8' codec can't decode byte #x8b: invalid start byte
  in "<string>", position 1
2013-10-17 15:59:46.982 TRACE root Traceback (most recent call last):
2013-10-17 15:59:46.982 TRACE root File "/home/asalkeld/work/heat/heat/common/wsgi.py", line 661, in __call__
2013-10-17 15:59:46.982 TRACE root request, **action_args)
2013-10-17 15:59:46.982 TRACE root File "/home/asalkeld/work/heat/heat/common/wsgi.py", line 729, in dispatch
2013-10-17 15:59:46.982 TRACE root return method(*args, **kwargs)
2013-10-17 15:59:46.982 TRACE root File "/home/asalkeld/work/heat/heat/api/openstack/v1/util.py", line 30, in handle_stack_method
2013-10-17 15:59:46.982 TRACE root return handler(controller, req, **kwargs)
2013-10-17 15:59:46.982 TRACE root File "/home/asalkeld/work/heat/heat/api/openstack/v1/stacks.py", line 219, in create
2013-10-17 15:59:46.982 TRACE root data.template(),
2013-10-17 15:59:46.982 TRACE root File "/home/asalkeld/work/heat/heat/api/openstack/v1/stacks.py", line 107, in template
2013-10-17 15:59:46.982 TRACE root return self.format_parse(template_data, 'Template')
2013-10-17 15:59:46.982 TRACE root File "/home/asalkeld/work/heat/heat/api/openstack/v1/stacks.py", line 73, in format_parse
2013-10-17 15:59:46.982 TRACE root return template_format.parse(data)
2013-10-17 15:59:46.982 TRACE root File "/home/asalkeld/work/heat/heat/common/template_format.py", line 68, in parse
2013-10-17 15:59:46.982 TRACE root tpl = yaml.load(tmpl_str, Loader=yaml_loader)
2013-10-17 15:59:46.982 TRACE root File "/usr/lib64/python2.7/site-packages/yaml/__init__.py", line 69, in load
2013-10-17 15:59:46.982 TRACE root loader = Loader(stream)
2013-10-17 15:59:46.982 TRACE root File "/usr/lib64/python2.7/site-packages/yaml/loader.py", line 24, in __init__
2013-10-17 15:59:46.982 TRACE root Reader.__init__(self, stream)
2013-10-17 15:59:46.982 TRACE root File "/usr/lib64/python2.7/site-packages/yaml/reader.py", line 79, in __init__
2013-10-17 15:59:46.982 TRACE root self.determine_encoding()
2013-10-17 15:59:46.982 TRACE root File "/usr/lib64/python2.7/site-packages/yaml/reader.py", line 135, in determine_encoding
2013-10-17 15:59:46.982 TRACE root self.update(1)
2013-10-17 15:59:46.982 TRACE root File "/usr/lib64/python2.7/site-packages/yaml/reader.py", line 165, in update
2013-10-17 15:59:46.982 TRACE root exc.encoding, exc.reason)
2013-10-17 15:59:46.982 TRACE root ReaderError: 'utf8' codec can't decode byte #x8b: invalid start byte
2013-10-17 15:59:46.982 TRACE root in "<string>", position 1
2013-10-17 15:59:46.982 TRACE root
2013-10-17 15:59:46.983 DEBUG root [-] JSON response : {"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "", "traceback": " in \"<string>\", position 1", "type": "ReaderError"}, "title": "Internal Server Error"} from (pid=2955) to_json /home/asalkeld/work/heat/heat/common/wsgi.py:562