Bug #26154
closedNoMethodError: undefined method `pxedir' for #<Windows:0x0000000007298338>
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'
Updated by Or Tal almost 6 years 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
Updated by Tomer Brisker almost 6 years ago
- Has duplicate Bug #26170: Undefined method `pxedir’ for #<Windows:xxxxxxxxxxxxx> when rendering a Windows PXELinux template (wimboot) added
Updated by Tomer Brisker almost 6 years ago
- Category set to Unattended installations
- Target version set to 1.20.3
Updated by Tomer Brisker almost 6 years ago
- Related to Bug #25733: Media provider unique ID does not work for Debian-based distros added
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Tomer Brisker
- Pull request https://github.com/theforeman/foreman/pull/6616 added
Updated by Tomer Brisker almost 6 years ago
- Fixed in Releases 1.20.3, 1.21.1 added
Updated by Tomer Brisker almost 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset f905973277542e8db14dc1b6e080c916c0a990c7.