Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1990166

Summary: Documented instructions for cinder volume boot are incorrect resulting in Failed to start switch root
Product: Red Hat OpenStack Reporter: Jason Paroly <jparoly>
Component: documentationAssignee: Alex McLeod <amcleod>
Status: CLOSED CURRENTRELEASE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16.2 (Train)CC: amcleod, dmacpher, eharney, jamsmith, jkreger, lmarsh, mariel, pbabbar, sbaker
Target Milestone: ---Keywords: Documentation, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: Booting from cinder volume for OSP 16.1 and 16.2 (e.g. https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2-beta/html/bare_metal_provisioning/booting-from-cinder-volumes) Reason: The existing instructions are incorrect. Result: Step 3-xii needs to be removed, then the guestfish command at step 5-iii needs to be replace with the guestfish command in comment #30: guestfish -a /tmp/images/{{ dib_image }} -m /dev/sda3 sh "mount /dev/sda2 /boot/efi && rm /boot/grub2/grubenv && /sbin/grub2-mkconfig -o /boot/grub2/grub.cfg && cp /boot/grub2/grub.cfg /boot/efi/EFI/redhat/grub.cfg && grubby --update-kernel=ALL --args=\"rd.iscsi.firmware=1\" && cp /boot/grub2/grubenv /boot/efi/EFI/redhat/grubenv"
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-11 12:53:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 14 Jason Paroly 2021-08-12 15:39:19 UTC
Ran again with:

sudo guestfish -a /tmp/images/rhel-guest-image-8.2-290.x86_64.qcow2 -m /dev/sda3 sh "mount /dev/sda2 /boot/efi && /sbin/grub2-mkconfig -o /boot/grub2/grub.cfg && cp /boot/grub2/grub.cfg /boot/efi/EFI/redhat/grub.cfg && grubby --update-kernel=ALL --args=\"rd.iscsi.firmware=1\" && echo Success"

which succeeded but boot failed again.  titan94.lab.eng.tlv2.redhat.com is in the reproduced state again now.

Comment 20 Giulio Fidente 2021-08-17 14:57:09 UTC
*** Bug 1990505 has been marked as a duplicate of this bug. ***

Comment 31 Steve Baker 2021-08-24 19:50:27 UTC
Now that we have a working CI job its time to update the documentation:

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2-beta/html/bare_metal_provisioning/booting-from-cinder-volumes

It looks like step 3-xii needs to be removed, then the guestfish command at step 5-iii needs to be replace with the guestfish command in comment #30

Comment 32 Steve Baker 2021-08-24 19:52:27 UTC
Just a note that this fix will be needed on 16.1 documentation also

Comment 38 Alex McLeod 2022-02-11 12:53:52 UTC
Merged to main and 16.2