Project

General

Profile

Actions

Bug #21106

closed

Support for gateway-less subnets in host-based template

Added by Daniel Moessner over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Description of problem:

Trying to create a boot disk via

  1. hammer bootdisk host ...

fails if subnet has no default gateway set although this is flagged optional in UI (Optional: Gateway for this subnet)

Version-Release number of selected component (if applicable):
Satellite 6.2.11

How reproducible:

Steps to Reproduce:
1. create subnet without a default gateway as well as hostgroup:
2. create the host via hammer
3. create host bootdisk and see it fails with:
"Failed to download host disk image:
ERF42-2759 [Foreman::Exception]: Subnet (static-no-gw-vlan105.coe.muc.redhat.com (172.24.105.0/24)) has no gateway defined"

Actual results:
"Failed to download host disk image:
ERF42-2759 [Foreman::Exception]: Subnet (static-no-gw-vlan105.coe.muc.redhat.com (172.24.105.0/24)) has no gateway defined"

Expected results:
boot image should be created even though there is not default gateway for the net

Additional info:
Customer environments no necessarily do have a default gateway, i.e. think about a network just providing services in the background. Those do not need any default GW as it is sufficient the reach all services or be reached by services within the same network.

Actions #1

Updated by Daniel Moessner over 6 years ago

Same happens when trying to download host image via UI:

~~
Error: Failed to render boot disk template: ERF42-2759 [Foreman::Exception]: Subnet (static-no-gw-vlan105.example.com (172.24.105.0/24)) has no gateway defined
~~

Actions #2

Updated by Lukas Zapletal over 6 years ago

  • Subject changed from hammer bootdisk host fails when default gateway in subnet definition is not set to Support for gateway-less subnets in host-based template
Actions #3

Updated by Timo Goebel over 6 years ago

  • Project changed from Foreman to Boot disk
  • Category deleted (Host creation)
  • Assignee set to Lukas Zapletal
Actions #4

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_bootdisk/pull/44 added
Actions #5

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF