[
https://issues.apache.org/jira/browse/CLOUDSTACK-9029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14996752#comment-14996752
]
ASF GitHub Bot commented on CLOUDSTACK-9029:
--------------------------------------------
Github user remibergsma commented on the pull request:
https://github.com/apache/cloudstack/pull/1033#issuecomment-155102893
To double check, I also verified the bug fix itself.
List hosts in current master:
```
(local) 🐵 > list hosts
id = 989be22d-7a04-4261-a67d-4121c527724e
name = kvm1
<cut>
details:
Host.OS = CentOS
Host.OS.Kernel.Version = 3.10.0-229.7.2.el7.x86_64
Host.OS.Version = release
<cut>
resourcestate = Enabled
state = Up
type = Routing
version = 4.6.0-SNAPSHOT
zoneid = aad0d2c7-9bb5-4d83-a95f-df6a9a28eff0
zonename = MCCT-SHARED-1
```
List hosts based on this PR:
```
(local) 🐵 > list hosts
id = 2c02446d-f2ca-4deb-8fbf-b78283f62dc6
name = kvm1
<cut>
details:
Host.OS = CentOS
Host.OS.Kernel.Version = 3.10.0-229.14.1.el7.x86_64
Host.OS.Version = 7.1.1503
<cut>
resourcestate = Enabled
state = Up
type = Routing
version = 4.6.0-SNAPSHOT
zoneid = 56a38bc9-7001-4206-965d-36c05129ed84
zonename = MCCT-SHARED-1
```
Thanks for the fix @Carles-Figuerola !
> 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)