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-manage vm list
instance node type state launched image kernel ramdisk project user zone index
2013-08-15 19:28:44.588 DEBUG nova.openstack.common.lockutils [req-d85004b1-c033-4ee5-bcf0-2ec607184383 None None] Got semaphore "dbapi_backend" from (pid=27848) lock /opt/stack/nova/nova/openstack/common/lockutils.py:166
2013-08-15 19:28:44.588 DEBUG nova.openstack.common.lockutils [req-d85004b1-c033-4ee5-bcf0-2ec607184383 None None] Got semaphore / lock "__get_backend" from (pid=27848) inner /opt/stack/nova/nova/openstack/common/lockutils.py:245
vm-b2ba79b5-9d3d-450c-8ba7-c0e33592ad6d liugya-ubuntu m1.tiny active 2013-08-15 10:07:11 725c4974-1e25-4f3d-8d41-7c417bea08f2 4146aec1-8a05-4de3-82f2-73773167656d ccd6b22e-96f4-4be8-bbfd-34a6129e722a 2b65d1252efd4cd78d5504d176c01924 7ed6ad28bc9044688307c45fee43659e None 0
vm-98030793-06de-442d-9fb3-114e174d959d liugya-ubuntu m1.tiny active 2013-08-15 10:07:11 725c4974-1e25-4f3d-8d41-7c417bea08f2 4146aec1-8a05-4de3-82f2-73773167656d ccd6b22e-96f4-4be8-bbfd-34a6129e722a 2b65d1252efd4cd78d5504d176c01924 7ed6ad28bc9044688307c45fee43659e None 0
The index for all of the two VMs are both 0, the expected result should be 0 and 1
mysql> select launch_index from instances;
+--------------+
| launch_index |
+--------------+
| 0 |
| 0 |
launch_index for the two VMs are both 0