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

Update to base22 #46

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Update to base22 #46

merged 3 commits into from
Oct 10, 2023

Conversation

cpaelzer
Copy link
Contributor

@cpaelzer cpaelzer commented Oct 10, 2023

Among just making it more modern this fixes authentication issues of core18 openssl/python combination with launchpad.

Issue was like:

  ssl.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:852)

This will give us e.g. 0+git.97b967f which is sufficient,
no need to engineer a more complex one.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
When based on core18 it started to hit ssl issues when talking to
launchpad, like:
  ssl.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert
  protocol version (_ssl.c:852)

This can be reproduced in `snap run --shell ustriage` but not in a
bionic lxd system. While it could be debugged and fixed inside core18,
bumping this up is good overall.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Without this core22 would hit:
  ModuleNotFoundError: No module named 'yaml'

Inspired from more mature core22 python snaps like MAAS which had
this set as well [1]. There and in many others it was added with
core20 and carried since.

[1]: https://github.com/maas/maas/blob/master/snap/snapcraft.yaml#L26

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Copy link
Member

@utkarsh2102 utkarsh2102 left a comment

Choose a reason for hiding this comment

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

This makes sense, +1.

@utkarsh2102 utkarsh2102 merged commit 25bc698 into canonical:master Oct 10, 2023
1 check 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