2015.8.0: yumpkg reporting "Unexpected osrelease grain '6.7'"
I was running a highstate and noticed this message in the output. I'm not quite sure which state in the highstate generated the message, but since the message asks to report it... Looks like the message comes from this part of the code.
2015-09-11 17:16:01,127 [salt.loaded.int.module.yumpkg][WARNING ][2611] Unexpected osrelease grain '6.7', please report this
# salt-call --versions
Salt Version:
Salt: 2015.8.0
Dependency Versions:
Jinja2: 2.2.1
M2Crypto: 0.20.2
Mako: Not Installed
PyYAML: 3.10
PyZMQ: 14.5.0
Python: 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: centos 6.7 Final
machine: x86_64
release: 2.6.32-573.1.1.el6.x86_64
system: CentOS 6.7 Final
@lorengordon, thanks for the report.
# salt-call -l debug pkg.install htop
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: master1.saltbox.local.inovex.de
[DEBUG ] Configuration file path: /etc/salt/minion
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] The `lspci` binary is not available on the system. GPU grains will not be available.
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'master1.saltbox.local.inovex.de', 'tcp://127.0.0.1:4506')
[DEBUG ] Generated random reconnect delay between '1000ms' and '11000ms' (5950)
[DEBUG ] Setting zmq_reconnect_ivl to '5950ms'
[DEBUG ] Setting zmq_reconnect_ivl_max to '11000ms'
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'master1.saltbox.local.inovex.de', 'tcp://127.0.0.1:4506', 'aes')
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'master1.saltbox.local.inovex.de', 'tcp://127.0.0.1:4506')
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'master1.saltbox.local.inovex.de', 'tcp://127.0.0.1:4506', 'clear')
[DEBUG ] Decrypting the current master AES key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded pkg.install
[DEBUG ] LazyLoaded pkg_resource.parse_targets
[DEBUG ] LazyLoaded cmd.run
[INFO ] Executing command ['rpm', '-qa', '--queryformat', '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-(none)\n'] in directory '/root'
[WARNING ] Unexpected osrelease grain '7.0.1406', please report this
[INFO ] Executing command 'yum -y install htop' in directory '/root'
[INFO ] Executing command ['rpm', '-qa', '--queryformat', '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-(none)\n'] in directory '/root'
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'master1.saltbox.local.inovex.de', 'tcp://127.0.0.1:4506', 'aes')
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'master1.saltbox.local.inovex.de', 'tcp://127.0.0.1:4506')
[DEBUG ] LazyLoaded nested.output
local:
----------
htop:
----------
new:
1.0.3-3.el7
old:
[root@master1 ~]# salt-call --versions
Salt Version:
Salt: 2015.8.0-27-gcf59a03
Dependency Versions:
Jinja2: 2.7.2
M2Crypto: 0.21.1
Mako: Not Installed
PyYAML: 3.10
PyZMQ: 14.5.0
Python: 2.7.5 (default, Jun 24 2015, 00:41:19)
RAET: Not Installed
Tornado: 4.1
ZMQ: 4.0.5
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: centos 7.0.1406 Core
machine: x86_64
release: 3.10.0-123.el7.x86_64
system: CentOS Linux 7.0.1406 Core
This is happening on CentOS/RHEL/Oracle 5.11 as well:
[WARNING ] Unexpected osrelease grain '5.11', please report this
salt-call --versions
Salt Version:
Salt: 2015.8.0
Dependency Versions:
Jinja2: 2.5.5
M2Crypto: 0.21.1
Mako: Not Installed
PyYAML: 3.08
PyZMQ: 14.5.0
Python: 2.6.8 (unknown, Nov 7 2012, 14:47:45)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.5
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: redhat 5.11 Tikanga
machine: x86_64
release: 2.6.18-406.0.0.0.1.el5
system: Red Hat Enterprise Linux Server 5.11 Tikanga
Yeah, it looks like it'll happen on any OS where the osrelease grain is not an int type. I'm not really sure what the intent was. From the code I linked to previously:
try:
osrelease = int(__grains__['osrelease'])
except ValueError:
log.warning(
'Unexpected osrelease grain \'{0}\', please report this'
.format(__grains__['osrelease'])
)
__context__[contextkey] = 'yum'
yay! already fixed; thanks guys! was here to report this issue.