Bug 594453

Summary: Manually removing a VirtualHost in conf and re-adding causes multiple instances to appear in UI
Product: [Other] RHQ Project Reporter: Corey Welton <cwelton>
Component: InventoryAssignee: Filip Drabek <fdrabek>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: low    
Version: 1.4CC: fdrabek, skondkar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-02 07:24:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 577313, 625146    
Description Flags
Snippet of UI now showing two instances where there should only be one. none

Description Corey Welton 2010-05-20 17:44:27 UTC
Description of problem:
I manually removed a virtualhost in my conf file via cmdline.  I then removed said service from inventory.  When I readded and checked config/invetory etc., old one was re-added, along with a new one.

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

How reproducible:

Steps to Reproduce:
1. Create a virtualhost in httpd.con, akin to

<VirtualHost dhcp231-107.rdu.redhat.com:8888>
    ServerAdmin webmaster@dhcp231-107.rdu.redhat.com
    DocumentRoot /var/www/html/vhost
    ServerName dhcp231-107.rdu.redhat.com
    ErrorLog logs/dhcp231-107.rdu.redhat.com-error_log
    CustomLog logs/dhcp231-107.rdu.redhat.com-access_log common

Assure there are no other reference to '8888' in doc.
2.  Trigger a syntax check or something in the UI that causes this resource to appear in inventory.
3.  Manually remove said instance via cmdline.  
4. Remove this resource from inventory in UI.
5. Re-add the resource via cmdline.
6. Trigger syntax check.
7. Check once again to make sure there is only one reference to the vhost on port 8888
Actual results:
Two instances appear in inventory.

Expected results:
Only one.

Additional info:
Screenshot to be attached.

Comment 1 Corey Welton 2010-05-20 17:45:27 UTC
Created attachment 415480 [details]
Snippet of UI now showing two instances where there should only be one.

Comment 2 Filip Drabek 2010-08-26 08:36:45 UTC
I can not reproduce the problem. 
Can you please test if the problem still occures on your environment?

Comment 3 Sunil Kondkar 2011-06-14 10:36:37 UTC
Verified on build#123 (Version: 4.1.0-SNAPSHOT Build Number: a6d2d56)

Followed the steps and verified that only one instance of virtual host appears in the inventory.

Marking as verified.

Comment 4 Heiko W. Rupp 2013-09-02 07:24:09 UTC
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.