Bug #14275
openUnable to delete host
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
Updated by alvin starr almost 9 years ago
- Related to Bug #11929: problems with open transactions stopping host delete. added
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
- File foreman-trace-delete-error foreman-trace-delete-error added
- File forman-prod-log-delete-error forman-prod-log-delete-error added
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
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.
Updated by Marek Hulán over 8 years ago
- Related to Tracker #14002: Orchestration build around ActiveRecord hooks tracker added
Updated by Ivan Necas over 8 years ago
- File chef-patch.patch chef-patch.patch added
- Translation missing: en.field_release deleted (
100)
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.
Updated by alvin starr over 8 years ago
Well a quick hack is to remove the tfm-rubygem-foreman_chef rpm.
Thanks.