Bug 251374
Summary: | RFE: API call for listing systems with a particular package installed | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Máirín Duffy <duffy> |
Component: | API | Assignee: | Brad Buckingham <bbuckingham> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sayli Karmarkar <skarmark> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 520 | CC: | cperry, mmraka |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | sat530 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-09-10 19:52:05 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: | 456996 |
Description
Máirín Duffy
2007-08-08 17:02:35 UTC
The following APIs should address this request: system.listSystemsWithPackage - these APIs were added in Spacewalk 0.1 for inclusion in Satellite 5.3.0 system.isNvreaInstalled - APIs that already exist that can be used to determine if a specific package is installed. Note: one of the desired pieces of information to be included in these APIs was the date the package was installed/modified on the machine. After discussion with multiple members of the eng team and investigation in to the code, it doesn't appear that we currently have a mechanism to support this at this time. ------------------------------------------------------------------------------ Below are the API doc details on these APIs. Method: listSystemsWithPackage Description: Lists the systems that have the given installed package Parameters: * string sessionKey * int pid - the package id Returns: * array: o struct - system + int "id" + string "name" + dateTime.iso8601 "last_checkin" - Last time server successfully checked in Method: listSystemsWithPackage Description: Lists the systems that have the given installed package Parameters: * string sessionKey * string name - the package name * string version - the package version * string release - the package release Returns: * array: o struct - system + int "id" + string "name" + dateTime.iso8601 "last_checkin" - Last time server successfully checked in --------------------------------------------------------------------------- For the second part of the request, the system.isNvreInstalled APIs will enable the user to determine if a specific package is installed on the system. Method: isNvreInstalled Description: Check if the package with the given NVRE is installed on given system. Parameters: * string sessionKey * int serverId * string name - Package name. * string version - Package version. * string release - Package release. Returns: * int - 1 on success, exception thrown otherwise. Method: isNvreInstalled Description: Is the package with the given NVRE installed on given system. Parameters: * string sessionKey * int serverId * string name - Package name. * string version - Package version. * string release - Package release. * string epoch - Package epoch. Returns: * int - 1 on success, exception thrown otherwise. Added additional checks in API automation tests for above 4 APIs and verified. ~SayliK Verified in stage -> RELEASE_PENDING. API calls exist and work. $ ./xmlrpc-client.pl dell-pem710-01.rhts.eng.bos.redhat.com admin xxx system.listSystemsWithPackage 8853 name = dhcp71-16.rhts.bos.redhat.com id = 1000010022 name = dhcp71-16.rhts.bos.redhat.com id = 1000010023 name = dhcp71-16.rhts.bos.redhat.com id = 1000010024 $ ./xmlrpc-client.pl dell-pem710-01.rhts.eng.bos.redhat.com admin xxx system.listSystemsWithPackage acl 2.2.39 3.el5 name = dhcp71-16.rhts.bos.redhat.com id = 1000010022 name = dhcp71-16.rhts.bos.redhat.com id = 1000010023 name = dhcp71-16.rhts.bos.redhat.com id = 1000010024 $ ./xmlrpc-client.pl dell-pem710-01.rhts.eng.bos.redhat.com admin xxx system.isNvreInstalled 1000010024 acl 2.2.39 3.el5 OK $ ./xmlrpc-client.pl dell-pem710-01.rhts.eng.bos.redhat.com admin xxx system.isNvreInstalled 1000010024 perl 5.8.8 18.el5 4 OK An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-1434.html |