oscodename grain blank in 2015.5.3 on some minions
salt-call grains.get oscodename
local:
salt-call grains.items
local:
----------
SSDs:
biosreleasedate:
04/14/2014
biosversion:
6.00
cpu_flags:
- fpu
- vme
- de
- pse
- tsc
- msr
- pae
- mce
- cx8
- apic
- sep
- mtrr
- pge
- mca
- cmov
- pat
- pse36
- clflush
- dts
- mmx
- fxsr
- sse
- sse2
- ss
- syscall
- nx
- rdtscp
- lm
- constant_tsc
- arch_perfmon
- pebs
- bts
- nopl
- xtopology
- tsc_reliable
- nonstop_tsc
- aperfmperf
- pni
- pclmulqdq
- ssse3
- cx16
- sse4_1
- sse4_2
- popcnt
- aes
- hypervisor
- lahf_lm
- ida
- arat
- dtherm
cpu_model:
Intel(R) Xeon(R) CPU X5680 @ 3.33GHz
cpuarch:
x86_64
domain:
[munged]
fqdn:
salt-master01.fqdn
fqdn_ip4:
- [munged]
fqdn_ip6:
gpus:
|_
----------
model:
SVGA II Adapter
vendor:
unknown
host:
salt-master01
hwaddr_interfaces:
----------
eth0:
[munged]
lo:
00:00:00:00:00:00
id:
salt-master01
init:
sysvinit
ip4_interfaces:
----------
eth0:
- [munged]
lo:
- 127.0.0.1
ip6_interfaces:
----------
eth0:
- [munged]
lo:
- ::1
ip_interfaces:
----------
eth0:
- [munged]
- [munged]
lo:
- 127.0.0.1
- ::1
ipv4:
- [munged]
- 127.0.0.1
ipv6:
- ::1
- [munged]
kernel:
Linux
kernelrelease:
3.2.0-4-amd64
locale_info:
----------
defaultencoding:
UTF-8
defaultlanguage:
en_US
detectedencoding:
UTF-8
localhost:
salt-master01
lsb_distrib_id:
Debian GNU/Linux
manufacturer:
VMware, Inc.
master:
salt-master01
mem_total:
3968
nodename:
salt-master01
num_cpus:
2
num_gpus:
1
os:
Debian
os_family:
Debian
osarch:
amd64
oscodename:
osfullname:
Debian GNU/Linux
osrelease:
7.8
osrelease_info:
- 7
- 8
path:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
productname:
VMware Virtual Platform
ps:
ps -efHww
pythonexecutable:
/var/src/salt/bin/python
pythonpath:
- /var/src/salt/bin
- /var/src/salt/local/lib/python2.7/site-packages/pyOpenSSL-0.15.1-py2.7.egg
- /var/src/salt/local/lib/python2.7/site-packages/cryptography-0.9.1-py2.7-linux-x86_64.egg
- /var/src/salt/local/lib/python2.7/site-packages/cffi-1.1.2-py2.7-linux-x86_64.egg
- /var/src/salt/local/lib/python2.7/site-packages/CherryPy-3.7.0-py2.7.egg
- /var/src/salt/local/lib/python2.7/site-packages/tornado-4.2-py2.7-linux-x86_64.egg
- /var/src/salt/local/lib/python2.7/site-packages/certifi-2015.4.28-py2.7.egg
- /var/src/salt/local/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg
- /var/src/salt/lib/python2.7
- /var/src/salt/lib/python2.7/plat-linux2
- /var/src/salt/lib/python2.7/lib-tk
- /var/src/salt/lib/python2.7/lib-old
- /var/src/salt/lib/python2.7/lib-dynload
- /usr/lib/python2.7
- /usr/lib/python2.7/plat-linux2
- /usr/lib/python2.7/lib-tk
- /var/src/salt/local/lib/python2.7/site-packages
pythonversion:
- 2
- 7
- 3
- final
- 0
saltpath:
/var/src/salt/local/lib/python2.7/site-packages/salt
saltversion:
2015.5.3
saltversioninfo:
- 2015
- 5
- 3
- 0
serialnumber:
[munged]
server_id:
1014056264
shell:
/bin/bash
virtual:
VMware
zmqversion:
4.0.5
salt-master --versions-report
Salt: 2015.5.3
Python: 2.7.3 (default, Mar 13 2014, 11:03:55)
Jinja2: 2.7.3
M2Crypto: 0.22
msgpack-python: 0.4.6
msgpack-pure: Not Installed
pycrypto: 2.6.1
libnacl: 1.4.3
PyYAML: 3.11
ioflo: Not Installed
PyZMQ: 14.6.0
RAET: Not Installed
ZMQ: 4.0.5
Mako: Not Installed
Tornado: 4.2
salt-minion --versions-report
Salt: 2015.5.3
Python: 2.7.3 (default, Mar 13 2014, 11:03:55)
Jinja2: 2.7.3
M2Crypto: 0.22
msgpack-python: 0.4.6
msgpack-pure: Not Installed
pycrypto: 2.6.1
libnacl: 1.4.3
PyYAML: 3.11
ioflo: Not Installed
PyZMQ: 14.6.0
RAET: Not Installed
ZMQ: 4.0.5
Mako: Not Installed
Tornado: 4.2
OS: Debian Wheezy v7.8
@schlagify, thanks for the report. If you restart the minion does it get the correct value, or is it consistently blank. Do you have other minions with the same or similar specs (cloud provider, etc.) running debian 7.8 that do not have this problem?
Hello there, I have the same issue, but with Debian Wheezy 7.9. but the crazy shit is, on some Debian 7.9 is working, and on some not. I dont find any rule for this:
salt:~# salt -G os:debian grains.item oscodename
srv5.net.domain.tld:
----------
oscodename:
backup1.net.domain.tld:
----------
oscodename:
wheezy
debian7.virt.domain.tld:
----------
oscodename:
wheezy
dsdf1-kvmhost2.domain.tld:
----------
oscodename:
rt.domain.tld:
----------
oscodename:
debian6.virt.domain.tld:
----------
oscodename:
but in version debian7.virt.domain.tld is the same like all other:
root@debian7:~# salt-minion --versions-report
Salt: 2015.5.3
Python: 2.7.3 (default, Mar 14 2014, 11:57:14)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.6
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 13.1.0
RAET: Not Installed
ZMQ: 3.2.3
Mako: 0.7.0
Tornado: Not Installed
Debian source package: 2015.5.3+ds-1~bpo70+2
srv5:~# salt-minion --versions-report
Salt: 2015.5.3
Python: 2.7.3 (default, Mar 13 2014, 11:03:55)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.6
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 13.1.0
RAET: Not Installed
ZMQ: 3.2.3
Mako: Not Installed
Tornado: Not Installed
Debian source package: 2015.5.3+ds-1~bpo70+2
I cant reboot the minion, there are productive server.
~~Sorry, I dont know how to format my text.~~
Regards Thomas
Ok. I found the same problem with lsb_distrib_description:
root@salt:/srv/salt# salt -G os:debian grains.item lsb_distrib_description osfullname osrelease oscodename
srv5.net.domain.tld:
----------
lsb_distrib_description:
oscodename:
osfullname:
Debian GNU/Linux
osrelease:
7.9
debian7.virt.domain.tld:
----------
lsb_distrib_description:
Debian GNU/Linux 7.9 (wheezy)
oscodename:
wheezy
osfullname:
Debian
osrelease:
7.9
rt.domain.tld:
----------
lsb_distrib_description:
oscodename:
osfullname:
Debian GNU/Linux
osrelease:
7.9
backup1.net.domain.tld:
----------
lsb_distrib_description:
Debian GNU/Linux 7.9 (wheezy)
oscodename:
wheezy
osfullname:
Debian
osrelease:
7.9
kvmhost2.net.domain.tld:
----------
lsb_distrib_description:
oscodename:
osfullname:
Debian GNU/Linux
osrelease:
7.9
debian6.virt.domain.tld:
----------
oscodename:
osfullname:
debian
osrelease:
6.0.10
- install lsb-release (at a minimum)
- restart salt minion
- problem fixed ;-)
I've had lsb-release installed everywhere, but the problem still persists for us.
@schlagify, is it possible for you to confirm on 2015.5.9 or 2015.8.5?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.