Host deletion failing

When I try to delete a host I get "RuntimeError: Executing dynflow action
inside a transaction is not a good idea".

At one point I had tried to rebuild the host and I got template generation
errors due.

My wild guess is that the build failure did not clean itself up the way it
should have and there is a dangling transaction somewhere.

  1. Is there a way to list outstanding or open transactions?
  2. is there a way to delete/close a transaction?

Hello,

this seems as a bug, could you please send us more information about your setup? What version of Foreman do you run, what plugins (and versions) are installed? To find out, navigate to Administer -> About -> Plugins. Also an output from foreman-debug [1] could help.

[1] Foreman :: Manual

Thanks

··· -- Marek

----- Original Message -----
From: “Alvin Starr” chippieguy@gmail.com
To: “Foreman users” foreman-users@googlegroups.com
Sent: Monday, September 21, 2015 3:32:26 PM
Subject: [foreman-users] host deletion failing

When I try to delete a host I get “RuntimeError: Executing dynflow action
inside a transaction is not a good idea”.

At one point I had tried to rebuild the host and I got template generation
errors due.

My wild guess is that the build failure did not clean itself up the way it
should have and there is a dangling transaction somewhere.

  1. Is there a way to list outstanding or open transactions?
  2. is there a way to delete/close a transaction?


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

I too am having this exact same issue.

Running Foreman 1.9

··· On Monday, September 21, 2015 at 2:32:26 PM UTC+1, Alvin Starr wrote: > > When I try to delete a host I get "RuntimeError: Executing dynflow action > inside a transaction is not a good idea". > > At one point I had tried to rebuild the host and I got template generation > errors due. > > My wild guess is that the build failure did not clean itself up the way > it should have and there is a dangling transaction somewhere. > > 1) Is there a way to list outstanding or open transactions? > 2) is there a way to delete/close a transaction? > >

Hello

I assume you're using Katello, it seems to be a known issue, see [1] Bug #11578: Unable to delete host - Katello - Foreman and [2] Bug #10722: Can not delete host - Katello - Foreman

It does not seem to be fixed yet

··· -- Marek

----- Original Message -----
From: “Justin Soppe” jsogood@gmail.com
To: “Foreman users” foreman-users@googlegroups.com
Sent: Tuesday, September 29, 2015 9:04:21 PM
Subject: [foreman-users] Re: host deletion failing

I too am having this exact same issue.

Running Foreman 1.9

On Monday, September 21, 2015 at 2:32:26 PM UTC+1, Alvin Starr wrote:

When I try to delete a host I get “RuntimeError: Executing dynflow action
inside a transaction is not a good idea”.

At one point I had tried to rebuild the host and I got template generation
errors due.

My wild guess is that the build failure did not clean itself up the way
it should have and there is a dangling transaction somewhere.

  1. Is there a way to list outstanding or open transactions?
  2. is there a way to delete/close a transaction?


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.