Bug #8320

Shutdown command does not always work

Added by Lukas Zapletal over 3 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Lukas Zapletal
Category:BMC
Target version:Foreman - Sprint 30
Difficulty: Bugzilla link:
Found in release:1.6.0 Pull request:https://github.com/theforeman/smart-proxy/pull/235
Story points-
Velocity based estimate-
Release1.6.3Release relationshipAuto

Description

On systems which boots/shutdowns quickly, foreman-proxy is terminated before buffer is flushed. Therefore the response body does not contain expected data.

[7] pry(main)> ::ProxyAPI::BMC.new(:url => "http://192.168.122.37:8443").power :action => "cycle" 
NoMethodError: undefined method `[]' for true:TrueClass
from /home/lzap/work/foreman/lib/proxy_api/bmc.rb:57:in `power'

Associated revisions

Revision 81c679ec
Added by Lukas Zapletal over 3 years ago

Fixes #8320 - shutdown shell provider threading fixed

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/235 added

#2 Updated by Lukas Zapletal over 3 years ago

  • Target version set to Sprint 30
  • Release set to 1.6.3
  • Found in release set to 1.6.0

Dom any chance of scheduling this in 1.6 errata if any? I'd love to fix discovery 2.0 image (1.6 based).

#3 Updated by Anonymous over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF