Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 466028

Summary: API Enhancements -- listInactiveSystemsInGroup
Product: [Community] Spacewalk Reporter: Brad Buckingham <bbuckingham>
Component: APIAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.1CC: dgoodwin
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:01:59 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: 456551    

Description Brad Buckingham 2008-10-07 19:11:59 UTC
Description of problem:

Request for new API.

listInactiveSystemsinGroup

   -- Parameters
      string sessionKey
      int "sgid" - server group id

   -- Returns
      Array
         Struct
            int "id" - ServerID
            string "Name" - ServerName
            string "last_checkin" - last time server successfully checked in with the server.

Comment 1 Brad Buckingham 2008-10-07 19:14:16 UTC
The following API was added in Spacewalk 0.1:

systemgroup.listInActiveSystemsInGroup

-- Parameters

   string sessionKey
   string systemGroupName

-- Returns

   array
      int server_id


Unfortunately, we do not currently have a way to retrieve 'last_checkin'
information for an individual system based on system id; therefore, additional modifications will be needed to complete the enhancement.

May add the last_checkin info to the system.getDetails(), to the new method
above or add method similar to getId() that takes 'id' and returns name/checkin.

Comment 2 Brad Buckingham 2008-10-15 18:44:57 UTC
Rather than add name/last_checkin to the listInactiveSystemsInGroup, added the following API that can be used to retrieve that additional information, if desired:

Description:
Get system name and last check in information for the given system ID.

Parameters:

    * string sessionKey
    * string serverId

Returns:

    * struct - system
          o int "id"
          o string "name"
          o dateTime.iso8601 "last_checkin" - Last time server successfully checked in

Comment 3 Brad Buckingham 2008-10-15 18:46:01 UTC
commit 9b1e098e7b21bc50634704b62833e388da783e25
Author: Brad Buckingham <bbuckingham>
Date:   Wed Oct 15 14:36:35 2008 -0400

    466023, 466028 - added system.getName api

Comment 4 Devan Goodwin 2008-11-05 17:30:27 UTC
Verified in spacewalk 0.3.

Comment 5 Miroslav Suchý 2009-09-17 07:01:59 UTC
Spacewalk has been released for some time.