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

SUSE Linux Enterprise Server 11 SP3 not detected as SLES. #24019

Closed
dumol opened this issue May 21, 2015 · 5 comments
Closed

SUSE Linux Enterprise Server 11 SP3 not detected as SLES. #24019

dumol opened this issue May 21, 2015 · 5 comments
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt fixed-pls-verify fix is linked, bug author to confirm fix Grains P2 Priority 2 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@dumol
Copy link
Contributor

dumol commented May 21, 2015

We have two SUSE Linux Enterprise Server installations: one is version 11 SP3 and the other is version SP12. Both versions are actively supported upstream by Novell. Problem is we can't differentiate these two SLES servers from any OpenSUSE installations using os or osfullname, because Salt returns SLES only for the newer version.

Below is the output for the relevant OS grains for both SLES servers:

bs1i-lnx-sles12-x64-42:
    ----------
    os:
        SLES
    os_family:
        Suse
    oscodename:
        x86_64
    osfullname:
        SLES
    osrelease:
        12
    osrelease_info:
        - 12
bs1b-lnx-sles11sp3-x64-41:
    ----------
    os:
        SUSE
    os_family:
        Suse
    oscodename:
        n.a
    osfullname:
        SUSE
    osrelease:
        11 SP3
    osrelease_info:
        - 11 SP3

The output of lsb_release -a on both minions:

bs1i-lnx-sles12-x64-42:
    LSB Version:        n/a
    Distributor ID:     SUSE LINUX
    Description:        SUSE Linux Enterprise Server 12
    Release:    12
    Codename:   12
bs1b-lnx-sles11sp3-x64-41:
    LSB Version:        core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
    Distributor ID:     SUSE LINUX
    Description:        SUSE Linux Enterprise Server 11 (x86_64)
    Release:    11
    Codename:   n/a

And the output of cat /etc/SuSE-release on both:

bs1i-lnx-sles12-x64-42:
    SUSE Linux Enterprise Server 12 (x86_64)
    VERSION = 12
    PATCHLEVEL = 0
    # This file is deprecated and will be removed in a future service pack or release.
    # Please check /etc/os-release for details about this release.
bs1b-lnx-sles11sp3-x64-41:
    SUSE Linux Enterprise Server 11 (x86_64)
    VERSION = 11
    PATCHLEVEL = 3

As you see above, the /etc/SuSE-release config file is being phased out. On version 12 or newer /etc/os-release should be used instead. For completeness, cat'ing this file on both minions returns:

bs1i-lnx-sles12-x64-42:
    NAME="SLES"
    VERSION="12"
    VERSION_ID="12"
    PRETTY_NAME="SUSE Linux Enterprise Server 12"
    ID="sles"
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:suse:sles:12"
bs1b-lnx-sles11sp3-x64-41:
    cat: /etc/os-release: No such file or directory

Thanks!

@jfindlay jfindlay added Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around Core relates to code central or existential to Salt P2 Priority 2 labels May 26, 2015
@jfindlay jfindlay added this to the Approved milestone May 26, 2015
@jfindlay
Copy link
Contributor

@dumol, thanks for the report.

@aboe76
Copy link
Contributor

aboe76 commented Nov 12, 2015

@jfindlay I have found more people with this issue:
https://bugzilla.novell.com/show_bug.cgi?id=954135

could you help me resolve this?

@jfindlay
Copy link
Contributor

@dumol, thanks for the detailed report. This should be fixed in #28892. @aboe76, please verify the fix if you can, thanks.

@dumol
Copy link
Contributor Author

dumol commented Nov 18, 2015

Thanks, that should do it. Looking forward to get this fix in an update.

@dumol
Copy link
Contributor Author

dumol commented Mar 28, 2016

Have updated to 2015.8.7 on both SLES minions and the issue is indeed gone. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt fixed-pls-verify fix is linked, bug author to confirm fix Grains P2 Priority 2 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

3 participants