Project

General

Profile

Actions

Bug #14275

open

Unable to delete host

Added by alvin starr almost 9 years ago. Updated over 8 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This persists as a bug the only solution is to re-install from scratch but that only seems to be a temporary solution.


Files

errors errors 13.7 KB task error trace. alvin starr, 03/18/2016 01:12 PM
foreman-trace-delete-error foreman-trace-delete-error 13.3 KB alvin starr, 04/07/2016 08:36 AM
forman-prod-log-delete-error forman-prod-log-delete-error 17.6 KB alvin starr, 04/07/2016 08:36 AM
chef-patch.patch chef-patch.patch 3.3 KB Ivan Necas, 04/13/2016 08:03 AM

Related issues 2 (2 open0 closed)

Related to foreman-tasks - Bug #11929: problems with open transactions stopping host delete.New09/22/2015Actions
Related to Foreman - Tracker #14002: Orchestration build around ActiveRecord hooks trackerNew03/02/2016

Actions
Actions #1

Updated by alvin starr almost 9 years ago

  • Related to Bug #11929: problems with open transactions stopping host delete. added
Actions #2

Updated by Ivan Necas almost 9 years ago

Would you mind uploading foreman-debug output, as described in http://theforeman.org/manuals/1.10/index.html#Gatheringinformation: I have issues reproducing the issue.

Updated by alvin starr over 8 years ago

here are the error excerpts.
The trace is taken from the tasks error page and the prod-log info is taken from the production log from the point of clicking the request to delete.

I have also pushed http://debugs.theforeman.org/foreman-debug-txltv.tar.xz

Actions #4

Updated by Ivan Necas over 8 years ago

After reviewing the logs, the problem seems to be in combination of Katello and Chef plugins, which due to some
db transactions and orchestration conflicts we hit this issue.

I'm searching or a workaround right now. The proper solution would be rethinking the way we do orchestration in Foreman,
but that's more long-term solution.

Actions #5

Updated by Marek Hulán over 8 years ago

  • Related to Tracker #14002: Orchestration build around ActiveRecord hooks tracker added
Actions #6

Updated by Ivan Necas over 8 years ago

I'm attaching a workaround for this issue, to be applied against `/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_chef-0.2.2`

cd /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_chef-0.2.2
git init
git add -A .
git commit -m 'origin'
patch -p1 < ~/chef_patch.patch
git commit -m 'chef with katello fixed'
service httpd restart; service foreman-tasks restart

After applying, the host deletion should start work again.
I will not send the patch to chef plugin, as the long-term solution will include aligning Foreman, Katello and Chef to use the same extenstion point, this is just to fix your immediate issues.

Actions #7

Updated by alvin starr over 8 years ago

Well a quick hack is to remove the tfm-rubygem-foreman_chef rpm.

Thanks.

Actions

Also available in: Atom PDF