Bug 501392

Summary: system.schedulePackageRefresh docs say it returns 1 on success where it actually returns actionID
Product: Red Hat Satellite 5 Reporter: Sayli Karmarkar <skarmark>
Component: APIAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED CURRENTRELEASE QA Contact: Sayli Karmarkar <skarmark>
Severity: low Docs Contact:
Priority: low    
Version: 530CC: cperry, jsefler
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:55:49 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 Sayli Karmarkar 2009-05-18 21:30:21 UTC
Description of problem:
system.schedulePackageRefresh docs:

...

Returns:

    * int - 1 on success, exception thrown otherwise. 


Expected results:
Returns:

    * int - ID of the action scheduled, otherwise exception thrown on error 

(similar to schedulePackageRemove)

Comment 1 Brad Buckingham 2009-05-20 10:01:58 UTC
master git commit: 242484bb1ef4835cc0a723e4d5d94fcdcea107b6
vader git commit: 1d4c03b933122107ea307246ec441bc3dcfca26f

Comment 2 John Sefler 2009-08-20 14:59:29 UTC
Verified on staged iso (Satellite-5.3.0-RHEL5-re20090724.0)

https://sun-x4200-01.rhts.bos.redhat.com/rhn/apidoc/handlers/SystemHandler.jsp#schedulePackageRefresh

 Method: schedulePackageRefresh
Description:
Schedule a package list refresh for a system.

Parameters:

    * string sessionKey
    * int serverId
    * dateTime.iso8601 earliestOccurrence

Returns:

    * int - ID of the action scheduled, otherwise exception thrown on error 


https://sun-x4200-01.rhts.bos.redhat.com/rhn/apidoc/handlers/SystemHandler.jsp#schedulePackageRemove

 Method: schedulePackageRemove
Description:
Schedule package removal for a system.

Parameters:

    * string sessionKey
    * int serverId
    * array:
          o int - packageId
    * dateTime.iso8601 earliestOccurrence

Returns:

    * int - ID of the action scheduled, otherwise exception thrown on error 


moving to RELEASE_PENDING

Comment 3 Brandon Perkins 2009-09-10 19:55:49 UTC
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