Bug 157664
| Summary: | rfe: rhn api: add system.list_affected_user_systems | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | nathan r. hruby <nhruby> |
| Component: | API | Assignee: | Jesus M. Rodriguez <jesusr> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Brandon Perkins <bperkins> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | Keywords: | FutureFeature |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | sat510 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-04-02 20:59:23 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: | 248642 | ||
mass assign QA contact for rhn410 bugs system.get_relevant_errata(sessionkey, serverid) returns the relevant errata that apply to the given system. You can now get a list of server from system.list_user_systems() then call system.get_relevant_errata() with each of the server ids. Moving this to be tracked on satellite 5.1. API call Enhancements for 5.1 Sat GA so Closed for Current Release. |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Description of problem: Hi, Please consider adding a "system.list_affected_user_systems" method to the RHN API to return the list of all errata needed for a system (eg: return an array of sid's and "advisory strings" suitable for use with errata.get_details). This would help greatly in figuring out what patches need applying to what box. Presently, if one wanted to generate a report of what boxes need which patches one would need to (roughly) do the following: - pull all errata with channel.software.list_errata (for each channel you care about) - pull the list of what really needs applying though errata.list_affected_systems for each errata in each channel - pull the system info for reporting from system.list_user_systems. - Loop through channel.software.list_errata looking for matches with errata.list_affected_systems - Loop though system.list_user_systems comapring that to the merge of the above loop That seems to have a lot of overhead for any base channel with a lot of errata. It's clear that there are already methods within the RHN/Satellite to present such information quickly, as it is presented on the Web Site under the erratta tab for any system, so this should (hopefully :) be as simple as exposing the current function(s) that do(es) this to the API handler. Thanks! -n Version-Release number of selected component (if applicable): How reproducible: Didn't try Steps to Reproduce: N/A THis is an RFE Additional info: