Tendrl / node-agent

A python agent local to every managed storage node in the sds cluster
GNU Lesser General Public License v2.1
4 stars 14 forks source link

node-agent crashing with devel version of glusterfs #849

Open dahorak opened 5 years ago

dahorak commented 5 years ago

On cluster with development version of Glusterfs (e.g. glusterfs-server-6dev-0.3.git76cb1e7.el7.x86_64), tendrl-node-agent is crashing - generating following traceback in logs:

Sep 18 08:19:33 ci-usm1-gl1 journal: 2018-09-18 06:19:33.224203+00:00 - node_agent 
- /usr/lib/python2.7/site-packages/tendrl/node_agent/node_sync/sds_detect.py:256 - sync - ERROR 
- node_sync SDS detection failed: invalid literal for int() with base 10: '6dev-0'
- ValueError: [
  {u'function': u'__bootstrap', u'line': 785, u'file': u'/usr/lib64/python2.7/threading.py', u'statement': u'self.__bootstrap_inner()'},
  {u'function': u'__bootstrap_inner', u'line': 812, u'file': u'/usr/lib64/python2.7/threading.py', u'statement': u'self.run()'},
  {u'function': u'run', u'line': 765, u'file': u'/usr/lib64/python2.7/threading.py', u'statement': u'self.__target(*self.__args, **self.__kwargs)'},
  {u'function': u'sync', u'line': 41, u'file': u'/usr/lib/python2.7/site-packages/tendrl/node_agent/node_sync/sds_detect.py', u'statement': u'sds_details = plugin.discover_storage_system()'},
  {u'function': u'discover_storage_system', u'line': 102, u'file': u'/usr/lib/python2.7/site-packages/tendrl/node_agent/discovery/sds/plugins/discover_gluster_sds_details.py', u'statement': u'if int(maj_ver) == 3 and int(min_ver) == 8 and \\'}]

Affected version: tendrl-node-agent-1.6.3-9.el7.noarch