Repository navigation
Closed
Labels
ConfirmedSalt engineer has confirmed bug/feature - often including a MCVECorerelates to code central or existential to SaltGrainsP1Priority 1PlatformRelates to OS, containers, platform-based utilities like FS, system based appsRegressionThe issue is a bug that breaks functionality known to work in previous releases.bugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixneeds-testcasePR needs test cases written, or the issue is about a bug/feature that needs test casesseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
It looks like the osrelease* grains aren't being set on CentOS 7 with 2015.8.5 as they were with 2015.5.x. The osrelease_info bits mostly fell out.
2015.5.x:
os:
CentOS
os_family:
RedHat
osarch:
x86_64
oscodename:
Core
osfinger:
CentOS Linux-7
osfullname:
CentOS Linux
osmajorrelease:
7
osrelease:
7.1.1503
osrelease_info:
- 7
- 1
- 1503
2015.8.5:
os:
CentOS
os_family:
RedHat
osarch:
x86_64
oscodename:
CentOS Linux 7 (Core)
osfinger:
CentOS Linux-7
osfullname:
CentOS Linux
osmajorrelease:
7
osrelease:
7
osrelease_info:
- 7
Metadata
Metadata
Assignees
Labels
ConfirmedSalt engineer has confirmed bug/feature - often including a MCVECorerelates to code central or existential to SaltGrainsP1Priority 1PlatformRelates to OS, containers, platform-based utilities like FS, system based appsRegressionThe issue is a bug that breaks functionality known to work in previous releases.bugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixneeds-testcasePR needs test cases written, or the issue is about a bug/feature that needs test casesseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
jfindlay commentedon Feb 19, 2016
@cwicklein, thanks for reporting.
jfindlay commentedon Feb 19, 2016
I can confirm this:
2015.5.9
2015.8.7
ssgward commentedon Feb 19, 2016
@jfindlay - is this just for Cent 7 or other distros, too? Trying to determine how wide spread this is.
jfindlay commentedon Feb 19, 2016
I only tested on CentOS 7.
DmitryKuzmenko commentedon Feb 20, 2016
Works on Centos 6.6:
DmitryKuzmenko commentedon Feb 20, 2016
Had some time today to check this: the difference is the following:
CentOS 6
/etc/os-release fileor it's just missing on my centos, will check on some another./etc/centos-releasethat's content is:CentOS 7
/etc/os-releasethat is out of the freedesktop.org standard: it contains the only major release number for the os version id:This is fresh default CentOS 7 installed today from the lates minimal iso.
BTW, it also has the old-style
/etc/centos-releasethat contains good useful number:Salt uses the following priority to determine the release (stops if found):
So the solution is to make an exception for CentOS.
My propose:
Add an exception for CentOS to use centos-release instead of os-release. This wouldn't touch the older versions because they have no os-release file and centos-release is the second by priority regarding the current logic.
I can fix it on Wed (my next working day). If there is a need to do this sooner, u r welcome!
14 remaining items
gzcwnk commentedon Mar 22, 2016
-bash-4.1# salt vuwunicopatch06.ods.vuw.ac.nz grains.item os osrelease oscodename
vuwunicopatch06.ods.vuw.ac.nz:
----------
os:
RedHat
oscodename:
Santiago
osrelease:
6.7
-bash-4.1# salt vuwunicomysqlp2.ods.vuw.ac.nz grains.item os osrelease oscodename
vuwunicomysqlp2.ods.vuw.ac.nz:
----------
os:
RedHat
oscodename:
Red Hat Enterprise Linux Server 7.2 (Maipo)
osrelease:
7.2
-bash-4.1#
DmitryKuzmenko commentedon Mar 22, 2016
@gzcwnk Could you show the contents of /etc/redhat-release on both machines?
gzcwnk commentedon Mar 22, 2016
[jonesst1@vuwunicossj0001 Desktop]$ more /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
[jonesst1@vuwunicossj0001 Desktop]$
gzcwnk commentedon Mar 22, 2016
[jonesst1@vuwunicopatch06 ~]$ more /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
[jonesst1@vuwunicopatch06 ~]$
and,
Kickstarted on 2016-03-21
[jonesst1@vuwunicomysqlp2 ~]$ more /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
[jonesst1@vuwunicomysqlp2 ~]$
meggiebot commentedon Mar 29, 2016
Can you take another look @DmitryKuzmenko
DmitryKuzmenko commentedon Mar 29, 2016
@meggiebot will try to do today, I'm downloading RHEL 7.2 ISO right now.
DmitryKuzmenko commentedon Mar 29, 2016
@meggiebot, @gzcwnk Done!
gzcwnk commentedon Mar 29, 2016
Hi,
So I can just update via the repo?
gzcwnk commentedon Mar 29, 2016
Not sure what is going on here but I have a dependency issue when I try and update,
[root@vuwunicossj0001 yum.repos.d]# yum update -y salt-minion
Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-manager
This system is not subscribed to any channels.
RHN channel support will be disabled.
saltstack-salt | 2.9 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package salt-minion.noarch 0:2015.5.2-3.el7.centos will be updated
---> Package salt-minion.noarch 0:2015.8.8-2.el7 will be an update
--> Processing Dependency: salt = 2015.8.8-2.el7 for package: salt-minion-2015.8.8-2.el7.noarch
--> Running transaction check
---> Package salt.noarch 0:2015.5.2-3.el7.centos will be updated
---> Package salt.noarch 0:2015.8.8-2.el7 will be an update
--> Processing Dependency: python-tornado >= 4.2.1 for package: salt-2015.8.8-2.el7.noarch
--> Processing Dependency: python-futures >= 2.0 for package: salt-2015.8.8-2.el7.noarch
--> Running transaction check
---> Package python-futures.noarch 0:3.0.3-1.el7 will be installed
---> Package salt.noarch 0:2015.8.8-2.el7 will be an update
--> Processing Dependency: python-tornado >= 4.2.1 for package: salt-2015.8.8-2.el7.noarch
--> Finished Dependency Resolution
Error: Package: salt-2015.8.8-2.el7.noarch (saltstack-salt)
Requires: python-tornado >= 4.2.1
Available: python-tornado-2.2.1-8.el7.noarch (rhel-7-server-optional-rpms)
python-tornado = 2.2.1-8.el7
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
Error: Package: salt-2015.8.8-2.el7.noarch (saltstack-salt)
Requires: python-tornado >= 4.2.1
Available: python-tornado-2.2.1-8.el7.noarch (rhel-7-server-optional-rpms)
python-tornado = 2.2.1-8.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@vuwunicossj0001 yum.repos.d]# yum whatprovides python-tornado
Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-manager
This system is not subscribed to any channels.
RHN channel support will be disabled.
python-tornado-2.2.1-8.el7.noarch : Scalable, non-blocking web server and tools
Repo : rhel-7-server-optional-rpms
[root@vuwunicossj0001 yum.repos.d]#
[root@vuwunicossj0001 yum.repos.d]# yum whatprovides python-tornado
Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-manager
This system is not subscribed to any channels.
RHN channel support will be disabled.
python-tornado-2.2.1-8.el7.noarch : Scalable, non-blocking web server and tools
Repo : rhel-7-server-optional-rpms
?
gzcwnk commentedon Mar 29, 2016
ah I had an includes, doh..
DmitryKuzmenko commentedon Mar 30, 2016
@gzcwnk nope, it's just in the 2015.8 branch now, new packages will be out later.