Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] User qualification tool runtime error from get_platform_name for onprem platform #683

Closed
cindyyuanjiang opened this issue Dec 8, 2023 · 0 comments · Fixed by #684
Assignees
Labels
bug Something isn't working user_tools Scope the wrapper module running CSP, QualX, and reports (python)

Comments

@cindyyuanjiang
Copy link
Collaborator

Describe the bug
When running the user qualification tool for onprem platform, we encountered runtime error thrown from function get_platform_name.

Details:

2023-12-08 13:56:24,478 ERROR root: Profiling. Raised an error in phase [Execution]
Traceback (most recent call last):
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/rapids/rapids_tool.py", line 110, in wrapper
    func_cb(self, *args, **kwargs)  # pylint: disable=not-callable
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/rapids/rapids_tool.py", line 184, in _execute
    self._run_rapids_tool()
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/rapids/rapids_tool.py", line 595, in _run_rapids_tool
    self._prepare_job_arguments()
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/rapids/rapids_tool.py", line 588, in _prepare_job_arguments
    self._prepare_local_job_arguments()
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/rapids/rapids_tool.py", line 478, in wrapper
    func_cb(self, *args, **kwargs)  # pylint: disable=not-callable
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/rapids/rapids_tool.py", line 767, in _prepare_local_job_arguments
    rapids_arg_list = self._init_rapids_arg_list()
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/rapids/profiling.py", line 250, in _init_rapids_arg_list
    return super()._init_rapids_arg_list() + self._create_autotuner_rapids_args()
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/rapids/rapids_tool.py", line 760, in _init_rapids_arg_list
    return ['--platform', self.ctxt.platform.get_platform_name().replace('_', '-')]
  File "/home/cindyj/Desktop/spark-rapids-tools/user_tools/src/spark_rapids_pytools/cloud_api/onprem.py", line 80, in get_platform_name
    return CspEnv.pretty_print(self_id)
UnboundLocalError: local variable 'self_id' referenced before assignment

Steps/Code to reproduce bug
Cmd: spark_rapids_user_tools onprem profiling --eventlogs <my-event-logs> --verbose

Expected behavior
Should run successfully

Environment details (please complete the following information)

  • Environment location: Standalone
@cindyyuanjiang cindyyuanjiang added bug Something isn't working ? - Needs Triage user_tools Scope the wrapper module running CSP, QualX, and reports (python) labels Dec 8, 2023
@cindyyuanjiang cindyyuanjiang self-assigned this Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user_tools Scope the wrapper module running CSP, QualX, and reports (python)
Projects
None yet
2 participants