feat(instance-manager): warn on deprecated or unsupported OS versions#8601
Merged
mnencia merged 6 commits intocloudnative-pg:mainfrom Sep 25, 2025
Merged
feat(instance-manager): warn on deprecated or unsupported OS versions#8601mnencia merged 6 commits intocloudnative-pg:mainfrom
mnencia merged 6 commits intocloudnative-pg:mainfrom
Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
Contributor
|
/test |
Contributor
|
@gbartolini, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/17839321012 |
Contributor
|
I tried with Bullseye: |
gbartolini
approved these changes
Sep 18, 2025
gbartolini
approved these changes
Sep 18, 2025
6ed0baf to
a98169a
Compare
The instance manager now reads the `/etc/os-release` file and issues a warning if the detected operating system version is deprecated or unsupported. A table of known distributions is maintained in the instance manager. If the distribution is unknown, or if `/etc/os-release` is missing or unreadable, the check is skipped. Closes: cloudnative-pg#8575 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
a98169a to
2a776e4
Compare
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
NiccoloFei
approved these changes
Sep 25, 2025
mnencia
approved these changes
Sep 25, 2025
cnpg-bot
pushed a commit
that referenced
this pull request
Sep 25, 2025
…#8601) The instance manager now reads `/etc/os-release` and logs a warning if the detected OS version is deprecated or unsupported, according to the official CNPG `postgres-containers` project. A table of known distributions is maintained internally. If the distribution is unknown, or if `/etc/os-release` is missing or unreadable, the check is skipped. Closes: #8575 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> (cherry picked from commit 319f9b0)
cnpg-bot
pushed a commit
that referenced
this pull request
Sep 25, 2025
…#8601) The instance manager now reads `/etc/os-release` and logs a warning if the detected OS version is deprecated or unsupported, according to the official CNPG `postgres-containers` project. A table of known distributions is maintained internally. If the distribution is unknown, or if `/etc/os-release` is missing or unreadable, the check is skipped. Closes: #8575 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> (cherry picked from commit 319f9b0)
cnpg-bot
pushed a commit
that referenced
this pull request
Sep 25, 2025
…#8601) The instance manager now reads `/etc/os-release` and logs a warning if the detected OS version is deprecated or unsupported, according to the official CNPG `postgres-containers` project. A table of known distributions is maintained internally. If the distribution is unknown, or if `/etc/os-release` is missing or unreadable, the check is skipped. Closes: #8575 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> (cherry picked from commit 319f9b0)
rossigee
pushed a commit
to rossigee/cloudnative-pg
that referenced
this pull request
Oct 2, 2025
…cloudnative-pg#8601) The instance manager now reads `/etc/os-release` and logs a warning if the detected OS version is deprecated or unsupported, according to the official CNPG `postgres-containers` project. A table of known distributions is maintained internally. If the distribution is unknown, or if `/etc/os-release` is missing or unreadable, the check is skipped. Closes: cloudnative-pg#8575 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
THE-BRAHMA
pushed a commit
to THE-BRAHMA/cloudnative-pg
that referenced
this pull request
Oct 30, 2025
…cloudnative-pg#8601) The instance manager now reads `/etc/os-release` and logs a warning if the detected OS version is deprecated or unsupported, according to the official CNPG `postgres-containers` project. A table of known distributions is maintained internally. If the distribution is unknown, or if `/etc/os-release` is missing or unreadable, the check is skipped. Closes: cloudnative-pg#8575 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The instance manager now reads
/etc/os-releaseand logs a warning if the detected OS version is deprecated or unsupported, according to the official CNPGpostgres-containersproject.A table of known distributions is maintained internally. If the distribution is unknown, or if
/etc/os-releaseis missing or unreadable, the check is skipped.Closes: #8575