Project

General

Profile

Bug #14275

Unable to delete host

Added by alvin starr almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

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

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

Related to foreman-tasks - Bug #11929: problems with open transactions stopping host delete.New2015-09-22
Related to Foreman - Tracker #14002: Orchestration build around ActiveRecord hooks trackerNew2016-03-02

History

#1 Updated by alvin starr almost 7 years ago

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

#2 Updated by Ivan Necas almost 7 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.

#3 Updated by alvin starr almost 7 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

#4 Updated by Ivan Necas almost 7 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.

#5 Updated by Marek Hulán almost 7 years ago

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

#6 Updated by Ivan Necas almost 7 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.

#7 Updated by alvin starr almost 7 years ago

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

Thanks.

Also available in: Atom PDF