Project

General

Profile

Actions

Bug #15194

open

foreman-node fails to collect grains

Added by Johan Berg about 8 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

  1. /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:

  1. 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
Actions #1

Updated by Stephen Benjamin about 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

Actions #2

Updated by Johan Berg 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

It returns grains as normal.

  1. 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:

  1. /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:

  1. 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
Actions #3

Updated by Johan Berg almost 8 years ago

Any news on this issue?

I just upgraded to 1.12.1 of Foreman and still get the same error.

Actions #4

Updated by Dinges XXX over 7 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.

Actions #5

Updated by Anonymous about 7 years ago

  • Status changed from Need more information to New

seems still to be a thing

Actions

Also available in: Atom PDF