Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

unable to create multiple interfaces from one VM attached to the same network

I am using HEAT orchestrator to create a deployment. one of configuration requires creating 2 ports on single VM connecting to same network. 1. creating network net1 2. Create VM with 2ports. VM.port0 = Net1 VM.port1= Net1

server1:

type: OS::Nova::Server
properties:
  name: Server1
  image: { get_param: image }
  flavor: { get_param: flavor }
  key_name: { get_param: key_name }
  networks:
    - port: { get_resource: server1_port0 }
    - port: { get_resource: server1_port1}

server1_port0:

type: OS::Neutron::Port
properties:
  network_id: { get_resource: private_net }
  fixed_ips:
    - subnet_id: { get_resource: private_subnet }

server1_port1:

type: OS::Neutron::Port
properties:
  network_id: { get_resource: private_net }
  fixed_ips:
    - subnet_id: { get_resource: private_subnet }

I get an error saying : Duplicate Port/Network, VM creation failed.

My question is: why nova doesn't allow creating multiple ports attached to same network. same problem is described in

http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/nfv-multiple-if-1-net.html fix is also propsed : https://review.openstack.org/#/c/26370

Work around is to hot plug the port after VM creation. But I want the deployment to be created using HEAT without manually adding the port from cmd line.