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

Improve detection of debian systems #865

Closed
wants to merge 1 commit into from
Closed

Improve detection of debian systems #865

wants to merge 1 commit into from

Conversation

samuelallan72
Copy link

@samuelallan72 samuelallan72 commented Oct 26, 2023

It appears, from reading osplatform.py, that Debian should be supported,
however, it's been observed in python3.11 on debian bookworm,
that it raises an error about no debian support (in a zuul test run):

debian-bookworm |   File "/home/zuul/src/opendev.org/openstack/charm-ceph-iscsi/.tox/py311/lib/python3.11/site-packages/charmhelpers/osplatform.py", line 35, in get_platform
debian-bookworm |     raise RuntimeError("This module is not supported on {}."
debian-bookworm | RuntimeError: This module is not supported on Debian GNU/Linux.

Improve detection by comparing in a case insensitive manner.

Fixes bug https://bugs.launchpad.net/charm-helpers/+bug/2040958

It appears, from reading osplatform.py, that Debian should be supported,
however, it's been observed in python3.11 on debian bookworm,
that it raises an error about no debian support (in a zuul test run):

```
debian-bookworm |   File "/home/zuul/src/opendev.org/openstack/charm-ceph-iscsi/.tox/py311/lib/python3.11/site-packages/charmhelpers/osplatform.py", line 35, in get_platform
debian-bookworm |     raise RuntimeError("This module is not supported on {}."
debian-bookworm | RuntimeError: This module is not supported on Debian GNU/Linux.
```

Improve detection by comparing in a case insensitive manner.
@samuelallan72
Copy link
Author

Note: on pause, pending discussion over at #862

@samuelallan72 samuelallan72 marked this pull request as draft October 26, 2023 04:08
@samuelallan72 samuelallan72 deleted the detect-debian branch November 5, 2023 22:24
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.

1 participant