Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vikas-m opened this issue Oct 20, 2016 · 4 comments
Open

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

vikas-m opened this issue Oct 20, 2016 · 4 comments

Comments

@vikas-m
Copy link

vikas-m commented Oct 20, 2016

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
Copy link

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 <[email protected]mailto:[email protected]> 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//issues/14, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFqKPrCHh0fHafKsW0xoQaTLwwOZrkVIks5q13iAgaJpZM4KcLyU.

@vikas-m
Copy link
Author

vikas-m commented Oct 26, 2016

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
Copy link
Author

vikas-m commented Oct 26, 2016

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
Copy link
Contributor

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 [email protected]
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//issues/14#issuecomment-256275122, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFwgvFfeJjrjfLx7LkTHXtTnxHuzRAJJks5q3wb5gaJpZM4KcLyU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants