Bug 225206

Summary: Cluster cannot be deleted (from 'Manage Systems') - but no error results
Product: Red Hat Enterprise Linux 5 Reporter: Len DiMaggio <ldimaggi>
Component: congaAssignee: Ryan McCabe <rmccabe>
Status: CLOSED ERRATA QA Contact: Corey Marthaler <cmarthal>
Severity: low Docs Contact:
Priority: low    
Version: 5.0CC: cluster-maint, djansa, jlaska, kanderso, kupcevic, pkennedy, rmccabe
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2007-0640 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-07 15:36:50 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: 236021    
Attachments:
Description Flags
luci_admin backup file none

Description Len DiMaggio 2007-01-29 19:27:47 UTC
Description of problem:

I've been able to inadvertently create clusters where the cluster entries cannot
be deleted.

This bz is related to
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225164) - and when bz
225164 is resolved, this problem may never occur - but the lack of an error/log
message is problematic as it makes debugging this problem difficult.

Version-Release number of selected component (if applicable):
luci-0.8-30.el5
ricci-0.8-30.el5

How reproducible:
25-50%

Steps to Reproduce:
1. Create a cluster with a name > 16 char in length - bz 225164 will block users
from doing this.
2. Attempt to delete the cluster - sometimes, the cluster entry cannot be deleted.
  
Actual results:
When the user attempts to delete the cluster name - the attempt fails - no error
message is written to the syslog or the zope log.

The problem can be recreated by importing the luci data file included as an
attachment (via luci_admin restore) - start up luci and try to delete the
clusters defined in the file.

The attempt fails - but why is no error/execption raised?

Expected results:
Some useful error.

Additional info:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225164

Comment 1 Len DiMaggio 2007-01-29 19:27:47 UTC
Created attachment 146852 [details]
luci_admin backup file

Comment 2 Len DiMaggio 2007-01-29 19:30:43 UTC
Also - can anyone suggest a way to clean these entries out of a luci DB? Apart
from reinstalling?

Comment 3 Kiersten (Kerri) Anderson 2007-01-29 20:03:35 UTC
I have the same issue with my xen clusters.  In this case, the clusters didn't
get created or aren't all running at the same time depending on which
cluster.conf I boot up.  Can't get rid of them in luci, would like to be able to
clean up my environment.  Removing luci and reinstalling the rpm doesn't do it
either.

Comment 4 Len DiMaggio 2007-01-29 20:05:53 UTC
I think you have to manually delete /var/lib/luci after uninstalling to clean
out the data dir (/var/lib/luci/var).

Comment 5 Ryan McCabe 2007-01-29 20:46:10 UTC
I fixed this in CVS. It turns out no form input was being provided to the
backend validation code due to zope mangling the form input.

What you could do to remove the entries is remove the package, edit the
/var/lib/luci/var/luci_backup.xml file by hand, then reinstall.. You could also
enable the management interface with the luci_manage script
(conga/luci/utils/luci_maange enable). Then go to
https://host:8084/luci/systems/cluster/manage and delete them there.

Kevin, do the clusters you are unable to remove have names that begin with numbers?

Comment 8 RHEL Program Management 2007-04-10 16:43:50 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 10 Kiersten (Kerri) Anderson 2007-04-23 17:07:33 UTC
Fixing Product Name.  Cluster Suite was merged into Enterprise Linux for version
5.0.

Comment 13 errata-xmlrpc 2007-11-07 15:36:50 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2007-0640.html