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

CASMTRIAGE-5820: Fix for HSM query handling #206

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [2.6.2] - 08-14-2023
### Fixed
Fixed HSM query handling to prevent errors from querying with an empty list nodes.

## [2.6.1] - 08-10-2023
### Fixed
Fixed database key migration when upgrading from newer versions of BOS.
Expand Down
2 changes: 1 addition & 1 deletion src/bos/operators/session_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _apply_arch(self, nodes, arch):
"""
valid_archs = set([arch])
if arch == 'X86':
valid_archs.add('Unknown')
valid_archs.add('UNKNOWN')
hsm_filter = HSMState(enabled=True)
return set(hsm_filter.filter_by_arch(nodes, valid_archs))

Expand Down
2 changes: 2 additions & 0 deletions src/bos/operators/utils/clients/hsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def read_all_node_xnames():

def get_components(node_list, enabled=None):
"""Get information for all list components HSM"""
if not node_list:
return []
session = requests_retry_session()
try:
payload = {'ComponentIDs': node_list}
Expand Down