Bug #15194
openforeman-node fails to collect grains
Description
- /usr/bin/foreman-node server
Could not get grains: undefined method `each_pair' for nil:NilClass
I run Foreman 1.11.2 on Ubuntu 14.04 LTS.
What I have installed:
- dpkg -l |grep foreman
ii foreman 1.11.2-1 amd64 Systems management web interface
ii foreman-compute 1.11.2-1 all metapackage providing fog dependencies for Foreman,
ii foreman-debug 1.11.2-1 all provides support utility foreman-debug.
ii foreman-ec2 1.11.2-1 all metapackage providing EC2 dependencies for Foreman
ii foreman-libvirt 1.11.2-1 all metapackage providing libvirt dependencies for Foreman
ii foreman-postgresql 1.11.2-1 all metapackage providing PostgreSQL dependencies for Foreman
ii foreman-proxy 1.11.2-1 all RESTful proxies for DNS, DHCP, TFTP, and Puppet
ii foreman-sqlite3 1.11.2-1 all metapackage providing sqlite dependencies for Foreman
ii ruby-foreman-ansible 0.3-1 all Foreman Ansible plugin
ii ruby-foreman-deface 1.0.2-2 all Foreman Deface Plugin Dependency
ii ruby-foreman-discovery 5.0.2-1 all Foreman Discovery Plugin
ii ruby-foreman-docker 2.0.1-1 all Foreman Docker compute resource
ii ruby-foreman-salt 5.0.0-1 all Foreman Salt Plugin
ii ruby-foreman-tasks 0.7.17-1 all Tasks management engine for Foreman.
ii ruby-foreman-templates 2.1.0-1 all Foreman Templates Plugin
Updated by Stephen Benjamin over 8 years ago
- Status changed from New to Need more information
What is `server`? Are you putting the minion name there? What does this return:
salt 'server' grains.items
Updated by Johan Berg over 8 years ago
Stephen Benjamin wrote:
What is `server`? Are you putting the minion name there? What does this return:
salt 'server' grains.items
It returns grains as normal.
- salt '*dev-minion*' grains.items
dev-minion:
----------
SSDs:
biosreleasedate:
03/19/2014
biosversion:
6.00
cpu_flags:
- fpu
- vme
- de
.... And so on
And then when I run I get:
- /usr/bin/foreman-node dev-minion
/usr/bin/foreman-node:188:in `<main>': Object#timeout is deprecated, use Timeout.timeout instead.
Could not get grains: undefined method `each_pair' for nil:NilClass
I just upgraded to Foreman 1.12 by the way and have the same error:
- dpkg -l |grep foreman
ii foreman 1.12.0~rc2-1 amd64 Systems management web interface
ii foreman-compute 1.12.0~rc2-1 all metapackage providing fog dependencies for Foreman,
ii foreman-debug 1.12.0~rc2-1 all provides support utility foreman-debug.
ii foreman-ec2 1.12.0~rc2-1 all metapackage providing EC2 dependencies for Foreman
ii foreman-libvirt 1.12.0~rc2-1 all metapackage providing libvirt dependencies for Foreman
ii foreman-postgresql 1.12.0~rc2-1 all metapackage providing PostgreSQL dependencies for Foreman
ii foreman-proxy 1.12.0~rc2-1 all RESTful proxies for DNS, DHCP, TFTP, and Puppet
ii foreman-sqlite3 1.12.0~rc2-1 all metapackage providing sqlite dependencies for Foreman
ii ruby-foreman-ansible 0.3-1 all Foreman Ansible plugin
ii ruby-foreman-deface 1.0.2-2 all Foreman Deface Plugin Dependency
ii ruby-foreman-discovery 5.0.2-1 all Foreman Discovery Plugin
ii ruby-foreman-docker 2.1.1-1 all Foreman Docker compute resource
ii ruby-foreman-salt 5.0.1-1 all Foreman Salt Plugin
ii ruby-foreman-tasks 0.7.18-1 all Tasks management engine for Foreman.
ii ruby-foreman-templates 2.1.0-1 all Foreman Templates Plugin
Updated by Johan Berg over 8 years ago
Any news on this issue?
I just upgraded to 1.12.1 of Foreman and still get the same error.
Updated by Dinges XXX about 8 years ago
Stephen Benjamin wrote:
What is `server`? Are you putting the minion name there? What does this return:
salt 'server' grains.items
Any news on this matter? I've just updated my CentOS 7 box and I am running into the same problem.
"salt <host> grains.items" gives normal output.
Updated by Anonymous over 7 years ago
- Status changed from Need more information to New
seems still to be a thing