DC Debian: Subcloud remote install - root parameter from grub console is not set correctly

Bug #1998994 reported by Kyle MacLeod
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Kyle MacLeod

Bug Description

Brief Description

DC Debian: Subcloud remote install - root parameter from grub console is not set correctly

Note:

    This issue might be an environment issue (something that might not be under our control)
    Condition to reproduce the issue: plug a USB on the subcloud (can be a wiped USB) and run remote subcloud install
        results: root parameter, from grub, is set to boot from USB device rather than from the virtual CD media inserted by RVMC

            Use the <ESC><Ctrl><M> key sequence for <Ctrl><M>
            Use the <ESC><Ctrl><H> key sequence for <Ctrl><H>
            Use the <ESC><Ctrl><I> key sequence for <Ctrl><I>
            Use the <ESC><Ctrl><J> key sequence for <Ctrl><J>Use the <ESC><X><X> key sequence for <Alt><x>, where x is any letter
            key, and X is the upper case of that keyUse the <ESC><R><ESC><r><ESC><R> key sequence for <Ctrl><Alt><Del>Press the spacebar to pause...
            Initializing PCIe, USB, and Video... Done
            PowerEdge XR11
            BIOS Version: 1.3.8
            Virtual CD Boot Requested by iDRACF2 = System Setup
            F10 = Lifecycle Controller (Config
                   iDRAC, Update FW, Install OS)
            F11 = Boot Manager
            F12 = PXE Boot
            iDRAC IPV4: [Dedicated]
            iDRAC IPV6: [Dedicated]
            Initializing Firmware Interfaces...
             Enumerating Boot options...
            Enumerating Boot options... Done
            Loading Lifecycle Controller Drivers...
            Loading Lifecycle Controller Drivers...Done
            Lifecycle Controller: Collecting System Inventory...iDRAC IPV4: [Dedicated]
            Lifecycle Controller: Done
            Booting...
            Booting from Virtual Optical Drive
            Welcome to GRUB!error: no such device: ((cd1)/EFI/BOOT)/EFI/BOOT/grub.cfg. GNU GRUB version 2.06-1.stx.5
            /----------------------------------------------------------------------------\
             | subcloud4 |
             | UEFI Serial Console |
             |*UEFI Graphical Console |
             | |
             | |
             | |
             | |
             | |
             | |
             | |
             | |
             | |
             | |
             \----------------------------------------------------------------------------/
                Use the ^ and v keys to select which entry is highlighted.
                  Press enter to boot the selected OS, `e' to edit the commands
                  before booting or `c' for a command-line.
               The highlighted entry will be executed automatically in 0s.

            Booting `UEFI Graphical Console'error: file `/bzImage-std' not found.

            error: you need to load the kernel first.Press any key to continue... Failed to boot both default and fallback entries.Press any key to continue...

            The workaround is to set root to "cd1", which is the virtual CD media

                 grub> set
                ?=18
                check_signatures=enforce
                cmdpath=(cd1)/EFI/BOOT
                color_highlight=black/light-gray
                color_normal=light-gray/black
                default=graphical
                feature_200_final=y
                feature_all_video_module=y
                feature_chainloader_bpb=y
                feature_default_font_path=y
                feature_menuentry_id=y
                feature_menuentry_options=y
                feature_nativedisk_cmd=y
                feature_ntldr=y
                feature_platform_search_hint=y
                feature_timeout_style=y
                grub_cpu=x86_64
                grub_platform=efi
                lang=
                locale_dir=
                net_default_ip=(null)
                net_default_mac=(null)
                net_default_server=
                pager=
                prefix=(cd1)/EFI/BOOT
                pxe_default_server=
                root=cd0
                secondary_locale_dir=
                skip_check_cfg=1
                strict_security=enforce

                set root=cd1

Severity

<Minor: System/Feature is usable with minor issue>

Note: we can set grub/root to boot from virtual CD device

Steps to Reproduce

Plug a USB in the server

run remote subcloud install

Expected Behavior

Remote subcloud install should complete successfully, the grub parameters should be set up correcly independently if we have a USB plugged in the subcloud

Actual Behavior

The remote subcloud install fails if we plug a USB in the server

Reproducibility

Intermittent

This issue was not observed in a other subcloud which also has a USB plugged.

System Configuration

Load info (eg: 2022-03-10_20-00-07)

SW_VERSION="22.12"
BUILD_DATE="2022-11-11 23:00:09 +0000"

Last Pass

This issue was not reproduced in a other subcloud.

Timestamp/Logs

Alarms

n/a

Test Activity

Feature Testing

Workaround

set grub/root parameter manually

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to utilities (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/utilities/+/866824

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to utilities (master)

Reviewed: https://review.opendev.org/c/starlingx/utilities/+/866824
Committed: https://opendev.org/starlingx/utilities/commit/286b0a99a7740af8bf49e02d89406f98ea246d28
Submitter: "Zuul (22348)"
Branch: master

commit 286b0a99a7740af8bf49e02d89406f98ea246d28
Author: Kyle MacLeod <email address hidden>
Date: Tue Dec 6 22:31:03 2022 -0500

    Fix grub search label to 'instboot'

    Change the grub boot label to 'instboot'
    for miniboot, since this is the expected label.
    We no longer see the log:
    "error: no such device: oe_iso_boot"

    Test Plan

    PASS
    - Boot hardware subcloud, verify that the
      subclould boots and we no longer see
      "error: no such device: oe_iso_boot"

    Closes-Bug: 1998994

    Change-Id: I7cf909cbc3e3b0b0a21289f0068ff4a46830abec
    Signed-off-by: Kyle MacLeod <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
assignee: nobody → Kyle MacLeod (kmacleod)
tags: added: stx.8.0 stx.config
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.