Bug #14275
open
Added by alvin starr almost 9 years ago.
Updated over 8 years ago.
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
Related issues
2 (2 open — 0 closed)
- Related to Bug #11929: problems with open transactions stopping host delete. added
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.
- Related to Tracker #14002: Orchestration build around ActiveRecord hooks tracker added
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.
Well a quick hack is to remove the tfm-rubygem-foreman_chef rpm.
Thanks.
Also available in: Atom
PDF