Bug 1024812

Summary: rhui-manager status diplays cds success when cds was removed and added again
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Ina Panova <ipanova>
Component: RHUAAssignee: dgao
Status: CLOSED ERRATA QA Contact: Ina Panova <ipanova>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1.2CC: cbillett, jmatthew, melewis, tsanders
Target Milestone: ---   
Target Release: 2.1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
This update fixes the synchronization status of a Content Delivery Server that has been deleted and re-added. When a Content Delivery Server was deleted and re-added the synchronization status displayed the details of the last synchronization prior to deletion. Logic has been added to determine if this is the first synchronization after the Content Delivery Server since deletion. The synchronization status now displays 'Never' if the Content Delivery Server has not been synchronized since it was re-added.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-17 20:10:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ina Panova 2013-10-30 13:23:37 UTC
Description of problem:

when cds is registered, synced, removed and re-added, rhui-manager status displays wrong cds status 'Success' instead of 'Never'.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Register cds
2. Sync cds
3. Remove cds
4. Add cds
5. Check 'rhui-manager status'

[root@rhua ~]# rhui-manager status
cds1.example.com ............................................ [  UP  ]

cds1.example.com ............................................ [  SUCCESS  ]

Identity certificate expiration date = 2033-10-24T17:02:14Z  .......... [  OK  ]

Entitlement CA certificate expiration date = 2014-10-29T10:09:54Z  .... [  OK  ]
0

Actual results:
cds status is SUCCESS

Expected results:
cds status is NEVER

Comment 1 dgao 2013-10-31 16:14:37 UTC
rhui-manager status
ec2-54-235-34-57.compute-1.amazonaws.com .................... [  UP  ]

ec2-54-235-34-57.compute-1.amazonaws.com .................... [  NEVER  ]
ec2-54-221-3-51.compute-1.amazonaws.com ..................... [  UP  ]

ec2-54-221-3-51.compute-1.amazonaws.com ..................... [  NEVER  ]

Red Hat Enterprise Linux 6 Server - Supplementary from RHUI (Debug RPMs) (6Server-i386)  [  NEVER  ]

Identity certificate expiration date = 2023-10-28T22:01:00Z  .......... [  OK  ]

Entitlement CA certificate expiration date = 2033-10-25T22:00:13Z  .... [  OK  ]
0


cloude commit: c2b3cdb2a37e957df7f065a9cea018bdd423126b

Comment 2 Ina Panova 2013-11-06 09:46:55 UTC
tested in 
pulp-0.0.263-40.el6_5.noarch
rh-rhui-tools-2.1.28-1.el6_5.noarch
rh-rhui-tools-debug-script-2.1.28-1.el6_5.noarch

Move to Verified.

Comment 4 errata-xmlrpc 2013-12-17 20:10:53 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.

http://rhn.redhat.com/errata/RHBA-2013-1854.html