Bug 1144477

Summary: Processing dialog box stays forever when agent installation gets GUE
Product: [JBoss] JBoss Operations Network Reporter: Armine Hovsepyan <ahovsepy>
Component: AgentAssignee: Michael Burman <miburman>
Status: CLOSED CURRENTRELEASE QA Contact: Armine Hovsepyan <ahovsepy>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: mfoley, miburman, tsegismo
Target Milestone: ER04   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 14:03:45 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: 1151217    
Bug Blocks:    
Attachments:
Description Flags
install_dialog_bog
none
noGUE_CorrectDialogBox none

Description Armine Hovsepyan 2014-09-19 13:41:11 UTC
Created attachment 939358 [details]
install_dialog_bog

Description of problem:
Processing dialog box stays forever when agent installation gets GUE

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

How reproducible:
always

Steps to Reproduce:
1. Install cygwin with sshd server in windows (remote machine)
2. In RHQ server navigate to "Administration-->Agents-->New"
3. Enter remote box details (Agent should not be installed), give some location, example: /cygwin/c/agent/
3. Click on "install Agent"

Actual results:
Installation finishes with agent port cannot be detected log (agent.log)
GUE on GUI
Processing dialog box stays forever (navigation to another page does not fix it, F5 is required)

Expected results:
Installation finishes without GUE, dialog box is closed

Additional info:
screen-shot attached

bz for GUE filed #1144467

Comment 1 Michael Burman 2014-09-22 08:21:06 UTC
Fixed in master (same patch as BZ 1144467):

commit 5673be5aac6ea6f1f742a7006e06130fdcc6d822
Author: Michael Burman <miburman>
Date:   Mon Sep 22 11:16:46 2014 +0300

    [BZ 1144467] [BZ 1144477] Boolean with null value is a bad idea, if we could not find the port, then we could not check if the agent was running eit

Comment 2 Thomas Segismont 2014-09-23 14:36:44 UTC
Cherry-picked over to release/jon3.3.x

commit ec4d94b7d02c61776049b6ee771f25e5d9e2905d
Author: Michael Burman <miburman>
Date:   Mon Sep 22 11:16:46 2014 +0300

    [BZ 1144467] [BZ 1144477] Boolean with null value is a bad idea, if we could not find the port, then we could not check if the agent was running either, so setti
    
    (cherry picked from commit 5673be5aac6ea6f1f742a7006e06130fdcc6d822)
    Signed-off-by: Thomas Segismont <tsegismo>

Comment 3 Simeon Pinder 2014-10-01 21:33:03 UTC
Moving to ON_QA as available for test with build:
https://brewweb.devel.redhat.com/buildinfo?buildID=388959

Comment 5 Armine Hovsepyan 2014-10-23 12:49:41 UTC
verified in JON 3.3 ER05

fragment from server.log:
08:46:57,487 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Running SSH command [Create Agent Install Directory]
08:46:58,557 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Result of SSH command [Create Agent Install Directory]: 
08:46:58,557 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Running SSH command [Remove any previously installed agent]
08:46:59,611 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Result of SSH command [Remove any previously installed agent]: 
08:46:59,612 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Running SSH command [Remove any old agent update logs]
08:47:00,673 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Result of SSH command [Remove any old agent update logs]: 
08:47:00,674 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Running SSH command [Remove any old agent update binary jars]
08:47:01,742 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Result of SSH command [Remove any old agent update binary jars]: 
08:47:01,743 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Copying agent binary update distribution file to [10.16.23.244]...
08:47:02,818 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Agent binary update distribution file copied
08:47:02,818 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Running SSH command [Install Agent]
08:47:03,852 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Result of SSH command [Install Agent]: null
08:47:03,853 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Running SSH command [Determine the agent's bind port]
08:47:04,907 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Result of SSH command [Determine the agent's bind port]: null
08:47:04,908 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Will start new agent @ [10.16.23.244] pointing to server @ [10.16.23.74]
08:47:04,909 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Running SSH command [Start New Agent]
08:47:05,943 INFO  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Result of SSH command [Start New Agent]: 
08:47:05,944 WARN  [org.rhq.enterprise.server.install.remote.SSHInstallUtility] (http-/0.0.0.0:7080-3) Just installed an agent at [10.16.23.244] but could not ping its port. Something might be bad with the install or it is behind a firewall.


screen-shot attached

Comment 6 Armine Hovsepyan 2014-10-23 12:51:11 UTC
Created attachment 949866 [details]
noGUE_CorrectDialogBox