vcenter as compute: ContrailUI reports VM name as uuid

Bug #1559387 reported by Sachchidanand Vaidya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
Medium
Andra Cismaru
Trunk
Fix Committed
Medium
Andra Cismaru

Bug Description

In vCenter-as-Compute case, Contrail WebUI displays VMs spawned on vCenter with name as UUID instead of display-name.

Tags: vmware
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] contrail/kilo-2015.1.2

Review in progress for https://review.opencontrail.org/18553
Submitter: Sachchidanand Vaidya (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] contrail/juno_2014_2_3

Review in progress for https://review.opencontrail.org/18554
Submitter: Sachchidanand Vaidya (<email address hidden>)

Revision history for this message
Sachchidanand Vaidya (vaidyasd) wrote :

Pls do the need changes in plugin.

Changed in juniperopenstack:
assignee: Sachchidanand Vaidya (vaidyasd) → Andra Cismaru (andra)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/18553
Committed: http://github.org/Juniper/nova/commit/986096cb76616b393afce1314c3b4f06ba4f2ede
Submitter: Zuul
Branch: contrail/kilo-2015.1.2

commit 986096cb76616b393afce1314c3b4f06ba4f2ede
Author: Sachchidanand Vaidya <email address hidden>
Date: Fri Mar 18 21:48:48 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: I957d9f888e1f10603f71185f5c9dd6e2098f7d21

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

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

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/18796
Submitter: Andra Cismaru (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/18796
Committed: http://github.org/Juniper/contrail-vcenter-plugin/commit/4c602db00d081e96281350f0cfbe4dec50204481
Submitter: Zuul
Branch: R3.0

commit 4c602db00d081e96281350f0cfbe4dec50204481
Author: Andra Cismaru <email address hidden>
Date: Fri Mar 25 18:40:12 2016 -0700

vcenter as compute: ContrailUI reports VM name as uuid
Closes-Bug: #1559387

Change-Id: Ia237fedfc528121891329b284ab933d12718a5ac

Changed in juniperopenstack:
importance: Undecided → Medium
milestone: r3.0.1.0 → none
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/19940
Submitter: Andra Cismaru (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/19940
Committed: http://github.org/Juniper/contrail-vcenter-plugin/commit/7977cc17f0036168d441248dfe1a11d40790ad13
Submitter: Zuul
Branch: master

commit 7977cc17f0036168d441248dfe1a11d40790ad13
Author: Andra Cismaru <email address hidden>
Date: Fri Mar 25 18:40:12 2016 -0700

vcenter as compute: ContrailUI reports VM name as uuid
Closes-Bug: #1559387

Change-Id: Ia237fedfc528121891329b284ab933d12718a5ac

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.