Project

General

Profile

Actions

Bug #12195

closed

Dynflow Error on Deleting Host

Added by Riley Shott about 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Setup:

Foreman 1.9.1 with foreman_chef (0.2.0)
SmartProxy 1.9.1 with smart_proxy_chef
Various Chef Clients with chef-handler-foreman

I'm getting the following error every time I delete a host in the Foreman. I have auto_deletion set to false as I don't want the Foreman to delete my nodes from the Chef server, so I'm surprised that dynflow is still attempting to execute a plan.

http://pastie.org/private/fdujgncwvvacgbk147iew

My apologies if this issue should have gone under foreman-tasks, but I decided to post it here as I'm not sure if it's an issue with foreman_chef executing dynflow plans when it shouldn't be.

If this is to be expected, should the following line be modified to catch if run.value is nil? (e.g. run.value.error? rescue nil)

https://github.com/theforeman/foreman-tasks/blob/0fe9b22da92c26b38bcd1452894e86a9315a0a07/app/models/foreman_tasks/concerns/action_triggering.rb#L132


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #12259: Host deletion generates error: undefined method `error?' for nil:NilClassDuplicate10/22/2015Actions
Actions

Also available in: Atom PDF