Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1202779 - Creating a host without OS set gives undefined method `boot_filename' exception
Creating a host without OS set gives undefined method `boot_filename' exception
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: WebUI (Show other bugs)
6.1.0
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: Unused
Assigned To: Lukas Zapletal
Sachin Ghai
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-17 08:37 EDT by Lukas Zapletal
Modified: 2017-02-23 15:18 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:30:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
screenshot from sanp4 c2 (22.38 KB, image/png)
2015-05-15 08:10 EDT, Sachin Ghai
no flags Details
Creating a host without OS now raises "can't be blank" validation error (51.47 KB, image/png)
2015-07-08 07:31 EDT, Sachin Ghai
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 5701 None None None 2016-04-22 12:39 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Lukas Zapletal 2015-03-17 08:37:41 EDT
When no OS is assigned for host or host group, provisioning ends up with this weird error instead of nice one.

Fix was already delivered upstream (Foreman 1.8), we only need to cherry pick small patch in core.
Comment 1 Lukas Zapletal 2015-03-17 08:39:04 EDT
Jason, the patch in foreman core fixes this:

https://github.com/theforeman/foreman/pull/2120/files

Giving it a POST already, yeah, I am a bad boy!
Comment 6 Sachin Ghai 2015-05-15 08:08:52 EDT
Verified with sanp4 compose2.. Issue is reproducible

2015-05-15 16:58:20 [I] Processing by DiscoveredHostsController#update as */*
2015-05-15 16:58:20 [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"o5Vg3xdsjhXm5y3/xk0LOUA10jllWL4VZGl+9ABdwUo=", "host"=>{"name"=>"mac52540050266d", "hostgroup_id"=>"1", "environment_id"=>"3", "content_source_id"=>"2", "puppet_ca_proxy_id"=>"2", "puppet_proxy_id"=>"2", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "domain_id"=>"1", "realm_id"=>"", "mac"=>"52:54:00:50:26:6d", "subnet_id"=>"2", "ip"=>"192.168.110.33", "interfaces_attributes"=>{"new_interfaces"=>{"_destroy"=>"false", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "architecture_id"=>"1", "operatingsystem_id"=>"", "build"=>"1", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", "model_id"=>"2", "comment"=>"", "overwrite"=>"false"}, "hostgroup"=>{"lifecycle_environment_id"=>"2", "content_view_id"=>"2"}, "id"=>"mac52540050266d"}
2015-05-15 16:58:20 [W] Operation FAILED: undefined method `boot_filename' for nil:NilClass
2015-05-15 16:58:20 [I]   Rendered common/500.html.erb (7.0ms)
2015-05-15 16:58:20 [I] Completed 500 Internal Server Error in 321ms (Views: 8.0ms | ActiveRecord: 15.7ms)
2015-05-15 16:58:21 [I] Processing by DiscoveredHostsController#edit as */*
2
Comment 7 Sachin Ghai 2015-05-15 08:10:25 EDT
Created attachment 1025817 [details]
screenshot from sanp4 c2
Comment 9 Lukas Zapletal 2015-06-30 06:47:33 EDT
I am getting correct behavior (Can't be blank) now.
Comment 10 Sachin Ghai 2015-07-08 07:29:30 EDT
Verified with sat6.1.1 snap11 compose2.

creating a host without associating OS gives "Can't be blank".
Comment 11 Sachin Ghai 2015-07-08 07:31:36 EDT
Created attachment 1049823 [details]
Creating a host without OS now raises "can't be blank" validation error
Comment 13 errata-xmlrpc 2015-08-12 01:30:16 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592

Note You need to log in before you can comment on or make changes to this bug.