LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-25-2020, 07:48 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
[DevStack] ERROR: Duplicate names {'internal_net2'}


Hi all,
Im trying to deploy stack with 3 VMs and 1 VN/Subnet.
My problem is that when I deploy it over following HOT package/template it complains:
Code:
stack@vlab:~$ openstack stack create -t HOT_test_net.yaml HOT_test_net
ERROR: Duplicate names {'internal_net2'}
Then, when I remove following part:
Code:
  internal_net2:
    type: string
    default: "InternalNetwork"
Then I get this error but as far as I can say VM-3_port1 does have internal_net2 provided/assigned.
Code:
stack@vlab:~$ openstack stack create -t HOT_test_net.yaml HOT_test_net
ERROR: Property error: : resources.VM-3_port1.properties.network: : The Parameter (internal_net2) was not provided.
Can anyone help here, please?

Code:
heat_template_version: 2014-10-16

description: HOT template for ECO instance

parameters:
  VM_flavor:
    type: string
    default: "rr1.small"

  VM_image:
    type: string
    default: "cirros-0.4.0-x86_64-disk"

  VM_availability_zone:
    type: string
    default: "RX-1"

  VM_nodename1:
    type: string
    default: "VM_1"

  VM_nodename2:
    type: string
    default: "VM_2"

  VM_nodename3:
    type: string
    default: "VM_3"

  internal_net2:
    type: string
    default: "InternalNetwork"
  VM_node1_IP_int:
    type: string
    default: "192.168.50.6"

  VM_node2_IP_int:
    type: string
    default: "192.168.50.7"

  VM_node3_IP_int:
    type: string
    default: "192.168.50.8"

resources:
  internal_net2:
    type: OS::Neutron::Net
    properties:
      admin_state_up: true
      name: internal_net2
  internal_net2_subnet:
    type: OS::Neutron::Subnet
    properties:
      network: { get_resource: internal_net2 }
      cidr: "192.168.50.0/24"
      dns_nameservers: ["8.8.8.8"]
      gateway_ip: "192.168.50.1"
      ip_version: 4
  VM-1_port1:
    type: OS::Neutron::Port
    properties:
      name: Port_VM-1
      network: { get_param: internal_net2 }
      fixed_ips:
        - ip_address: { get_param: VM_node1_IP_int }
   
  VM-2_port1:
    type: OS::Neutron::Port
    properties:
      name: Port_VM-2
      network: { get_param: internal_net2 }
      fixed_ips:
        - ip_address: { get_param: VM_node2_IP_int }
   
  VM-3_port1:
    type: OS::Neutron::Port
    properties:
      name: Port_VM-3
      network: { get_param: internal_net2 }
      fixed_ips:
        - ip_address: { get_param: VM_node3_IP_int }
    
  VM-1:
    type: OS::Nova::Server
    properties:
      config_drive: "true"
      name: { get_param: VM_nodename1 }
      flavor: { get_param: VM_flavor }
      image: { get_param: VM_image }
      availability_zone: { get_param: VM_availability_zone }
      networks:
        - port: { get_resource: VM-1_port1 }

  VM-2:
    type: OS::Nova::Server
    properties:
      config_drive: "true"
      name: { get_param: VM_nodename2 }
      flavor: { get_param: VM_flavor }
      image: { get_param: VM_image }
      availability_zone: { get_param: VM_availability_zone }
      networks:
       - port: { get_resource: VM-2_port1 }

  VM-3:
    type: OS::Nova::Server
    properties:
      config_drive: "true"
      name: { get_param: VM_nodename3 }
      flavor: { get_param: VM_flavor }
      image: { get_param: VM_image }
      availability_zone: { get_param: VM_availability_zone }
      networks:
       - port: { get_resource: VM-3_port1 }

Last edited by czezz; 06-30-2020 at 06:40 AM.
 
Old 06-25-2020, 09:20 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I can't try this out right now, but here are two comments.
Run openstack stack validate to see if the error refers to an inconsistency in the template or is caused by inconsistencies between template and the cloud.
You use the string "internal_net2" at least three times in the template. Use different strings to make is less confusing and to understand which of the strings causes the error.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Devstack/Openstack] Glance - The client is assumed to be in error. (HTTP 400) czezz Linux - Virtualization and Cloud 5 11-29-2019 03:47 PM
Openstack/Devstack: console "Error code explanation: 404 = Nothing matches the given URI" czezz Linux - Virtualization and Cloud 39 11-17-2019 04:04 AM
Error installing devStack [[ -v "$1" ]] -> [conditional binary operator expected] raahool_16 CentOS 2 02-18-2016 10:09 PM
LXer: DevStack Ceph, OpenStack Paris Summit voting, and more LXer Syndicated Linux News 0 08-04-2014 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration