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

Also available in: Atom PDF