Bug 489350

Summary: Multiple runs of spacewalk-setup produce multiple monitoring scout entries
Product: [Community] Spacewalk Reporter: Milan Zázrivec <mzazrivec>
Component: ServerAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.4   
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:10:58 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: 456553    
Attachments:
Description Flags
scout config push page none

Description Milan Zázrivec 2009-03-09 16:34:42 UTC
Created attachment 334553 [details]
scout config push page

Description of problem:
Multiple runs of spacewalk-setup (for example if previous run fails or
gets interrupted) result into multiple monitoring scout entries in databse
(visible via webui).

Version-Release number of selected component (if applicable):
SatConfig-general-1.216.8-1.el5
spacewalk-setup-0.5.17-1.el5

How reproducible:
Always

Steps to Reproduce:
1. # spacewalk-setup --disconnected
2. Proceed with the spacewalk-setup all the way to the point where the 
setup says "* Enabling Monitoring."
3. At this point it's safe to Ctrl-C the installation (to simulate the failure)
4. Re-run the setup again, answer no to wiping out the existing schema, proceed
all the way to the end.
5. Enable monitoring + monitoring scout.
6. webui: monitoring -> scout config push
  
Actual results:
Multiple scout entries (see attachment).

Expected results:
One entry for scout running on installed Spacewalk.

Additional info:
N/A

Comment 1 Miroslav Suchý 2009-03-12 13:48:38 UTC
Commited as e9b92eaeed70090cec629d8570c1aab19053ab71
Fixed in spacewalk-setup-0.5.20-1

Comment 2 Jesus M. Rodriguez 2009-04-14 14:13:26 UTC
Spacewalk 0.5 released.

Comment 3 Miroslav Suchý 2009-09-17 07:10:58 UTC
Spacewalk 0.5 has been released for long time ago.