Comment 4 for bug 1419775

Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

Looks like problem with Zabbix and more commonly with condition. We does not need to perform request to Zabbix in case of deleting entire cluster.

2015-02-09 11:52:01.335 DEBUG [7f594b058740] (cluster) Trying to execute cluster deletion task
2015-02-09 11:52:01.354 DEBUG [7f594b058740] (manager) Removing cluster tasks
2015-02-09 11:52:01.355 DEBUG [7f594b058740] (manager) Labeling cluster nodes to delete
2015-02-09 11:52:01.370 DEBUG [7f594b058740] (manager) Creating cluster deletion task
2015-02-09 11:52:01.385 DEBUG [7f594b058740] (task) Cluster deletion task is running
2015-02-09 11:52:01.386 DEBUG [7f594b058740] (task) DeletionTask.execute(task=650e1e3e-2fa0-4813-981d-7e42a257b550)
2015-02-09 11:52:01.386 DEBUG [7f594b058740] (task) Nodes deletion task is running
2015-02-09 11:52:01.422 DEBUG [7f594b058740] (task) Removing nodes [{'slave_name': u'node-1', 'id': 1, 'roles': [u'controller'], 'uid': 1}, {'slave_name': u'node-2', 'id': 2, 'roles': [u'compute'], 'uid': 2}, {'slave_name': u'node-3', 'id': 3, 'roles': [u'zabbix-server'], 'uid': 3}] from zabbix
2015-02-09 11:52:01.423 DEBUG [7f594b058740] (zabbix) Zabbix request: {'params': {'password': u'zabbix', 'user': u'admin'}, 'jsonrpc': '2.0', 'id': '1', 'method': 'user.authenticate'}
2015-02-09 11:52:01.477 DEBUG [7f594b058740] (zabbix) Zabbix response: {'jsonrpc': '2.0', 'id': '1', 'error': {'message': "Error connecting to database [Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]", 'code': 1}}
2015-02-09 11:52:01.497 ERROR [7f594b058740] (manager) Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nailgun/task/manager.py", line 55, in _call_silently
    to_return = method(task, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nailgun/task/task.py", line 468, in execute
    DeletionTask.execute(task, 'remove_cluster_resp')
  File "/usr/lib/python2.6/site-packages/nailgun/task/task.py", line 319, in execute
    zabbix_credentials, nodes_to_delete
  File "/usr/lib/python2.6/site-packages/nailgun/utils/zabbix.py", line 86, in remove_from_zabbix
    auth = cls._zabbix_auth(url, user, password)
  File "/usr/lib/python2.6/site-packages/nailgun/utils/zabbix.py", line 66, in _zabbix_auth
    auth_hash = cls._make_zabbix_request(url, method, params)
  File "/usr/lib/python2.6/site-packages/nailgun/utils/zabbix.py", line 52, in _make_zabbix_request
    data = result['error']['data']
KeyError: 'data'