IBM / CAST

CAST can enhance the system management of cluster-wide resources. It consists of the open source tools: cluster system management (CSM) and burst buffer.
Eclipse Public License 1.0
27 stars 34 forks source link

CSM python scripts error when tried with --help option #928

Closed thanh-lam closed 4 years ago

thanh-lam commented 4 years ago

Describe the bug These python scripts or commands are tools for querying job info from CSM database or BDS data indexes. First tried with RHEL 8.1 produced following errors:

[root@c685f4n05 python]# ./findJobsRunning.py --help Traceback (most recent call last): File "./findJobsRunning.py", line 21, in from elasticsearch import Elasticsearch ImportError: No module named elasticsearch

[root@c685f4n05 python]# ./findJobKeys.py --help Traceback (most recent call last): File "./findJobKeys.py", line 23, in from dateutil.parser import parse ImportError: No module named dateutil.parser

To Reproduce Steps to reproduce the behavior:

  1. Go to '/opt/ibm/csm/bigdata/python/'

  2. List the python commands [root@c685f4n05 python]# ls -ltr total 84 -rw-r--r-- 1 root root 1366 Mar 26 23:15 sampleWeightedErrorMap.json -rw-r--r-- 1 root root 29 Mar 26 23:15 requirements.txt -rwxr-xr-x 1 root root 9083 Apr 15 15:17 findWeightedErrors.py -rwxr-xr-x 1 root root 6248 Apr 15 15:17 findUserJobs.py -rwxr-xr-x 1 root root 5395 Apr 15 15:17 findJobTimeRange.py -rwxr-xr-x 1 root root 5194 Apr 15 15:17 findJobsRunning.py -rwxr-xr-x 1 root root 4727 Apr 15 15:17 findJobsInRange.py -rwxr-xr-x 1 root root 7900 Apr 15 15:17 findJobMetrics.py -rwxr-xr-x 1 root root 7832 Apr 15 15:17 findJobKeys.py -rw-r--r-- 1 root root 12753 Apr 15 15:17 cast_helper.py

  3. Run one of those command with option --help, for example:

    ./findUserJobs.py --help

  4. See error

Expected behavior The --help option should display command usage.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Issue Source: Testing CSM 1.8 and ELK 7.5.1 updates on RHEL 8.1.