change-migrate network port on vm

asked 2017-06-05 10:03:35 -0500

Michail Smirnov gravatar image

Hello,

I tried to migrate/change network port via Heat template, but When I tried to change network port I've received an issue

"HT-5DEAEB8 ClientException: resources.VM1: NV-1BE1302 Failed to attach interface"

    heat_template_version: 2017-06-05

description: >
  HEAT Openstack Default__admin__neutron_nxtest1

resources:
  VM1:
    type: OS::Nova::Server
    properties:
      networks:
          - port: { get_resource: VM1_NIC1  }
      name: 'nxtest1'
      image: 'centos6'
      flavor: '201'
      availability_zone: nova1

  VM1_NIC1:
    type: OS::Neutron::Port
    properties:
      network: 'srcPG'

This Heat template above successfully ran.

    heat_template_version: 2017-06-05

description: >
  HEAT Openstack Default__admin__neutron_nxtest

resources:
  VM1:
    type: OS::Nova::Server
    properties:
      networks:
          - port: { get_resource: VM1_NIC1  }
      name: 'nxtest1'
      image: 'centos6'
      flavor: '201'
      availability_zone: nova1

  VM1_NIC1:
    type: OS::Neutron::Port
    properties:
      network: 'dstPG'

But this one didn't work.

I'm using Openstack Kilo with VMware, and as network adapters using Distributed Port Groups.

How can I solve this issue?

Thanks.

edit retag flag offensive close merge delete