Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19103

Unable to provision bare metal without DHCP IP Assignment

XMLWordPrintable

    • Moderate

      Description of problem:
      Per customer:
      "I need to provision a bare-metal server where the static IP address will be on a tagged VLAN, booting from USB with the Full ISO image. This fails and drops into the Dracut emergency shell with a message indicating that DHCP failed.

      The problem was observed with Satellite Server 6.9.1, as well as in the 6.8 series."

      Version-Release number of selected component (if applicable):
      unsure, although observed Satellite 6.8 and 6.9

      How reproducible:
      With the version of Satellite the customer is using, 100%

      Steps to Reproduce:
      Per customer:
      "Steps to reproduce (guessing; I don’t have the resources to actually go through all of this). I am assuming that you are familiar with the process of provisioning with static IP addresses from the Full Host ISO image, so I will not describe all of the provisioning details.

      Overview: this approach will attempt to provision a bare-metal server with static IP address on an untagged lan (which should succeed), and will then use the identical host configuration to provision on a VLAN-tagged lan, which will fail.

      This probably will also work in a virtualized environment.
      You will need:

      • A server that will act as Satellite Server.
      • A blank bare-metal server that can be booted from a UEFI USB stick. The NIC should be able to handle VLANs.
      • Three subnets connected by a router. The router must be VLAN capable, including sending tagged and untagged traffic on the same interface.
      • A DNS server (can be on the same server as Satellite Server, or a different one).
      • DO NOT allow DHCP on any of the networks.

      IP address assignment:

      192.168.1.0/24: satellite server network, on router interface 1
      192.168.2.0/24: untagged network, on router interface 2
      192.168.3.0/24: tagged network with VLAN tag 35, also on router interface 2.
      Select an appropriate default gateway etc.
      192.168.1.10: Satellite server
      192.168.2.100: bare metal server after provisioning on the untagged network.
      192.168.3.100: bare metal server after provisioning on the tagged network.
      Create appropriate DNS entries for all three.
      DO NOT set up a DHCP server.

      Disable IPv6 on the router and the satellite server. Also disable it in the kernel options for the provisioned server.

      Step-by-step:

      • Disable IPv6. Also disable IPv6 on the systems.
      • Install a satellite server as 192.168.1.10 and configure it for provisioning hosts with static IP addresses (create content views, kickstarts etc.).
        Use RHEL 8 as the operating system (any other probably will also work).
        Create a corresponding host group, activation key, etc.
        The host group should allow selecting both the tagged and untagged subnets.
      • On the Satellite Server, under Infrastructure | Subnets, create the subnets “tagged” and “untagged” with the corresponding IP addresses, default gateway, etc. Both should be configured for Boot Mode “static”.
      • I selected IPAM None and MTU “1500".
      • The “tagged” and “untagged” network should be identical except for the IP address range. DO NOT specify the Vlan Id here (since the vlan tag is not a property of the subnet)
      • In Satellite Server, pre-create a host.
        Use the MAC address of the bare-metal server, specify the untagged network, the IP address, select the Grub2 UEFI PXE loader, and whatever other parameters are needed to complete provisioning.
      • Click on the “Build” button and download the Full Host ISO image.
        = Prepare a USB stick with this image.
        = Boot the bare-metal host from this USB image.
      • Verify that the host provisioned correctly on the untagged network (192.168.2.0).

      Once you can successfully provision the bare-metal server using this setup, the preparation is complete.

      Actual test:

      • Recommended: wipe the bare metal server.
      • In Satellite Server, find the same host. Select “Cancel Build” if needed.
        = In Satellite Server, modify the same host. Under interfaces, make the following changes:
        In the physical interface, remove the DNS name, domain, subnet and IP address.
        Add an interface as a virtual NIC. Specify the VLAN tag number (35) and the physical interface as “Attached To”. Also specify the appropriate Device Identifier (such as eno1.35)
        In the virtual interface, add the DNS name, domain, the tagged subnet, and the correct IP address.
        Click on OK.

      Verify that none of the other settings have changed. If any have changed, reset them to whatever they were for the provisioning on the untagged network.

      Click on Submit.
      Click on Build.
      Download the Full Host ISO image.
      Boot the bare-metal server from this ISO

      Expected result:
      ISO should boot and provision the server, the same as on the untagged network.

      Actual result:
      Booting will not complete and indicate a dracut-related error, suggesting that the boot loader attempted to use DHCP despite having a static IP address specified.

      Workaround:
      Provision the server using the untagged network, and then manually edit the RHEL configuration files to add the VLAN."

            jira-bugzilla-migration RH Bugzilla Integration
            jira-bugzilla-migration RH Bugzilla Integration
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: