Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1144475

Summary: Unable to delete the remote agent from Windows
Product: [JBoss] JBoss Operations Network Reporter: Armine Hovsepyan <ahovsepy>
Component: DocumentationAssignee: Jared MORGAN <jmorgan>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact: Jared MORGAN <jmorgan>
Priority: unspecified    
Version: JON 3.3.0CC: hrupp, jshaughn, mazz, mfoley, mmurray
Target Milestone: CR01   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Agent uninstall on a Microsoft Windows installation through the Remote Agent Uninstall page (Administration > Topology > Agent) does not work due to the request being routed through Cygwin. The Cygwin paths are not true Windows paths, which prevent the Agent from being uninstalled through the Remote Agent Installation mechanism. There is no workaround to this issue.
Story Points: ---
Clone Of: Environment:
[Release_Notes]
Last Closed: 2014-12-11 14:02:05 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:
Attachments:
Description Flags
unable_to_uninstall_remote_windows_agent none

Description Armine Hovsepyan 2014-09-19 13:33:03 UTC
Created attachment 939355 [details]
unable_to_uninstall_remote_windows_agent

Description of problem:
Unable to delete the remote agent from Windows

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

How reproducible:
always

Steps to Reproduce:
1. Install agent on windows
2. connect to server on linux
3. Navigate to Administration/Topology/Agent
4. Select windows agent and click Delete button


Actual results:
After step4. Agent Install Path is 'hardcoded' incorrectly and is 'not editable' thus, impossible to uninstall agent
Find Agent button is grey/not functioning

Expected results:
Agent Install Path is editable, which will allow to fill correct installation path and remove agent

Additional info:
screen-shot attached

Comment 1 John Mazzitelli 2014-09-19 20:19:39 UTC
I don't know what's wrong, but I will say those fields are supposed to be read-only. for existing agents, RHQ knows all teh correct values - it shows them to you in read-only fashion. To allow a person to change those values would effectively allow a person to "change" the agent that you selected to delete.

For example, suppose you selected agent "foo" from the list and hit "delete".

Now, suppose those fields (like address, port or agent location) are read-write - you could change them to point to agent "bar" and cause the wrong things to be deleted. This could be considered a security hole if we allow this since a malicious user could be doing this (as opposed to it just being a mistake).

That's why these fields are read-only.

Question is - why is teh install path wrong. We need to fix that. install path is sent to the server from the agent itself - its the agent that tells us where it is installed.

Comment 2 Jay Shaughnessy 2014-09-19 20:30:37 UTC
For me, the path was correct (windows server and windows agent, agent installed to the standard rhqctl location).  But I didn't actually attempt the removal.  The user/password fields were editable.  The install path should not be editable, but obviously it needs to be correct.

Assigning to mazz, if you want I can connect a windows agent to your linux server... let me know...

Comment 3 Armine Hovsepyan 2014-09-22 07:54:23 UTC
The path is correct if you check it on windows, but, since the install and uninstall to windows went through cygwin, the path must be /cygwin/c/rhq-agent. this is the path we use for remote install on windows.

Comment 4 John Mazzitelli 2014-09-22 13:39:49 UTC
Ok, well, then I would question the "urgent" priority on this BZ. Do we even officially "support" cygwin? Or SSH running in Cygwin?

Is there some other SSH server you can run on Windows and test? The fact that we are being asked to use Cygwin paths and not true Windows paths has me questioning if we should even support this. When the agent runs, its going to report what its install path is as a "true"  Windows path - not a Cygwin path (Cygwin isn't even a default program installed on Windows - that's third party software - why would the agent report its install path as a Cygwin path?)).

In short, I'm not sure how much effort we should put into supporting this use case. Would need further input from management.

Comment 6 Heiko W. Rupp 2014-09-23 08:38:14 UTC
Is that failure to uninstall with Cygwin only? 


I think the failure to uninstall in the cygwin case can be added as a known issue in the release notes, especially as I think many users will not have cygwin installed at all and the deletion of an agent is nothing you do on a daily basis.


I would close this one if it works on Win without Cygwin and open a doc bug for Zach to add a line to the release notes that agent uninstall on win+Cygwin via the remote-agent-install-page does not work.

Comment 7 Simeon Pinder 2014-09-29 08:12:25 UTC
Moving into ER05 as didn't make the ER04 cut.

Comment 8 Jared MORGAN 2014-10-10 00:17:56 UTC
Based on the recommendation in Comment#6 I've added some CCFR to this bug so we can auto-extract it for JON 3.3 release notes. 

Heiko, can you please confirm I have the bug text correct? Please make any changes you see fit directly in the Doc Text field.

Comment 9 Heiko W. Rupp 2014-10-16 07:10:35 UTC
Jared, I think that text is fine - if we say that cygwin is a prerequisite for that remote agent install on windows.

I'll turn this into a doc bug now

Comment 10 Simeon Pinder 2014-10-20 17:26:36 UTC
Moving to CR01 as missed ER05 initial and extended cutoffs.

Comment 11 Jared MORGAN 2014-11-06 03:31:18 UTC
Added to Release Notes.