Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1572118 - ERROR - node_sync SDS detection failed: need more than 0 values to unpack - ValueError
ERROR - node_sync SDS detection failed: need more than 0 values to unpack - V...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: web-admin-tendrl-node-agent (Show other bugs)
3.4
Unspecified Unspecified
unspecified Severity unspecified
: ---
: RHGS 3.4.0
Assigned To: Jeff Brown
Daniel Horák
:
Depends On:
Blocks: 1503137
  Show dependency treegraph
 
Reported: 2018-04-26 04:40 EDT by Daniel Horák
Modified: 2018-09-04 03:06 EDT (History)
5 users (show)

See Also:
Fixed In Version: tendrl-commons-1.6.3-4.el7rhgs
Doc Type: Bug Fix
Doc Text:
Cause: RHGSWA fails with ansible version 2.5.2 Consequence: RHGSWA ansible actions fail and hence node-agent service fails to collect any data Fix: Support Ansible 2.5.2 by patching the ansible runner util in tendrl-commons Result: RHGSWA works correctly with ansible 2.5.2 and does not fail to collect data/metrics
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-04 03:05:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2616 None None None 2018-09-04 03:06 EDT

  None (edit)
Description Daniel Horák 2018-04-26 04:40:03 EDT
Description of problem:
  /var/log/messages on RHGS WA server contains lots of errors like this
  (split to multiple lines for better readability):
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Apr 26 04:20:35 dahorak-usm1-server journal: 2018-04-26 08:20:35.454841+00:00
  - node_agent 
  - /usr/lib/python2.7/site-packages/tendrl/node_agent/node_sync/sds_detect.py:263 
  - sync - ERROR - node_sync SDS detection failed: need more than 0 values to unpack 
  - 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': 48,
        u'file': u'/usr/lib/python2.7/site-packages/tendrl/node_agent/discovery/sds/plugins/discover_gluster_sds_details.py',
        u'statement': u'cluster_id,
        gfs_peers = self._derive_cluster_id()'}]
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Version-Release number of selected component (if applicable):
  tendrl-ansible-1.6.3-2.el7rhgs.noarch
  tendrl-api-1.6.3-2.el7rhgs.noarch
  tendrl-api-httpd-1.6.3-2.el7rhgs.noarch
  tendrl-commons-1.6.3-2.el7rhgs.noarch
  tendrl-grafana-plugins-1.6.3-1.el7rhgs.noarch
  tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
  tendrl-monitoring-integration-1.6.3-1.el7rhgs.noarch
  tendrl-node-agent-1.6.3-2.el7rhgs.noarch
  tendrl-notifier-1.6.3-2.el7rhgs.noarch
  tendrl-selinux-1.5.4-2.el7rhgs.noarch
  tendrl-ui-1.6.3-1.el7rhgs.noarch


How reproducible:
  100%

Steps to Reproduce:
1. Install and configure Gluster cluster
2. Install and configure RHGS WA
3. Import Gluster cluster into RHGS WA
4. check /var/log/messages on RHGS WA Server

Actual results:
  The log contains lots of errors mentioned above.

Expected results:
  There should be no such errors in the logs.

Additional info:
Comment 1 gowtham 2018-05-02 03:29:58 EDT
Rohan this because of ansible version problem, Martin can you please update ansible version and then recheck it. we actually did some fix to work tendrl with new ansible version. It won't work with an old version. please update ansible version of server and storage nodes and try it again. I faced the same issue with an old version.
Comment 2 gowtham 2018-05-02 03:32:31 EDT
For the latest version, this problem has occurred so we did some change. So this is fixed in new release. Please make sure you are using new release and a new version of Ansible.
Rohan, please comment here.
Comment 10 Daniel Horák 2018-05-15 09:57:24 EDT
Tested and VERIFIED on few clusters, there is no such sync error in
/var/log/messages.

Version-Release number of selected component:
  Red Hat Enterprise Linux Server release 7.5 (Maipo)

  # rpm -qa | grep -e tendrl -e etcd -e ansbile -e collect | sort
  collectd-5.7.2-3.1.el7rhgs.x86_64
  collectd-ping-5.7.2-3.1.el7rhgs.x86_64
  etcd-3.2.7-1.el7.x86_64
  libcollectdclient-5.7.2-3.1.el7rhgs.x86_64
  libcollection-0.7.0-29.el7.x86_64
  python-etcd-0.4.5-2.el7rhgs.noarch
  rubygem-etcd-0.3.0-2.el7rhgs.noarch
  tendrl-ansible-1.6.3-3.el7rhgs.noarch
  tendrl-api-1.6.3-3.el7rhgs.noarch
  tendrl-api-httpd-1.6.3-3.el7rhgs.noarch
  tendrl-commons-1.6.3-4.el7rhgs.noarch
  tendrl-grafana-plugins-1.6.3-2.el7rhgs.noarch
  tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
  tendrl-monitoring-integration-1.6.3-2.el7rhgs.noarch
  tendrl-node-agent-1.6.3-4.el7rhgs.noarch
  tendrl-notifier-1.6.3-2.el7rhgs.noarch
  tendrl-selinux-1.5.4-2.el7rhgs.noarch
  tendrl-ui-1.6.3-1.el7rhgs.noarch

>> VERIFIED
Comment 13 errata-xmlrpc 2018-09-04 03:05:15 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2616

Note You need to log in before you can comment on or make changes to this bug.