Bug 1216188 - hosts appear in discovered hosts list even when the host is shut down
Summary: hosts appear in discovered hosts list even when the host is shut down
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: Installation - Satellite
Version: 1.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 1.2
Assignee: John Matthews
QA Contact:
Dan Macpherson
URL:
Whiteboard:
Depends On: 1347023
Blocks: 1367581
TreeView+ depends on / blocked
 
Reported: 2015-04-28 17:23 UTC by Dafna Ron
Modified: 2020-01-08 16:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.