Kelven, randomlyIncreasingVMInstanceDaoImpl is being used instead of UserVmDaoImpl in ComponentContext.xml. Was this change intentional?
<bean id="randomlyIncreasingVMInstanceDaoImpl" class="com.cloud.vm.dao.RandomlyIncreasingVMInstanceDaoImpl" /> Vm DB Ids increase randomly as a result. mysql> select id from vm_instance; +----+ | id | +----+ | 1 | | 2 | | 3 | | 11 | | 12 | | 13 | | 14 | | 21 | | 25 | | 30 | | 38 | | 45 | | 52 | | 56 | | 60 | | 68 | | 73 | | 79 | | 80 | | 81 | | 82 | | 83 | +----+ 22 rows in set (0.00 sec) Regards, Kishan