Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-9258

Task "Check GLUSTERFS" is sometime performed on *non* glusterfs server and fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.1
    • None
    • None
    • HDP 2.1 on RHEL 6 with 2.1.GlusterFS stack.

    Description

      Task Check GLUSTERFS (from Start All Services task) is on some installations performed on non glusterfs server (on server where is YARN Master and other master services, but no data, no NodeManager, etc.)
      It apply also for GLUSTERFS Service Check (from GLUSTERFS-Service Actions tab-button).

      The task fails with following errors in log, which make sense, because on the "master" server are only glusterfs client libraries (glusterfs-server is only on storage nodes).

      stdout:   /var/lib/ambari-agent/data/output-384.txt
      
      2015-01-22 10:50:15,211 - Execute['env  GLUSTERFS_LOG_DIR=/var/log/glusterfs GLUSTERFS_PID_DIR=/var/run/glusterfs glusterd --version'] {'logoutput': True, 'tries': 3, 'try_sleep': 20}
      2015-01-22 10:50:15,263 - env: glusterd: No such file or directory
      2015-01-22 10:50:15,264 - Retrying after 20 seconds. Reason: Execution of 'env  GLUSTERFS_LOG_DIR=/var/log/glusterfs GLUSTERFS_PID_DIR=/var/run/glusterfs glusterd --version' returned 127. env: glusterd: No such file or directory
      2015-01-22 10:50:35,335 - env: glusterd: No such file or directory
      2015-01-22 10:50:35,336 - Retrying after 20 seconds. Reason: Execution of 'env  GLUSTERFS_LOG_DIR=/var/log/glusterfs GLUSTERFS_PID_DIR=/var/run/glusterfs glusterd --version' returned 127. env: glusterd: No such file or directory
      2015-01-22 10:50:55,392 - env: glusterd: No such file or directory
      2015-01-22 10:50:55,393 - Error while executing command 'service_check':
      Traceback (most recent call last):
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 111, in execute
          method(env)
        File "/var/lib/ambari-agent/cache/stacks/HDP/2.1.GlusterFS/services/GLUSTERFS/package/scripts/service_check.py", line 33, in service_check
          try_sleep = 20
        File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__
          self.env.run()
        File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 149, in run
          self.run_action(resource, action)
        File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 115, in run_action
          provider_action()
        File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 239, in action_run
          raise ex
      Fail: Execution of 'env  GLUSTERFS_LOG_DIR=/var/log/glusterfs GLUSTERFS_PID_DIR=/var/run/glusterfs glusterd --version' returned 127. env: glusterd: No such file or directory
      

      If the Check GLUSTERFS task is performed on one of the storage nodes (on some installations), it pass well.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dahorak Daniel Horak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: