Project

General

Custom queries

Profile

Actions

Bug #12195

closed

Dynflow Error on Deleting Host

Added by Riley Shott over 9 years ago. Updated about 9 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
#1

Updated by Marek Hulán over 9 years ago

  • Translation missing: en.field_release deleted (73)
#5

Updated by Marek Hulán over 9 years ago

  • Project changed from Chef to foreman-tasks
  • Category deleted (foreman_chef)
#8

Updated by Marek Hulán over 9 years ago

  • Related to Bug #12259: Host deletion generates error: undefined method `error?' for nil:NilClass added
#12

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
  • Pull request https://github.com/theforeman/foreman-tasks/pull/149 added
#13

Updated by Marek Hulán over 9 years ago

  • Status changed from Ready For Testing to Resolved
Actions

Also available in: Atom PDF