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

bunch of downburst fixes #1990

Merged
merged 3 commits into from
Aug 8, 2024
Merged

bunch of downburst fixes #1990

merged 3 commits into from
Aug 8, 2024

Conversation

kshtsk
Copy link
Contributor

@kshtsk kshtsk commented Aug 2, 2024

No description provided.

@kshtsk kshtsk requested a review from zmc August 2, 2024 18:22
@@ -1127,7 +1127,8 @@ def _ssh_keyscan(hostname):
for line in p.stdout:
host, key = line.strip().decode().split(' ', 1)
keys.append(key)
return sorted(keys)[0]
if len(keys) > 0:
return sorted(keys)[0]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zmc ;-)

@kshtsk kshtsk force-pushed the wip-downburst-fixes branch 6 times, most recently from 5cdac04 to 5d69d3a Compare August 4, 2024 22:13
Kyr Shatskyy added 3 commits August 7, 2024 22:32
If downburst gets hostname as an argument which does not have
a username@ prefix (does not include @-symbol) there is an
index out of range error will occur, which we, obviously,
don't want and wish to allow hostnames don't use login names.

Signed-off-by: Kyr Shatskyy <[email protected]>
Need to passthrough the PATH to downburst environment,
otherwise on some system like macos where mkisofs installed
via homebrew it cannot be found.

Signed-off-by: Kyr Shatskyy <[email protected]>
A host may not have any keys, so _ssh_keyscan should return None,
instead of failing with error:

    IndexError: list index out of range

Fixes: dbd55e3

Signed-off-by: Kyr Shatskyy <[email protected]>
@zmc zmc merged commit 7ca9115 into ceph:main Aug 8, 2024
9 checks passed
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