Project

General

Profile

Bug #26154

NoMethodError: undefined method `pxedir' for #<Windows:0x0000000007298338>

Added by Or Tal 8 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Unattended installations
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Can not render PXELinux templates for Windows operating system. Same for iPXE.

2019-02-25T16:33:59 [W|app|5ef2d] Unable to render PXELinux template 'WDS - Send to WDS': undefined method `pxedir' for #<Windows:0x0000000007298338>
NoMethodError: undefined method `pxedir' for #<Windows:0x0000000007298338>
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activemodel-5.2.1/lib/active_model/attribute_methods.rb:430:in `method_missing'
/usr/share/foreman/app/services/medium_providers/default.rb:29:in `unique_id'
/usr/share/foreman/app/models/operatingsystems/windows.rb:17:in `pxe_prefix'
/usr/share/foreman/app/models/operatingsystems/windows.rb:21:in `bootfile'
/usr/share/foreman/app/models/operatingsystem.rb:214:in `kernel'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:14:in `kernel'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:101:in `pxe_config'
/usr/share/foreman/lib/foreman/renderer/scope/variables/base.rb:31:in `load_variables_base'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:20:in `block in load_variables'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:18:in `each'
/usr/share/foreman/lib/foreman/renderer/scope/variables.rb:18:in `load_variables'
/usr/share/foreman/lib/foreman/renderer/scope/base.rb:27:in `initialize'
/usr/share/foreman/lib/foreman/renderer/scope/template.rb:9:in `initialize'
/usr/share/foreman/lib/foreman/renderer.rb:38:in `new'
/usr/share/foreman/lib/foreman/renderer.rb:38:in `get_scope'
/usr/share/foreman/app/models/template.rb:172:in `render'
/usr/share/foreman/app/models/host/base.rb:352:in `render_template'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:66:in `build_pxe_render'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:57:in `generate_pxe_template'
/usr/share/foreman/app/models/concerns/orchestration/tftp.rb:82:in `setTFTP'


Related issues

Related to Foreman - Bug #25733: Media provider unique ID does not work for Debian-based distrosClosed
Has duplicate Foreman - Bug #26170: Undefined method `pxedir’ for #<Windows:xxxxxxxxxxxxx> when rendering a Windows PXELinux template (wimboot)Duplicate

Associated revisions

Revision f9059732 (diff)
Added by Tomer Brisker 7 months ago

Fixes #26154 - implement pxedir method for operatingsystem base

Default MediumProvider tries to use pxedir method on the operating
system to generate a unique id. Not all OSes implement these method,
causing provisioning to fail for windows.

History

#1 Updated by Or Tal 8 months ago

More information:
my hosts are booting via iPXE and I’m trying to have a PXE template which chain them to the windows WDS server:

set net0/next-server 172.26.60.66
chain tftp://172.26.60.66/boot%5Cx64%5cwdsnbp.com

#2 Updated by Tomer Brisker 8 months ago

  • Has duplicate Bug #26170: Undefined method `pxedir’ for #<Windows:xxxxxxxxxxxxx> when rendering a Windows PXELinux template (wimboot) added

#3 Updated by Tomer Brisker 8 months ago

  • Target version set to 1.20.3
  • Category set to Unattended installations

#4 Updated by Tomer Brisker 8 months ago

  • Related to Bug #25733: Media provider unique ID does not work for Debian-based distros added

#5 Updated by The Foreman Bot 7 months ago

  • Assignee set to Tomer Brisker
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6616 added

#6 Updated by Shimon Shtein 7 months ago

  • Fixed in Releases 1.22.0 added

#7 Updated by Tomer Brisker 7 months ago

  • Fixed in Releases 1.20.3, 1.21.1 added

#8 Updated by Tomer Brisker 7 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF