Bug 1216188

Summary: hosts appear in discovered hosts list even when the host is shut down
Product: Red Hat Quickstart Cloud Installer Reporter: Dafna Ron <dron>
Component: Installation - SatelliteAssignee: John Matthews <jmatthew>
Status: ASSIGNED --- QA Contact:
Severity: medium Docs Contact: Dan Macpherson <dmacpher>
Priority: unspecified    
Version: 1.0CC: bthurber, dajohnso, jmatthew, jmontleo, qci-bugzillas, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: 1.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1347023    
Bug Blocks: 1367581    

Description Dafna Ron 2015-04-28 17:23:39 UTC
Description of problem:

After the first discovery of a host, even if I shut down the host it would still appear in the list of discovered hosts which means that when we go to deploy we would probably fail deploying due to host not being available. 
raising a question - should the discovery only run once or be updated as a fluid list? should perhaps a power state be added to the hosts? 

Version-Release number of selected component (if applicable):

foreman.livecd.lan-apache-1.0-1.noarch

How reproducible:

100%

Steps to Reproduce:
1. install the foreman
2. discover hosts
3. shut down the hosts 
4. reload the discover host screen

Actual results:

we still see the hosts list in the host discovery list even though they are shut down 

Expected results:

since an unavailable host can fail a deployment - perhaps this list should be fluid or a power state should be added to the hosts list?

Additional info:

Comment 1 jmagen@redhat.com 2015-05-03 13:35:34 UTC
Is the power on/off state available in the API of discovered hosts

Comment 2 jmagen@redhat.com 2015-05-03 13:39:47 UTC
Does anybody know if power on/off is determined if 'facts_hash' is returned or not???

Comment 3 jmagen@redhat.com 2015-09-02 09:12:40 UTC
ping, does anybody know if power on/off is determined if 'facts_hash' is returned or not???

Comment 6 Jason Montleon 2016-12-07 18:19:21 UTC
cchase already has a PR for this:
https://github.com/fusor/fusor/pull/925

There is an issue fixed in Foreman Discovery that we require, however it won't be in Satellite until 6.3. https://bugzilla.redhat.com/show_bug.cgi?id=1347023