Topology
========
env.roledefs = {
'all': [host1, host2, host3,host4, host5,host6],
'cfgm': [host1,host2,host3],
'webui': [host1],
'openstack': [host1],
'control': [host2, host3],
'collector': [host1],
'database': [host1],
'compute': [host4, host5,host6],
'build': [host_build]
}
env.hostnames = {
'all': ['nodeg25', 'nodeg26', 'nodeg27', 'nodek8', 'nodek9', 'nodek10']
}
I see that the heat.conf points to the old resources file as well:
[DEFAULT]
sql_connection = mysql://heat:c0ntrail123@127.0.0.1/heat
rpc_backend = heat.openstack.common.rpc.impl_kombu
rabbit_host = 192.168.200.25
rabbit_port = 5672
plugin_dirs = /usr/lib/python2.7/dist-packages/vnc_api/gen/heat/resources,/usr/lib/python2.7/dist-packages/contrail_heat/resources
heat_waitcondition_server_url = http://192.168.200.25:8000/v1/waitcondition
But launching a v1 stack is failing with this error:
root@nodeg25:~/v1# heat -d stack-create -f service_template.yaml -e service_template.env v1
DEBUG (session) REQ: curl -g -i -X GET http://192.168.200.25:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool) Starting new HTTP connection (1): 192.168.200.25
DEBUG (connectionpool) "GET /v2.0/ HTTP/1.1" 200 340
DEBUG (session) RESP: [200] Content-Length: 340 Vary: X-Auth-Token X-Distribution: Ubuntu Connection: keep-alive Date: Wed, 11 May 2016 12:39:19 GMT Content-Type: application/json X-Openstack-Request-Id: req-b69ffb3c-f2b4-4408-975f-ebdb8a801f0b
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.200.25:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
DEBUG (v2) Making authentication request to http://192.168.200.25:5000/v2.0/tokens
DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 3524
DEBUG (session) REQ: curl -g -i -X POST http://192.168.200.25:8004/v1/27268ad4cd5946a485dade49710c1391/stacks -H "User-Agent: python-heatclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}228cbb7db1fa947fecf303e7a371ee2ee7a7ca21" -d '{"files": {}, "disable_rollback": true, "parameters": {}, "stack_name": "v1", "environment": {"parameters": {"scaling": "True", "name": "contrail_svc_temp1", "availability_zone": "True", "service_interface_type_list": "management,left,right", "image": "ubuntu", "static_routes_list": "False,False,False", "ordered_interfaces": "True", "mode": "transparent", "flavor": "m1.medium", "type": "firewall", "shared_ip_list": "False,False,False"}}, "template": {"outputs": {"service_template_fq_name": {"description": "FQ name of the service template", "value": {"get_attr": ["service_template", "fq_name"]}}}, "heat_template_version": "2013-05-23", "description": "HOT template to create a service template \n", "parameters": {"static_routes_list": {"type": "string", "description": "List of static routes enabled-disabled"}, "name": {"type": "string", "description": "Name of service template"}, "availability_zone": {"type": "string", "description": "Indicates availability zone is enabled"}, "service_interface_type_list": {"type": "string", "description": "List of interface types"}, "image": {"type": "string", "description": "Name of the image"}, "scaling": {"type": "string", "description": "Indicates whether service scaling is enabled"}, "ordered_interfaces": {"type": "string", "description": "Indicates service interfaces are ordered"}, "mode": {"type": "string", "description": "service mode"}, "flavor": {"type": "string", "description": "Flavor"}, "type": {"type": "string", "description": "service type"}, "shared_ip_list": {"type": "string", "description": "List of shared ip enabled-disabled"}}, "resources": {"service_template": {"type": "OS::Contrail::ServiceTemplate", "properties": {"name": {"get_param": "name"}, "service_mode": {"get_param": "mode"}, "availability_zone_enable": {"get_param": "availability_zone"}, "image_name": {"get_param": "image"}, "static_routes_list": {"Fn::Split": [",", {"Ref": "static_routes_list"}]}, "service_interface_type_list": {"Fn::Split": [",", {"Ref": "service_interface_type_list"}]}, "service_type": {"get_param": "type"}, "flavor": {"get_param": "flavor"}, "service_scaling": {"get_param": "scaling"}, "shared_ip_list": {"Fn::Split": [",", {"Ref": "shared_ip_list"}]}, "ordered_interfaces": {"get_param": "ordered_interfaces"}}}}}}'
INFO (connectionpool) Starting new HTTP connection (1): 192.168.200.25
DEBUG (connectionpool) "POST /v1/27268ad4cd5946a485dade49710c1391/stacks HTTP/1.1" 500 256
DEBUG (session) RESP: [500] Date: Wed, 11 May 2016 12:39:20 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 256 X-Openstack-Request-Id: req-f13164b1-0732-492f-984f-67d46000d3fb
RESP BODY: {"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "Old attribute schema is not supported", "traceback": null, "type": "AssertionError"}, "title": "Internal Server Error"}
Traceback (most recent call last):
File "/usr/bin/heat", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/heatclient/shell.py", line 705, in main
HeatShell().main(args)
File "/usr/lib/python2.7/dist-packages/heatclient/shell.py", line 655, in main
args.func(client, args)
File "/usr/lib/python2.7/dist-packages/heatclient/v1/shell.py", line 140, in do_stack_create
hc.stacks.create(**fields)
File "/usr/lib/python2.7/dist-packages/heatclient/v1/stacks.py", line 136, in create
data=kwargs, headers=headers)
File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 176, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 317, in request
raise exc.from_response(resp)
heatclient.exc.HTTPInternalServerError: ERROR: Old attribute schema is not supported
commit f7ddb874f21ef6c 9b4f10c308b96f1 8294a9adf6
Author: Praneet Bachheti <email address hidden>
Date: Tue Mar 22 14:30:58 2016 -0700
In Liberty, we have to use attributes.Schema
instead of <name>: <description>
Change-Id: I27742285a30466 bd0a86de9540d96 e4cb6f819c2
Closes-Bug: 1560690