ERROR: 'unicode' object has no attribute 'get' Heat
Dear all
am facing an issue with my heat template . while creating stack its throwing an exception( given in below) , also verified with heat template validate command and its validated successfully without any error
kindly advise me about this situation
ERROR: 'unicode' object has no attribute 'get'
heat_template_version: 2017-02-24
description: HOT Templates for SALIM lab cloud
parameters:
my_key:
type: string
label: my-prv
description: Key name for salim lab enviorment
win_image:
type: string
label: 2012 server
description: Windows image
centos_image:
type: string
label: centos 7 x86
description: centos 7 linux images
flavor_40G:
type: string
label: flavor-40G
default: flavor-40G
flavor_80G:
type: string
label: flavor-80G
default: flavor-80G
description: ORACLE and TOMCAT Server Flavour
pub_net:
type: string
label: oracle and tomcat
description: public network name
resources:
private_net:
type: OS::Neutron::Net
properties:
name: LAB-PRV-NET1
private_subnet:
type: OS::Neutron::Subnet
properties:
network_id: { get_resource: private_net }
cidr: 192.168.9.0/24
gateway_ip: 192.168.9.1
LAB_ROUTER1:
type: OS::Neutron::Router
properties:
external_gateway_info: { get_param: pub_net }
LAB_ROUTER1_INT:
type: OS::Neutron::RouterInterface
properties:
router_id: { get_resource: LAB_ROUTER1 }
subnet_id: { get_resource: private_subnet }
TOM1_Port1:
type: OS::Neutron::Port
properties:
network_id: { get_resource: private_net }
fixed_ips:
- subnet_id: { get_resource: private_subnet }
TOM2_Port1:
type: OS::Neutron::Port
properties:
network_id: { get_resource: private_net }
fixed_ips:
- subnet_id: { get_resource: private_subnet }
WIN_AD_Port1:
type: OS::Neutron::Port
properties:
network_id: { get_resource: private_net }
fixed_ips:
- subnet_id: { get_resource: private_subnet }
TOM1_FL_IP:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: pub_net }
port_id: { get_resource: TOM1_Port1 }
TOM2_FL_IP:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: pub_net}
port_id: { get_resource: TOM2_Port1 }
WIN_AD_FL_IP:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: pub_net }
port_id: { get_resource: WIN_AD_Port1 }
TOM1_SERVER1:
type: OS::Nova::Server
properties:
name: APP2
image: { get_param: centos_image }
flavor: { get_param: flavor_40G }
networks:
- port: { get_resource: tom1_Port1}
TOM2_SERVER1:
type: OS::Nova::Server
properties:
name: APP1
image: { get_param: centos_image }
flavor: {get_param: flavor-40G }
networks:
- port: {get_resource: TOM2_Port1 }
WIN-AD1:
type: OS::Nova::Server
properties:
name: win-AD
image: { get_param: win_image }
flavor: { get_param: flavor-40G }
networks:
- port: {get_resource: WIN_AD_Port1 }
outputs:
TOM1_PRV_IP:
description: Private ip For TOM1 Server
value: { get_attr: [TOM1_SERVER1, first_address] }
TOM2_PRV_IP:
description: Private ip FOR tom2 Server
value: { get_attr: [TOM2_SERVER1, first_address] }
WIN-AD_prv_IP:
description: Private iP FOR WIN AD Server
value: { get_attr: [WIN-AD1, first_address] }
TOM2_PUB_IP:
description: Public ip for APP
value: { get_attr: [TOM2_FL_IP, floating_ip_address] }
TOM1_PUB_IP:
description: Public IP FOR TOM1-SERVER
value: { get_attr: [TOM1_FL_IP, floating_ip_address] }
WIN_AD_PUB_IP:
description: Public ip for WIN Server
value: {get_attr: [WIN_AD_FL_IP, floating_ip_address] }
ERROR LOG details
2017-09-14 10:20:54.977 2735 INFO eventlet.wsgi.server [req-0e84ce74-a51e-45e1-9ebf-093b7022ad38 - admin - - -] 192.168.8.116 - - [14/Sep/2017 10:20:54] "POST /v1/139aa024373b4d4d99cf706508465f1a/validate HTTP/1.1" 200 767 0.389691
2017-09-14 10:25:48.389 2738 ERROR heat.common.wsgi [req-2fa7f6ca-812b-4fa1-8151-94d9a019900c - admin - - -] Unexpected error occurred serving API: 'unicode' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming
res = self.dispatcher.dispatch(message)
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 222, in dispatch
return self._do_dispatch(endpoint, method, ctxt, args)
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 192, in _do_dispatch
result = func(ctxt, **new_args)
File "/usr/lib/python2.7/dist-packages/osprofiler/profiler.py", line 153, in ...