From issues-return-93517-archive-asf-public=cust-asf.ponee.io@cloudstack.apache.org Wed Jan 23 16:22:04 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id EE0B018066C for ; Wed, 23 Jan 2019 16:22:03 +0100 (CET) Received: (qmail 56603 invoked by uid 500); 23 Jan 2019 15:22:03 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 56594 invoked by uid 500); 23 Jan 2019 15:22:03 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 56591 invoked by uid 99); 23 Jan 2019 15:22:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2019 15:22:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A2EB0C16C4 for ; Wed, 23 Jan 2019 15:22:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2m8err6XuGAh for ; Wed, 23 Jan 2019 15:22:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E74845F5FD for ; Wed, 23 Jan 2019 15:22:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6B884E0234 for ; Wed, 23 Jan 2019 15:22:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 136D624294 for ; Wed, 23 Jan 2019 15:22:00 +0000 (UTC) Date: Wed, 23 Jan 2019 15:22:00 +0000 (UTC) From: "Alireza Eskandari (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CLOUDSTACK-10401) Jobs stuck in pending state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-10401?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16750117#comment-16750117 ]=20 Alireza Eskandari edited comment on CLOUDSTACK-10401 at 1/23/19 3:21 PM: ------------------------------------------------------------------------- Update: I have upgraded my CS from 4.9.3.1 to 4.11.2.0 but the problem exists. After investigating database I=C2=A0guess these 3 tables could lock my Clou= dStack. * 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: =C2=A0 MySQL [cloud]> select * from op_ha_work; |id|instance_id|type|vm_type|state|mgmt_server_id|host_id|created|tried|tak= en|step|time_to_try|updated| |16|546|Migration|User|Running|345051240548|91|2019-01-20 12:10:07|2|2019-0= 1-23 10:21:21|Migrating|1511890258|12| |37|631|Migration|User|Running|345051240548|91|2019-01-20 12:10:07|1|2019-0= 1-23 09:38:26|Done|1511890258|4| |40|633|Migration|User|Running|345051240548|91|2019-01-20 12:10:07|1|2019-0= 1-23 10:21:21|Migrating|1511890258|3| |43|671|Migration|User|Running|345051240548|91|2019-01-20 12:10:07|2|2019-0= 1-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-0= 1-23 10:21:21|Migrating|1511949518|10| |51|546|Migration|User|Running|345051240548|94|2019-01-23 09:38:26|0|2019-0= 1-23 10:21:23|Migrating|1511949518|16| 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| 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| was (Author: alireza): Update: I have upgraded my CS from 4.9.3.1 to 4.11.2.0 but the problem exists. After investigating database I=C2=A0guess these 3 tables could lock my Clou= dStack. * 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: =C2=A0 MySQL [cloud]> select * from op_ha_work; +----+-------------+-----------+---------+---------+----------------+------= ---+---------------------+-------+---------------------+-----------+-------= ------+---------+ | id | instance_id | type | vm_type | state | mgmt_server_id | host_id | cr= eated | 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:2= 1 | 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-104= 01 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > 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 relat= ed 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-5734= 9"^ > ^In line 179 "DeploymentPlanningManagerImpl" return its result but after = that nothing happens!^ -- This message was sent by Atlassian JIRA (v7.6.3#76005)