[ https://issues.apache.org/jira/browse/CLOUDSTACK-10401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16750117#comment-16750117 ]
Alireza Eskandari commented on CLOUDSTACK-10401: ------------------------------------------------ Update: I have upgraded my CS from 4.9.3.1 to 4.11.2.0 but the problem exists. After investigating database I guess these 3 tables could lock my CloudStack. * op_ha_work * op_lock * vm_work_job So I delete all of those tables rows and problem fixed. Here is content of those tables: 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) > Jobs stuck in pending state > --------------------------- > > Key: CLOUDSTACK-10401 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10401 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server, VMware > Affects Versions: 4.9.3.0, 4.11 > Reporter: Alireza Eskandari > Priority: Blocker > Attachments: logs.txt > > > Environment: > CS 4.9.3.1 on CentOS 6 with vCenter 5.5 > When I try to create new VM or even start or stop existing VMs, the related > jobs stuck in pending state and nothing happens in vCenter. > This bug make my cloud totaly unusable. > Logs are attached > [^logs.txt] > ^As you can see in log file I try to create a VM and then I get "job-57349"^ > ^In line 179 "DeploymentPlanningManagerImpl" return its result but after that > nothing happens!^ -- This message was sent by Atlassian JIRA (v7.6.3#76005)