Bug 972816 - Deleted systems should be reported differently
Summary: Deleted systems should be reported differently
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: Splice
Version: 1.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 1.3
Assignee: Splice Developers
QA Contact: mkovacik
Depends On:
Blocks: sam13-tracker
TreeView+ depends on / blocked
Reported: 2013-06-10 15:45 UTC by Vitaly Kuznetsov
Modified: 2013-10-01 10:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-10-01 10:55:21 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2013:1390 0 normal SHIPPED_LIVE Release 1.3 of Subscription Asset Manager 2013-10-01 14:43:14 UTC

Description Vitaly Kuznetsov 2013-06-10 15:45:07 UTC
Description of problem:
Now the splice database contains a copy of all system checkins. When a system is deleted in spacewalk, the checkins remain in splice and will still be visible in all inactive reports. 
The best solution is to have a single report (instead of having Active/Inactive pair) with the following flags:

1) Active - system was active during the given time period.
2) Inactive - the system was inactive (== no checkins happened) during the given time period _AND_ it wasn't removed.
3) Deleted - the system was inactive (==no checkins happened) during the given time period _AND_ it was removed.

Comment 1 Chris Duryee 2013-06-10 15:48:36 UTC
I think #3 should be just "it was removed". It is possible for a system to have a checkin and be removed, if the removal happened soon after the last checkin.

Comment 2 wes hayutin 2013-06-11 03:02:56 UTC
Agreed.. a system can go from active directly to deleted.

Comment 3 Chris Duryee 2013-06-19 17:35:47 UTC
There are a few components that need changes to support this, but the new deleted_consumer candlepin API will be in 0.8.14 (cace30f)

Comment 4 Chris Duryee 2013-07-23 18:45:16 UTC
These versions should have the changes needed:

splice-server fe9ffc4 (0.138)
katello e5d1bd21
katello-cli 5fb67867
candlepin 97fd00f (0.8.18)
spacewalk-splice-tool 4dcb0bab1 (0.34)
splice-reports 5e550fe (0.0.5-36)

marking as modified

Comment 5 Bryan Kearney 2013-08-02 18:51:46 UTC
SNAP0 contains these bug fixes. Moving to ON_QA.

Comment 7 Vitaly Kuznetsov 2013-08-21 13:25:27 UTC
Verified with:

Comment 9 errata-xmlrpc 2013-10-01 10:55:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.