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

Regression - Bootdisk generation fails with "ERF42-8203 [Foreman::Exception]: Ensure /var/lib/tftpboot/grub2/mmx64.efi is readable (or update "Grub2 directory" setting)"

XMLWordPrintable

    • False
    • foreman-bootloaders-redhat-202506020000-1.el9sat
    • sat-jpl
    • None
    • None
    • None
    • Automated
    • Yes

      The issue remains the same as the old Jira https://issues.redhat.com/browse/SAT-38730 and mostly for the users who have tftp feature disabled. 

      The root cause identified was that  https://github.com/theforeman/foreman-packaging/commit/c33e74537ee437372e3973da70efd932ffa2c89a commit is missing from the foreman-bootloaders-redhat package shipped with satellite 6.17.5 and hence even though everything else works, The mmx64.efi  file is never generated and copied to tftpboot , preventing bootdisk generation to happen. 

       

      Steps to reproduce:

      • install a satellite 6.16 ( without enabling tftp feature ) ( it's disabled by default )
      • Upgrade that to 6.17
      • Enable kickstart repo and sync them
      • Create a fake domain and a subnet with static definition
      • Use these to create a host
      • Now try downloading Full Host Image

      Error:

      2025-10-14T17:06:09 [I|app|6188b476] Started GET "/disks/full_hosts/2" for x.x.x.x at 2025-10-14 17:06:09 +0530
      2025-10-14T17:06:09 [I|app|6188b476] Processing by ForemanBootdisk::DisksController#full_host as HTML
      2025-10-14T17:06:09 [I|app|6188b476]   Parameters: {"id"=>"2"}
      2025-10-14T17:06:09 [W|app|6188b476] ERF42-8203 [Foreman::Exception]: Ensure /var/lib/tftpboot/grub2/mmx64.efi is readable (or update "Grub2 directory" setting)
      2025-10-14T17:06:09 [I|app|6188b476] Backtrace for 'ERF42-8203 [Foreman::Exception]: Ensure /var/lib/tftpboot/grub2/mmx64.efi is readable (or update "Grub2 directory" setting)' error (Foreman::Exception): ERF42-8203 [Foreman::Exception]: Ensure /var/lib/tftpboot/grub2/mmx64.efi is readable (or update "Grub2 directory" setting)
       6188b476 | /usr/share/gems/gems/foreman_bootdisk-22.0.4/app/services/foreman_bootdisk/iso_generator.rb:138:in `block in generate'
       6188b476 | /usr/share/gems/gems/foreman_bootdisk-22.0.4/app/services/foreman_bootdisk/iso_generator.rb:137:in `each'
       6188b476 | /usr/share/gems/gems/foreman_bootdisk-22.0.4/app/services/foreman_bootdisk/iso_generator.rb:137:in `generate'
       6188b476 | /usr/share/gems/gems/foreman_bootdisk-22.0.4/app/services/foreman_bootdisk/iso_generator.rb:30:in `generate_full_host'
       6188b476 | /usr/share/gems/gems/foreman_bootdisk-22.0.4/app/controllers/foreman_bootdisk/disks_controller.rb:58:in `full_host'
       6188b476 | /usr/share/gems/gems/actionpack-7.0.8.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
       6188b476 | /usr/share/gems/gems/actionpack-7.0.8.7/lib/abstract_controller/base.rb:215:in `process_action'
       6188b476 | /usr/share/gems/gems/actionpack-7.0.8.7/lib/action_controller/metal/rendering.rb:165:in `process_action'
       6188b476 | /usr/share/gems/gems/actionpack-7.0.8.7/lib/abstract_controller/callbacks.rb:234:in `block in process_action'
       6188b476 | /usr/share/gems/gems/activesupport-7.0.8.7/lib/active_support/callbacks.rb:118:in `block in run_callbacks'

       

      Workaround:

       

      # cp /boot/efi/EFI/redhat/mmx64.efi /var/lib/tftpboot/grub2/mmx64.efi
      # chmod 644 /var/lib/tftpboot/grub2/mmx64.efi
      # restorecon -RFv /var/lib/tftpboot/grub2 
      

      Ask:

      This needs to be fixed in the product as soon as possible. And QE team should not only test the generation of the Full Host Image but also should confirm that the image is able to boot a system and start build of the same. If the image is created but them the VM\Physical system fails to boot with it, then the image is of no use to anyone. 

              rhn-support-osousa Odilon Sousa
              rhn-support-saydas Sayan Das
              Chandra Sekhar Reddy Bora
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: