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

client: download-results for an AnalyzerVersionRetriever tasks crashes #88

Closed
lzaoral opened this issue Aug 9, 2023 · 0 comments · Fixed by #162
Closed

client: download-results for an AnalyzerVersionRetriever tasks crashes #88

lzaoral opened this issue Aug 9, 2023 · 0 comments · Fixed by #162
Assignees
Labels
bug Something isn't working.

Comments

@lzaoral
Copy link
Member

lzaoral commented Aug 9, 2023

  1. Schedule an errata scan.
  2. Try to download results for the associated AnalyzerVersionRetriever task.
  3. Witness the following traceback:
Traceback (most recent call last):
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/osh-cli", line 79, in <module>
    main()
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/osh-cli", line 72, in main
    parser.run()
  File "/Users/lzaoral/redhat/OpenScanHub/kobo/kobo/cli.py", line 296, in run
    cmd.run(*cmd_args, **cmd_kwargs)
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/cmd_download_results.py", line 51, in run
    fetch_results(self.hub, results_dir, task_id)
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/shortcuts.py", line 128, in fetch_results
    tarball = _get_result_filename(task_info['args']) + '.tar.xz'
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/shortcuts.py", line 116, in _get_result_filename
    nvr = task_args['build']
          ~~~~~~~~~^^^^^^^^^
KeyError: 'build'
@lzaoral lzaoral added the bug Something isn't working. label Aug 9, 2023
@lzaoral lzaoral self-assigned this Oct 20, 2023
lzaoral added a commit to lzaoral/openscanhub that referenced this issue Oct 20, 2023
Fixes the following traceback:
```
Traceback (most recent call last):
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/osh-cli", line 79, in <module>
    main()
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/osh-cli", line 72, in main
    parser.run()
  File "/Users/lzaoral/redhat/OpenScanHub/kobo/kobo/cli.py", line 296, in run
    cmd.run(*cmd_args, **cmd_kwargs)
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/cmd_download_results.py", line 51, in run
    fetch_results(self.hub, results_dir, task_id)
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/shortcuts.py", line 128, in fetch_results
    tarball = _get_result_filename(task_info['args']) + '.tar.xz'
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/shortcuts.py", line 116, in _get_result_filename
    nvr = task_args['build']
          ~~~~~~~~~^^^^^^^^^
KeyError: 'build'
```

Resolves: openscanhub#88
lzaoral added a commit to lzaoral/openscanhub that referenced this issue Oct 26, 2023
Fixes the following traceback:
```
Traceback (most recent call last):
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/osh-cli", line 79, in <module>
    main()
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/osh-cli", line 72, in main
    parser.run()
  File "/Users/lzaoral/redhat/OpenScanHub/kobo/kobo/cli.py", line 296, in run
    cmd.run(*cmd_args, **cmd_kwargs)
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/cmd_download_results.py", line 51, in run
    fetch_results(self.hub, results_dir, task_id)
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/shortcuts.py", line 128, in fetch_results
    tarball = _get_result_filename(task_info['args']) + '.tar.xz'
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lzaoral/redhat/OpenScanHub/osh/client/commands/shortcuts.py", line 116, in _get_result_filename
    nvr = task_args['build']
          ~~~~~~~~~^^^^^^^^^
KeyError: 'build'
```

Resolves: openscanhub#88
@lzaoral lzaoral closed this as completed in 914d6bb Nov 2, 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant