Juniper / contrail-heat

Openstack heat plugin and resources
Apache License 2.0
12 stars 33 forks source link

heat template - "is not map" error in - contrail-heat 3.0.0.0 #14

Open vikas-m opened 8 years ago

vikas-m commented 8 years ago

Hi Praneet I am trying to create the stack using new template yaml file and env files but almost for every new template it is showing below error.

root@contrailcontroller:~/heat_template# heat stack-create svc2-instance1 -f 2svc_1instance.yaml -e 2svc_1instance.env ERROR: Property error: : resources.template_VirtualNetwork_1.properties.network_ipam_refs_data: : "[{u'network_ipam_refs_data_ipam_subnets': [{u'network_ipam_refs_data_ipam_subnets_subnet': {u'network_ipam_refs_data_ipam_subnets_subnet_ip_prefix': u'1.1.1.0', u'network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len': 24}, u'network_ipam_refs_data_ipam_subnets_addr_from_start': True}]}]" is not a map root@contrailcontroller:~/heat_template#

I changed parameters in env file but it was same error , I also tries other new-templates why is it showing - "is not map" error

I am using contrail-version 3.0.0

root@contrailcontroller:~/heat_template# contrail-version | grep -i heat contrail-heat 3.0.0.0-2725 2725

Please help to resolve the error

praneetb commented 8 years ago

Vikas, you are using a pretty old contrail image. In your template remove the […] from the network_ipam_refs and network_ipam_refs_data.

On Oct 20, 2016, at 7:19 AM, vikas-m notifications@github.com<mailto:notifications@github.com> wrote:

Hi Praneet I am trying to create the stack using new template yaml file and env files but almost for every new template it is showing below error.

root@contrailcontroller:~/heat_template# heat stack-create svc2-instance1 -f 2svc_1instance.yaml -e 2svc_1instance.env ERROR: Property error: : resources.template_VirtualNetwork_1.properties.network_ipam_refs_data: : "[{u'network_ipam_refs_data_ipam_subnets': [{u'network_ipam_refs_data_ipam_subnets_subnet': {u'network_ipam_refs_data_ipam_subnets_subnet_ip_prefix': u'1.1.1.0', u'network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len': 24}, u'network_ipam_refs_data_ipam_subnets_addr_from_start': True}]}]" is not a map root@contrailcontroller:~/heat_template#

I changed parameters in env file but it was same error , I also tries other new-templates why is it showing - "is not map" error

I am using contrail-version 3.0.0

root@contrailcontroller:~/heat_template# contrail-version | grep -i heat contrail-heat 3.0.0.0-2725 2725

Please help to resolve the error

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Juniper/contrail-heat/issues/14, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFqKPrCHh0fHafKsW0xoQaTLwwOZrkVIks5q13iAgaJpZM4KcLyU.

vikas-m commented 8 years ago

Hi Praneet Thanks for your reply I am getting another error now root@contrailcontroller:~/heat_template# heat stack-create new_vm1 -f virtual_network_with_subnet.yaml -e virtual_network_with_subnet.env ERROR: Property error: : resources.template_VirtualNetwork_1.properties.network_ipam_refs_data.network_ipam_refs_data_ipam_subnets: : "{u'network_ipam_refs_data_ipam_subnets_subnet': {u'network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len': 24, u'network_ipam_refs_data_ipam_subnets_subnet_ip_prefix': u'10.1.1.0'}}" is not a list

Please advice for this.

vikas-m commented 8 years ago

Praneet

I have updated like below and it is working now - stack and virtual network was created .

network_ipam_refs: { get_resource: template_NetworkIpam_1 } network_ipam_refs_data: { network_ipam_refs_data_ipam_subnets: [ { network_ipam_refs_data_ipam_subnets_subnet: { network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: { get_param: private_net_1_prefix }, network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: { get_param: private_net_1_prefix_len }, }, }] }

Thanks very much for you help.

ganeshahv commented 8 years ago

Hi Vikas,

Can you enclose resources.template_VirtualNetwork_1.properties.network_ipam_refs_data.network_ipam_refs_data_ipam_subnets within [] and try?

Thanks & Regards, Ganesha HV. "To be conscious that you're ignorant, is a great step to success" - Dr.Kalam


From: vikas-m notifications@github.com Sent: Wednesday, October 26, 2016 1:23:29 PM To: Juniper/contrail-heat Subject: Re: [Juniper/contrail-heat] heat template - "is not map" error in - contrail-heat 3.0.0.0 (#14)

Hi Praneet Thanks for your reply I am getting another error now root@contrailcontroller:~/heat_template# heat stack-create new_vm1 -f virtual_network_with_subnet.yaml -e virtual_network_with_subnet.env ERROR: Property error: : resources.template_VirtualNetwork_1.properties.network_ipam_refs_data.network_ipam_refs_data_ipam_subnets: : "{u'network_ipam_refs_data_ipam_subnets_subnet': {u'network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len': 24, u'network_ipam_refs_data_ipam_subnets_subnet_ip_prefix': u'10.1.1.0'}}" is not a list

Please advice for this.

You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Juniper/contrail-heat/issues/14#issuecomment-256275122, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFwgvFfeJjrjfLx7LkTHXtTnxHuzRAJJks5q3wb5gaJpZM4KcLyU.