Bug 480126
| Summary: | redstone.xmlrpc.XmlRpcFault: proxy_already_registered even if message above says deactivated | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Jan Pazdziora (Red Hat) <jpazdziora> |
| Component: | Proxy Server | Assignee: | Partha Aji <paji> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 0.4 | CC: | msuchy, paji |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-09-17 07:09:02 UTC | Type: | --- |
| 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: | 456553 | ||
|
Description
Jan Pazdziora (Red Hat)
2009-01-15 09:35:36 UTC
It may be related to the move to stock httpd and the fact that /rpc/api is not working ATM. But how it happend then that the proxy say it is activated? It may be related to BZ 469060. Which then can fix the problem or at least provide cleaner error message. I was able to reproduce the issue even after I've put RewriteRule ^/rpc/api /rhn/rpc/api [P] to /etc/httpd/conf.d/zz-spacewalk-server.conf, so I don't think it's related to the /rpc/api problem. When I registered fresh system with the Spacewalk, I got the proxy activated alright, so some parts of the API had to work. OK. The problem is that the proxy is not deactivated.
The problem seems to be that in file:
java/code/src/com/redhat/rhn/manager/system/SystemManager.java
on line 1290 is code:
server.setProxyInfo(null);
And it do not delete the proxyinfo record.
This has been introduce by commit 1e291c1941e4d2a89afc99fe8add9e127e018a34
// freakin hibernate can't do a simple bulk delete statement unless
// it uses HQL!
- executeWriteMode("System_queries",
- "delete_proxy_info", params);
+ server.setProxyInfo(null);
executeWriteMode("Monitoring_queries",
I wonder how to fix it to not reintroduce the monitoring bug again.
Should be fixed by commit 73bdcdcc5a3b420fb6219125b0b4356598f8883d I just installed package with Partha modifiacation and it works as expected. VERIFIED. Spacewalk 0.5 released. Spacewalk 0.5 has been released for long time ago. |