Well, I think it is safe, but before you do that, put disabe your zones, shutdown the MS and then remove the tasks. Or, you could simple look for some task ids that are giving you trouble and then delete them.
On Mon, Jun 9, 2014 at 6:37 PM, Andrei Mikhailovsky <and...@arhont.com> wrote: > Raf, > > Not sure if this thread is related to my problem. I have a single > management server with a few messed up tasks. > > Is it safe to remove everything from the async_job and async_job_view > tables (apart from any current jobs)? > > Thanks > > Andrei > > ----- Original Message ----- > > From: "Rafael Weingartner" <rafaelweingart...@gmail.com> > To: dev@cloudstack.apache.org > Sent: Monday, 9 June, 2014 9:42:24 PM > Subject: Re: deleting or cancelling broken ACS jobs > > have you seem this thread? > > http://mail-archives.apache.org/mod_mbox/cloudstack-users/201404.mbox/%3cblu176-w37d2e5fc141028f7d1937db4...@phx.gbl%3E > I think this might work to delete the broken tasks. > > > On Mon, Jun 9, 2014 at 5:35 PM, Andrei Mikhailovsky <and...@arhont.com> > wrote: > > > Hello guys, > > > > was wondering if anyone have come across an issue where acs would get > > stuck on several jobs and keeps trying to do them over and over again? > > > > I've come across an issue a few days ago. For some reason I have about 5 > > or 6 XenServer cluster jobs which have gone crazy. These jobs are of > > different nature, like template creation, vm start and enable host > > maintenance. > > They keep on repeating in the logs about 20-30 times a second, causing > > overfilling of logs. I get about 20GB of management server logs each day > > and it seems that these stuck jobs are causing the overflow. I am also > not > > able to perform any activity on the XenServer cluster which has those > stuck > > jobs. I am unable to start or stop jobs or pretty much do anything with > it. > > > > I've tried restarting both the management server and the xenserver hosts, > > but that didn't help. After a short while following a restart the same > > thing starts to happen. > > > > Is there a way for ACS to cancel / remove these jobs? I've looked at the > > async_job and async_job_view db tables and I can see 28 entries there > > amongst which are these stuck jobs gone crazy. Is it safe for me to > simply > > remove them from the database and restart the management server? Are > there > > any other db tables that I should look at? > > > > Many thanks > > > > Andrei > > > > > > > > > -- > Rafael Weingärtner > > -- Rafael Weingärtner