geekza commented on issue #3104: Virtual machines stuck in "Starting" state for 
extended periods of time during provisioning
URL: https://github.com/apache/cloudstack/issues/3104#issuecomment-456786734
 
 
   @rhtyd @dubauski 
   I found these items in my database that may prevent CloudStack to work:
   
   MySQL [cloud]> select * from op_ha_work;
   
+----+-------------+-----------+---------+---------+----------------+---------+---------------------+-------+---------------------+-----------+-------------+---------+
   | id | instance_id | type      | vm_type | state   | mgmt_server_id | 
host_id | created             | tried | taken               | step      | 
time_to_try | updated |
   
+----+-------------+-----------+---------+---------+----------------+---------+---------------------+-------+---------------------+-----------+-------------+---------+
   | 16 |         546 | Migration | User    | Running |   345051240548 |      
91 | 2019-01-20 12:10:07 |     2 | 2019-01-23 10:21:21 | Migrating |  
1511890258 |      12 |
   | 37 |         631 | Migration | User    | Running |   345051240548 |      
91 | 2019-01-20 12:10:07 |     1 | 2019-01-23 09:38:26 | Done      |  
1511890258 |       4 |
   | 40 |         633 | Migration | User    | Running |   345051240548 |      
91 | 2019-01-20 12:10:07 |     1 | 2019-01-23 10:21:21 | Migrating |  
1511890258 |       3 |
   | 43 |         671 | Migration | User    | Running |   345051240548 |      
91 | 2019-01-20 12:10:07 |     2 | 2019-01-23 10:24:23 | Migrating |  
1511952155 |       4 |
   | 46 |         691 | Migration | User    | Running |           NULL |      
91 | 2019-01-20 12:10:07 |     2 | NULL                | Migrating |  
1511952155 |       7 |
   | 48 |         631 | Migration | User    | Running |   345051240548 |      
94 | 2019-01-23 09:38:26 |     0 | 2019-01-23 10:21:21 | Migrating |  
1511949518 |      10 |
   | 51 |         546 | Migration | User    | Running |   345051240548 |      
94 | 2019-01-23 09:38:26 |     0 | 2019-01-23 10:21:23 | Migrating |  
1511949518 |      16 |
   
+----+-------------+-----------+---------+---------+----------------+---------+---------------------+-------+---------------------+-----------+-------------+---------+
   7 rows in set (0.00 sec)
   
   
   MySQL [cloud]> select * from op_lock;
   
+----------------+--------------+-------------+------------+---------------------+---------+
   | key            | mac          | ip          | thread     | acquired_on     
    | waiters |
   
+----------------+--------------+-------------+------------+---------------------+---------+
   | vm_instance546 | 345051240548 | HA-Worker-4 | 1198190978 | 2019-01-23 
10:21:21 |       0 |
   | vm_instance631 | 345051240548 | HA-Worker-1 | 2092627389 | 2019-01-23 
10:21:21 |       1 |
   | vm_instance633 | 345051240548 | HA-Worker-0 | 770823     | 2019-01-23 
10:21:21 |       0 |
   
+----------------+--------------+-------------+------------+---------------------+---------+
   3 rows in set (0.00 sec)
   
   MySQL [cloud]> select * from vm_work_job;
   +-------+----------+----------+----------------+
   | id    | step     | vm_type  | vm_instance_id |
   +-------+----------+----------+----------------+
   | 57262 | Prepare  | Instance |            691 |
   | 57268 | Starting | Instance |            748 |
   | 57396 | Filed    | Instance |            691 |
   | 57399 | Filed    | Instance |            546 |
   | 57402 | Filed    | Instance |            631 |
   | 57405 | Filed    | Instance |            671 |
   | 57408 | Filed    | Instance |            633 |
   +-------+----------+----------+----------------+
   7 rows in set (0.01 sec)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to