← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1212653] Re: multi instace display name did not follow template

 

My fault, multi_instance_display_name_template is configurable.

** Changed in: nova
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1212653

Title:
  multi instace display name did not follow template

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  
      cfg.StrOpt('multi_instance_display_name_template',
                 default='%(name)s-%(uuid)s',
                 help='When creating multiple instances with a single request '
                      'using the os-multiple-create API extension, this '
                      'template will be used to build the display name for '
                      'each instance. The benefit is that the instances '
                      'end up with different hostnames. To restore legacy '
                      'behavior of every instance having the same name, set '
                      'this option to "%(name)s".  Valid keys for the '
                      'template are: name, uuid, count.'),

  Try to boot two VMs in one request, then no index in vm display name.

  root@liugya-ubuntu:~# nova boot --image cirros-0.3.1-x86_64-uec --flavor 1 --num-instances  2 vm
  /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
    import gobject._gobject
  +--------------------------------------+-----------------------------------------+
  | Property                             | Value                                   |
  +--------------------------------------+-----------------------------------------+
  | OS-EXT-STS:task_state                | scheduling                              |
  | image                                | cirros-0.3.1-x86_64-uec                 |
  | OS-EXT-STS:vm_state                  | building                                |
  | OS-EXT-SRV-ATTR:instance_name        | instance-00000001                       |
  | OS-SRV-USG:launched_at               | None                                    |
  | flavor                               | m1.tiny                                 |
  | id                                   | b2ba79b5-9d3d-450c-8ba7-c0e33592ad6d    |
  | security_groups                      | [{u'name': u'default'}]                 |
  | user_id                              | 7ed6ad28bc9044688307c45fee43659e        |
  | OS-DCF:diskConfig                    | MANUAL                                  |
  | accessIPv4                           |                                         |
  | accessIPv6                           |                                         |
  | progress                             | 0                                       |
  | OS-EXT-STS:power_state               | 0                                       |
  | OS-EXT-AZ:availability_zone          | nova                                    |
  | config_drive                         |                                         |
  | status                               | BUILD                                   |
  | updated                              | 2013-08-15T10:06:52Z                    |
  | hostId                               |                                         |
  | OS-EXT-SRV-ATTR:host                 | None                                    |
  | OS-SRV-USG:terminated_at             | None                                    |
  | key_name                             | None                                    |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                    |
  | name                                 | vm-b2ba79b5-9d3d-450c-8ba7-c0e33592ad6d |
  | adminPass                            | HQ5zL9iRkYBy                            |
  | tenant_id                            | 2b65d1252efd4cd78d5504d176c01924        |
  | created                              | 2013-08-15T10:06:52Z                    |
  | os-extended-volumes:volumes_attached | []                                      |
  | metadata                             | {}                                      |
  +--------------------------------------+-----------------------------------------+

  
  root@liugya-ubuntu:~# nova list
  /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
    import gobject._gobject
  +--------------------------------------+-----------------------------------------+--------+------------+-------------+------------------+
  | ID                                   | Name                                    | Status | Task State | Power State | Networks         |
  +--------------------------------------+-----------------------------------------+--------+------------+-------------+------------------+
  | 98030793-06de-442d-9fb3-114e174d959d | vm-98030793-06de-442d-9fb3-114e174d959d | ACTIVE | None       | Running     | private=10.0.0.3 |
  | b2ba79b5-9d3d-450c-8ba7-c0e33592ad6d | vm-b2ba79b5-9d3d-450c-8ba7-c0e33592ad6d | ACTIVE | None       | Running     | private=10.0.0.2 |
  +--------------------------------------+-----------------------------------------+--------+------------+-------------+------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1212653/+subscriptions