Bug 1478878

Summary: Remote Execution Job runs multiple times on Hosts with more than one Interface
Product: Red Hat Satellite Reporter: rakesh kumar <rakumar>
Component: Remote ExecutionAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.10CC: aruzicka, bbuckingham, inecas, smeyer, wpinheir
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1480235 (view as bug list) Environment:
Last Closed: 2017-08-08 19:22:38 UTC 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:    
Bug Blocks: 1480235    

Description rakesh kumar 2017-08-07 12:24:47 UTC
Description of problem:  Only on Hosts with more than one interface:
- Job Invocation found only 1 Host from search query
- Overview Page of the Jobs already shows two Hosts
- The job will be executed two times per hosts found.
- So in total four runs of the job, for one host with two interfaces.



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

tfm-rubygem-foreman_remote_execution-0.3.0.17-1.el7sat.noarch

How reproducible:

Always

Steps to Reproduce:
1.Try to execute a remote command on a host with multiple interfaces and it's a part of host collection.

Actual results:
multiple jobs created for the single host

Expected results:
Single job should be created

Additional info:

Upstream bug:
http://projects.theforeman.org/issues/20318

fix-> https://github.com/theforeman/foreman_remote_execution/pull/259