cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9029) Proper support to identify CentOS 7 version number on Host
Date Mon, 09 Nov 2015 09:24:10 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-9029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14996244#comment-14996244
] 

ASF GitHub Bot commented on CLOUDSTACK-9029:
--------------------------------------------

Github user wido commented on the pull request:

    https://github.com/apache/cloudstack/pull/1033#issuecomment-155005631
  
    Isn't it safer to execute lsb_release -r and parse that output?
    
    ```
    [root@n01 ~]# lsb_release -r
    Release:	7.1.1503
    [root@n01 ~]#
    ```


> Proper support to identify CentOS 7 version number on Host
> ----------------------------------------------------------
>
>                 Key: CLOUDSTACK-9029
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9029
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.5.2
>         Environment: CenOS 7
>            Reporter: Carles Figuerola
>            Priority: Minor
>
> CentOS 7's /etc/redhat-relase doesn't have the same format as 5 or 6 and it makes cloudstack
report the wrong version on the api.
> centos5:
> [cfiguerola@cent5 ~]$ cat /etc/redhat-release
> CentOS release 5.7 (Final)
> [cfiguerola@cent6 ~]$ cat /etc/redhat-release
> CentOS release 6.6 (Final)
> [cfiguerola@cent7~]$ cat /etc/redhat-release
> CentOS Linux release 7.1.1503 (Core)
> This makes the version on the api be:
> u'Host.OS.Version': u'release' instead of {u'Host.OS.Version': u'7.1.1503'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message