Bug 1482501
Summary: | system.listSystemEvents API call doesn't return all items from system's history | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Radovan Drazny <rdrazny> |
Component: | API | Assignee: | Gennadii Altukhov <galtukho> |
Status: | CLOSED ERRATA | QA Contact: | Martin Korbel <mkorbel> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 580 | CC: | galtukho, jdostal, mkorbel, tlestach |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | spacewalk-java-2.5.14-108-sat | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-05 13:56:41 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: | 1450111, 1450940 |
Description
Radovan Drazny
2017-08-17 12:33:50 UTC
I suppose the behavior is correct. In UI when you visit '/rhn/schedule/*', you can list real *scheduled* events. On page '/rhn/systems/details/history/History.do' you get system event history, including items describing "what happened to the system" ie. "Subscription via Token". And I think System History != Events. API to get System History is getEventHistory(key, system_id). However, it is quite confusing in API documentation, where we have "List all system events for given server. This includes *all* events for the server since it was registered". It'd be nice to update API docs to keep it clear. Keeping BZ opened for docs update. Jiri, feel free to update the docs within this BZ. upstream fix, spacewalk.git: c2e06af6f535f67660beda6eafa1fc6272a43a3c VERIFIED on spacewalk-java-2.5.14-108 listSystemEvents List system actions of the specified type that were *scheduled* against the given server. "actionType" should be exactly the string returned in the action_type field from the listSystemEvents(sessionKey, serverId) method. For example, 'Package Install' or 'Initiate a kickstart for a virtual guest.' Note: see also system.getEventHistory method which returns a history of all events. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0274 |