Comment 5 for bug 1559387

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/18554
Committed: http://github.org/Juniper/nova/commit/d9332a27b5c783a58d8822f6dcb573199c4c08ce
Submitter: Zuul
Branch: contrail/juno_2014_2_3

commit d9332a27b5c783a58d8822f6dcb573199c4c08ce
Author: Sachchidanand Vaidya <email address hidden>
Date: Fri Mar 18 22:02:29 2016 -0700

Since vCenter doesn't allow to create VMs with same name, vcenter
nova-compute driver uses uuid as vm-name (to provide unique name).
When openStack creates VM on Contrail ApiServer, it sets display_name to UUID.
When vCenterPlugin does AddPort to vRouterAgent, it needs to passes
vm-name as uuid and that's what shows up Contrail WebUI.

Solution is for vcnetr nova-compute driver to set annotation field in
VM config to VM-name while creating VM.
Contrail vcenter-plugin will read annotation field if VM's name is it's
uuid and use it during AddPort.

Partial-Bug: #1559387

Change-Id: I6d465d35a49c29fab32971688ce88a94589c9987