Skip to content

Fix result file - #818

Closed
michal-gubricky wants to merge 1 commit into
mainfrom
fix/k8s-default-storage-class
Closed

michal-gubricky wants to merge 1 commit into
mainfrom
fix/k8s-default-storage-class

Conversation

@michal-gubricky

Copy link
Copy Markdown
Contributor

This PR should fix gen_sonobuoy_result_file, when I run the SCS KaaS default storage class v2 test l got this error:

miso@PC-Miso:~/standards/Tests/kaas$ python3 k8s-default-storage-class/k8s-default-storage-class-check.py

Traceback (most recent call last):
  File "/home/ubuntu/standards/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py", line 269, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/ubuntu/standards/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py", line 263, in main
    gen_sonobuoy_result_file(return_code, return_message, __file__)
  File "/home/ubuntu/standards/Tests/kaas/k8s-default-storage-class/helper.py", line 73, in gen_sonobuoy_result_file
    with open(f"./{test_name}.result.yaml", "w") as file:
FileNotFoundError: [Errno 2] No such file or directory: './/home/ubuntu/standards/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.result.yaml'

Signed-off-by: michal.gubricky <[email protected]>
@michal-gubricky michal-gubricky changed the title Fix gen_sonobuoy_result_file Fix result file Nov 11, 2024
@tonifinger

Copy link
Copy Markdown
Contributor

LGTM!
However, currently there is a PR #745 that revises the k8s-default-storage-class-check.py script.
I would suggest comparing it to this one. I expect it additionally fixes the same error as this PR.

@michal-gubricky

Copy link
Copy Markdown
Contributor Author

LGTM! However, currently there is a PR #745 that revises the k8s-default-storage-class-check.py script. I would suggest comparing it to this one. I expect it additionally fixes the same error as this PR.

Thanks, I wasn’t aware of that PR. I will take a look at it and if it addresses the issue, I'll close this PR in favor of #745.

@michal-gubricky

Copy link
Copy Markdown
Contributor Author

Closing in favor of #745

@fkr
fkr deleted the fix/k8s-default-storage-class branch March 4, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants