Red Hat Bugzilla – Bug 221881
Deleting cluster with unauthenicated node = error with "local variable 'batch' referenced before assignment"
Last modified: 2009-04-16 18:33:57 EDT
Description of problem:
Deleting cluster with unauthenicated node = error with "local variable 'batch'
referenced before assignment"
This bz is related to
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=221869 - if the user
attempts to delete the cluster that includes the unauthenicated node, then this
above error is generated.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Recreate the cluster described in bz 221869.
2. Before reauthenticating the node that was originally unauthenticated, attempt
to delete the cluster.
See the screenshot attachment. Also, this is written to the debug (syslog) on
the luci server:
Jan 8 10:38:06 tng3-5 luci: RC:BRun3: An error occurred while trying to
process the batch job: "<?xml version="1.0" ?><batch><module
name="cluster"><request API_version="1.0"><function_call name="stop_node"><var
mutable="false" name="cluster_shutdown" type="boolean" value="false"/><var
mutable="false" name="purge_conf" type="boolean"
Jan 8 10:38:06 tng3-5 luci: batchAttemptResult: 'NoneType' object has no
The cluster should be deleted.
Created attachment 145090 [details]
Committed fix to HEAD
Verified bug fixed in luci-0.8-29.el5
Now, when the user attempts to create the cluster with an unauthenticated node,
warnings are issued:
'Any nodes that are not authenticated will need to be authenticated later.'
'Unable to authenticate to the ricci agent on tng3-2.lab.msp.redhat.com:
And, the user is able to delete the cluster. If the user attempts to view the
cluster list, this error results:
'An error occurred when trying to contact any of the nodes in the Jan23a cluster.'
But, the user can clear this condition by deleting the cluster from the
homebase/manage systems menu.