Hi -
I have created a new two node cluster in Luci which worked without issue. However, I wanted to get screen shots of the creation of the cluster. I removed the cluster by:
Manage Clusters - Selecting the cluster to be removed - then clicked on Remove.
The cluster was no longer showing in Luci. I went back and tried to add a new cluster using the two same servers, which then gave an error of :
The following errors occurred while creating cluster "tibco-dev-01": cerd1630 is already a member of a cluster named "tibco-dev-01", odrd1601 is already a member of a cluster named "tibco-dev-01"
After seeing this I went to each server and removed the cluster.conf and started the process again. Went back to Luci and tried to make the cluster again to find that I now get this error in Luci:
an error occurred during the creation of cluster "tibco-dev-01" while updating the luci database: An operation previously failed, with traceback: File "/usr/lib64/python2.6/threading.py", line 504, in bootstrap self.__bootstrap_inner() File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner self.run() File "/usr/lib64/python2.6/threading.py", line 484, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib/python2.6/site-packages/paste/httpserver.py", line 878, in worker_thread_callback runnable() File "/usr/lib/python2.6/site-packages/paste/httpserver.py", line 1052, in lambda: self.process_request_in_thread(request, client_address)) File "/usr/lib/python2.6/site-packages/paste/httpserver.py", line 1068, in process_request_in_thread self.finish_request(request, client_address) File "/usr/lib64/python2.6/SocketServer.py", line 332, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib64/python2.6/SocketServer.py", line 627, in __init self.handle() File "/usr/lib/python2.6/site-packages/paste/httpserver.py", line 442, in handle BaseHTTPRequestHandler.handle(self) File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle self.handle_one_request() File "/usr/lib/python2.6/site-packages/paste/httpserver.py", line 437, in handle_one_request self.wsgi_execute() File "/usr/lib/python2.6/site-packages/paste/httpserver.py", line 287, in wsgi_execute self.wsgi_start_response) File "/usr/lib/python2.6/site-packages/repoze/who/middleware.py", line 107, in call app_iter = app(environ, wrapper.wrap_start_response) File "/usr/lib/python2.6/site-packages/paste/cascade.py", line 130, in call return self.apps[-1](environ, start_response) File "/usr/lib/python2.6/site-packages/paste/registry.py", line 375, in call app_iter = self.application(environ, start_response) File "/usr/lib/python2.6/site-packages/pylons/middleware.py", line 201, in call self.app, environ, catch_exc_info=True) File "/usr/lib/python2.6/site-packages/pylons/util.py", line 94, in call_wsgi_application app_iter = application(environ, start_response) File "/usr/lib/python2.6/site-packages/weberror/errormiddleware.py", line 162, in call app_iter = self.application(environ, sr_checker) File "/usr/lib/python2.6/site-packages/tg/configuration.py", line 655, in wrapper return app(environ, start_response) File "/usr/lib/python2.6/site-packages/tg/configuration.py", line 555, in remover return app(environ, start_response) File "/usr/lib/python2.6/site-packages/repoze/tm/init.py", line 19, in call result = self.application(environ, save_status_and_headers) File "/usr/lib/python2.6/site-packages/tw/core/middleware.py", line 43, in call return self.wsgi_app(environ, start_response) File "/usr/lib/python2.6/site-packages/tw/core/middleware.py", line 68, in wsgi_app resp = req.get_response(self.application) File "/usr/lib/python2.6/site-packages/webob/init.py", line 1325, in get_response application, catch_exc_info=False) File "/usr/lib/python2.6/site-packages/webob/init.py", line 1293, in call_application app_iter = application(self.environ, start_response) File "/usr/lib/python2.6/site-packages/tw/core/resource_injector.py", line 68, in _injector resp = req.get_response(app) File "/usr/lib/python2.6/site-packages/webob/init.py", line 1325, in get_response application, catch_exc_info=False) File "/usr/lib/python2.6/site-packages/webob/init.py", line 1293, in call_application app_iter = application(self.environ, start_response) File "/usr/lib/python2.6/site-packages/beaker/middleware.py", line 73, in call return self.app(environ, start_response) File "/usr/lib/python2.6/site-packages/beaker/middleware.py", line 152, in call return self.wrap_app(environ, session_start_response) File "/usr/lib/python2.6/site-packages/routes/middleware.py", line 130, in call response = self.app(environ, start_response) File "/usr/lib/python2.6/site-packages/pylons/wsgiapp.py", line 125, in call response = self.dispatch(controller, environ, start_response) File "/usr/lib/python2.6/site-packages/pylons/wsgiapp.py", line 324, in dispatch return controller(environ, start_response) File "/usr/lib64/python2.6/site-packages/luci/controllers/root.py", line 53, in call return BaseController.call(self, environ, start_response) File "/usr/lib64/python2.6/site-packages/luci/lib/base.py", line 30, in call return TGController.call(self, environ, start_response) File "/usr/lib/python2.6/site-packages/pylons/controllers/core.py", line 221, in call response = self._dispatch_call() File "/usr/lib/python2.6/site-packages/pylons/controllers/core.py", line 172, in _dispatch_call response = self._inspect_call(func) File "/usr/lib/python2.6/site-packages/pylons/controllers/core.py", line 107, in _inspect_call result = self._perform_call(func, args) File "/usr/lib/python2.6/site-packages/tg/controllers.py", line 857, in _perform_call self, controller, params, remainder=remainder) File "/usr/lib/python2.6/site-packages/tg/controllers.py", line 172, in _perform_call output = controller(*remainder, **dict(params)) File "", line 2, in create_cmd File "/usr/lib/python2.6/site-packages/repoze/what/plugins/pylonshq/protectors.py", line 118, in wrap_action return action_(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/luci/controllers/cluster.py", line 58, in create_cmd validate_create_cluster_form(self, username, **kw) File "/usr/lib64/python2.6/site-packages/luci/validation/validate_create_cluster_form.py", line 177, in validate_create_cluster_form db_create_cluster_roles(cluster_db_obj) File "/usr/lib64/python2.6/site-packages/luci/lib/db_helpers.py", line 333, in db_create_cluster_roles transaction.commit() File "/usr/lib/python2.6/site-packages/transaction/_manager.py", line 93, in commit return self.get().commit() File "/usr/lib/python2.6/site-packages/transaction/_transaction.py", line 325, in commit t, v, tb = self._saveAndGetCommitishError() File "/usr/lib/python2.6/site-packages/transaction/_transaction.py", line 322, in commit self._commitResources() File "/usr/lib/python2.6/site-packages/transaction/_transaction.py", line 414, in _commitResources rm.tpc_begin(self) File "/usr/lib/python2.6/site-packages/zope/sqlalchemy/datamanager.py", line 67, in tpc_begin self.session.flush() File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/session.py", line 1354, in flush self._flush(objects) File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/session.py", line 1432, in _flush flush_context.execute() File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/unitofwork.py", line 257, in execute UOWExecutor().execute(self, tasks) File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/unitofwork.py", line 720, in execute self.execute_save_steps(trans, task) File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/unitofwork.py", line 741, in execute_save_steps self.execute_dependencies(trans, task) File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/unitofwork.py", line 750, in execute_dependencies self.execute_dependency(trans, dep, False) File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/unitofwork.py", line 732, in execute_dependency dep.execute(trans, isdelete) File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/unitofwork.py", line 699, in execute delete=delete) File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/dependency.py", line 500, in process_dependencies connection.execute(statement, secondary_insert) File "/usr/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 824, in execute return Connection.executors[c](self, object, multiparams, params) File "/usr/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 874, in _execute_clauseelement return self.__execute_context(context) File "/usr/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 894, in __execute_context self._cursor_executemany(context.cursor, context.statement, context.parameters, context=context) File "/usr/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 960, in _cursor_executemany self._handle_dbapi_exception(e, statement, parameters, cursor, context) File "/usr/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 931, in _handle_dbapi_exception raise exc.DBAPIError.instance(statement, parameters, e, connection_invalidated=is_disconnect) IntegrityError: (IntegrityError) columns node_id, task_id are not unique u'INSERT INTO node_tasks (node_id, task_id) VALUES (?, ?)' [[7, 3], [8, 4]]
I went back to each server and they both have the cluster.conf and have the cluster name and server names listed.
Can anyone assist on what I should do now? I appreciate it.