instance_template_name does not work for vmware driver

Bug #1379682 reported by zhu zhu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Hiroki Aramaki
openstack-manuals
Fix Released
Undecided
Hiroki Aramaki

Bug Description

Currently vmware driver will adopt uuid for instance names. This will lead two problems:

1) instance name template will not apply for vmware driver. But it will display instance name with nova show command. It will be misleading.

[root@cmwo cmwo]# nova show temp-vm-host1-99
+--------------------------------------+-----------------------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | cluster01 |
| OS-EXT-SRV-ATTR:host | vcenter-cluster01 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | domain-c129(cluster01) |
| OS-EXT-SRV-ATTR:instance_name | instance-000000ec |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2014-10-09T10:02:15.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2014-10-09T09:59:15Z |
| demovlan network | 25.0.0.21 |
| flavor | m1.tiny (1) |
| hostId | 0cfba386e1e5cad832d2fbc316c33ca6a124c3d0b386127a55707070 |
| id | 6d3e0f11-0a4c-46eb-a3a6-4e397d917228 |

2) This uuid is not user friendly for VM names.

Tags: vmware
zhu zhu (zhuzhubj)
tags: added: vmware
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Jin Liu (jin-t) wrote :

Is this line 'OS-EXT-SRV-ATTR:instance_name | instance-000000ec' need replace instance name 'instance-000000ec' with temp-vm-host1-99? I may find same problem in my driver.

Revision history for this message
Hiroki Aramaki (h-aramaki) wrote :

I am not sure why currently id is used for VM instance name on vCenter. But if change from id to template_id may cause many of vmware integration code modification. I think better approach is modify vmware integration doc adding this situation. If required adding template id to VM description or tag on vCenter VM.

Changed in nova:
assignee: nobody → Hiroki Aramaki (h-aramaki)
affects: nova → openstack-manuals
affects: openstack-manuals → nova
Changed in openstack-manuals:
assignee: nobody → Hiroki Aramaki (h-aramaki)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/156924

Changed in openstack-manuals:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/156924
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=bf8afba46c78f545f5e2590b4f0e0e36f842b067
Submitter: Jenkins
Branch: master

commit bf8afba46c78f545f5e2590b4f0e0e36f842b067
Author: Hiroki Aramaki <email address hidden>
Date: Wed Feb 18 17:51:10 2015 +0900

    Add vCenter driver instance name section

    Add instance name section to VMware configuration reference.
    KVM use instance_template name but VMware vCenter driver
    use instance ID.

    Change-Id: I325b5282dfdbe1b71657c4043644b5641cb7320f
    Closes-Bug: #1379682

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
Hiroki Aramaki (h-aramaki) wrote :

About Nova side following bp is working for add instance_name to VM annotation.

https://blueprints.launchpad.net/nova/+spec/vmware-driver-domain-metadata
https://review.openstack.org/#/c/141028/

Revision history for this message
Shuichiro MAKIGAKI (shuichiro-makigaki) wrote :

Thanks, Aramaki-san!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

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.