Bug 1144475
| Summary: | Unable to delete the remote agent from Windows | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Armine Hovsepyan <ahovsepy> | ||||
| Component: | Documentation | Assignee: | Jared MORGAN <jmorgan> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
| Severity: | urgent | Docs Contact: | Jared MORGAN <jmorgan> | ||||
| Priority: | unspecified | ||||||
| Version: | JON 3.3.0 | CC: | 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: |
|
||||||
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. 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... 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. 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. 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. Moving into ER05 as didn't make the ER04 cut. 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. 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 Moving to CR01 as missed ER05 initial and extended cutoffs. Added to Release Notes. |
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