Bug 679333

Summary: rhnPushClient table is not being updated appropriately when a system is deleted
Product: [Community] Spacewalk Reporter: Milan Zázrivec <mzazrivec>
Component: ServerAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-21 14:42:53 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: 695242    

Description Milan Zázrivec 2011-02-22 09:57:36 UTC
Description of problem:

SQL> desc rhnPushClient
 Name                                      Null?    Type
 ----------------------------------------- -------- ---------------
 ID                                        NOT NULL NUMBER
 NAME                                      NOT NULL VARCHAR2(64)
 SERVER_ID                                 NOT NULL NUMBER
 JABBER_ID                                          VARCHAR2(128)
 SHARED_KEY                                NOT NULL VARCHAR2(64)
 STATE_ID                                  NOT NULL NUMBER
 NEXT_ACTION_TIME                                   DATE
 LAST_MESSAGE_TIME                                  DATE
 LAST_PING_TIME                                     DATE
 CREATED                                   NOT NULL DATE
 MODIFIED                                  NOT NULL DATE

rhnPushClient table contains references to rhnServer table (not as a foreign
key), though the table is not being updated when a system is being removed
from rhnServer table.

This state needs to be fixed.

Version-Release number of selected component (if applicable):
spacewalk-schema-1.3.18-1

How reproducible:
Always

Steps to Reproduce:
1. Register a system to Spacewalk, osad running and working
2. Check content of rhnPushClient table
3. Delete the system from Spacewalk (webui for example)
4. Check content of rhnPushClient table again
  
Actual results:
The records from rhnPushClient table are not being deleted.

Expected results:
The records from rhnPushClient table are being deleted.

Additional info:
N/A

Comment 1 Miroslav Suchý 2011-04-11 07:33:09 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 2 Miroslav Suchý 2011-04-11 07:37:03 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 3 Milan Zázrivec 2011-05-20 14:35:08 UTC
spacewalk.git master: 90e5ec5daa5d5e45b111a65d714fbe4ebe9791e5

Comment 4 Jan Pazdziora (Red Hat) 2011-07-19 19:36:33 UTC
This bugzilla is currently MODIFIED, so we believe the fix is in the Spacewalk nightly yum repository at http://spacewalk.redhat.com/yum/nightly/

Therefore, moving ON_QA.

Comment 5 Jan Pazdziora (Red Hat) 2011-07-21 14:42:53 UTC
Spacewalk 1.5 was released.