Project

General

Profile

Actions

Bug #1335

closed

invalid value for Integer: "0xstraylen"

Added by Steve Traylen about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,
With, Version 0.4 on RHEL6.

When I edit an individual host and add or remove a class I am presented with the following:

ArgumentError
invalid value for Integer: "0xstraylen" 
/usr/share/foreman/app/models/host.rb:609:in `%'
/usr/share/foreman/app/models/host.rb:609:in `normalize_addresses'
/usr/share/foreman/app/models/host.rb:609:in `map'
/usr/share/foreman/app/models/host.rb:609:in `normalize_addresses'
/usr/share/foreman/app/models/host.rb:603:in `each'
/usr/share/foreman/app/models/host.rb:603:in `normalize_addresses'
/usr/share/foreman/app/models/orchestration.rb:55:in `valid?'
/usr/share/foreman/app/controllers/hosts_controller.rb:107:in `update'

"straylen" is ldap authenticated userid.

I did not notice this with earlier versions however recently
we started to using a script to add hosts to foreman that posts some json along
the lines of:

{host:{"architecture_id":"1","comment":"Machine Provisioned by Kickstart","domain_id":"1","environment_id":"6","hostgroup_id":"3","ip":"137.138.102.97",
  "mac":"XX:XX:XX:XX:XX:XX","name":"jantest03","operatingsystem_id":"1",
   "owner_id":"6","ptable_id":"1"}}

this problem only seems to occur for the users that have called our script to add a host. Just
to be clear we are only using the foreman API and no database calls or anything horrible.

Steve.


Files

Screenshot.png View Screenshot.png 17.8 KB Showing the BNC being set to my user name. Steve Traylen, 11/18/2011 03:29 PM

Related issues 1 (0 open1 closed)

Has duplicate Foreman - Bug #1319: BMC MAC field prepopulated with user's email adddressDuplicate11/14/2011Actions
Actions

Also available in: Atom PDF