Skip to content

Compatibility with Ubuntu 18.04 LTS (bionic) as a host OS #331

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

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

jandubois
Copy link
Member

Compatibility with qemu 2.11.1

  • -accel help writes to stderr, not stdout
  • -netdev help is not implemented

The -netdev help info is only used to detect vde support, which isn't used on Linux, so this doesn't affect Lima.

Compatibility with OpenSSH 7.1p1

The feature to add algorithms to the front of the default set by using a leading ^ has been added in OpenSSH 8.0 and causes an error on earlier versions.

Specifying a different cipher is just a (minor) performance tweak, not a requirement.


This PR also moves the SSH info gathering from the init phase to "on demand" when first used. That way the logging system is initialized when the detect* functions are running.

* `-accel help` writes to stderr, not stdout
* `-netdev help` is not implemented

The -netdev info is only used to detect vde support, which isn't used
on Linux, so this doesn't affect Lima.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
@jandubois jandubois added the enhancement New feature or request label Oct 13, 2021
@jandubois jandubois added this to the vNext milestone Oct 13, 2021
The feature to add algorithms to the front of the default set by
using a leading `^` has been added in OpenSSH 8.0 and cause an
error on earlier versions.

Specifying a different cipher is just a (minor) performance tweak,
not a requirement.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks. We should have a CI, but it can be added later

if err := cmd.Run(); err != nil {
logrus.Warnf("failed to run %v: stderr=%q", cmd.Args, stderr.String())
} else {
regex := regexp.MustCompile(`^OpenSSH_(\d+\.\d+)(?:p(\d+))?\b`)
Copy link
Member

Choose a reason for hiding this comment

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

Can we have unit tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just for the regexp? Then yes, we can move it to a separate function that can be tested without calling ssh -V.

@jandubois
Copy link
Member Author

jandubois commented Oct 14, 2021

We should have a CI, but it can be added later

What did you have in mind? Another Cirrus CI task that runs on 18.04 instead of 21.04? Testing just one of the guests, or all of them?

I'm kind of wary of adding more CI platforms while the current ones are still flaky. It will just add to the frustration.

@AkihiroSuda
Copy link
Member

I was thinking testing only the default instance on Ubuntu 18.04 on Cirrus, but I agree it may bring more frustration, so this can be revisited later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants