[INSTRM-449] ansible grub role need to be fixed Created: 16/Aug/18 Updated: 14/Mar/23 Resolved: 14/Mar/23 |
|
| Status: | Won't Fix |
| Project: | Instrument control development |
| Component/s: | ics_ansible |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Normal |
| Reporter: | kyono | Assignee: | yuki.moritani |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Shimono-san, As we ran ansible for a rga1-vm replacement server, we had issue on grub config. Eiji |
| Comments |
| Comment by shimono [ 20/Aug/18 ] |
|
originally, I thought it is due that role does not check condition, but task has a line of do you have detailed information on trouble? like how configuration was modified wrongly. |
| Comment by kyono [ 21/Aug/18 ] |
|
>so, this role will not run when grub is already configured by uuid. With Kiaina and Yoshida-san's help, we checked block id of /dev/sda6 and updated grub config to use uuid instead of /dev/sda6 which sounds like how it should be... >grub-uuid issue is on r710?What is the RAID on the server PERC 6/iR? H700? For "ansible all -m setup -i <inventory> -l <target> -k -K" output, I may update it to Jira tomorrow... Sorry for delay. |
| Comment by shimono [ 24/Aug/18 ] |
|
I have not secured actual condition, but it seems cmdline will get device name but not uuid on some hardware condition. stretch% cat /proc/cmdline (VM) |
| Comment by shimono [ 24/Aug/18 ] |
|
again, could not reproduce with test environment at IPMU. using rca4-vm as above. what was the actual configuration of grub? on recovery process you should be checked on grub boot window, to fix them. also information which shall be provided for investigation, like configuration files, system configuration (/proc) outputs are almost missing. |
| Comment by kyono [ 31/Aug/18 ] |
|
Sorry for delayed response. As of now, [/proc/cmdline] pfs@rfa3-vm:~$ cat /proc/cmdline BOOT_IMAGE=/vmlinuz-4.9.0-8-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro quiet
[/etc/default/grub] pfs@rfa3-vm:~$ cat /etc/default/grub
GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet" GRUB_CMDLINE_LINUX=""
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
#GRUB_TERMINAL=console
#GRUB_GFXMODE=640x480
#GRUB_DISABLE_LINUX_UUID=true
#GRUB_DISABLE_RECOVERY="true"
#GRUB_INIT_TUNE="480 440 1"
GRUB_DEVICE_UUID="43069cc7-f63c-46e6-9b91-1da32fb43798"
[/boot/grub/grub.cfg] pfs@rfa3-vm:~$ cat /boot/grub/grub.cfg #
#
#
if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="0" fi
if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi
function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi }
if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_msdos insmod xfs if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 43069cc7-f63c-46e6-9b91-1da32fb43798 else search --no-floppy --fs-uuid --set=root 43069cc7-f63c-46e6-9b91-1da32fb43798 fi font="/usr/share/grub/unicode.pf2" fi
if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm fi terminal_output gfxterm if [ "${recordfail}" = 1 ] ; then set timeout=30 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=5 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=5 fi fi
set menu_color_normal=cyan/blue set menu_color_highlight=white/blue
function gfxmode { set gfxpayload="${1}" } set linux_gfx_mode= export linux_gfx_mode menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-43069cc7-f63c-46e6-9b91-1da32fb43798' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea else search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea fi echo 'Loading Linux 4.9.0-8-amd64 ...' linux /vmlinuz-4.9.0-8-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-8-amd64 }submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-43069cc7-f63c-46e6-9b91-1da32fb43798' { menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-advanced-43069cc7-f63c-46e6-9b91-1da32fb43798' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea else search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea fi echo 'Loading Linux 4.9.0-8-amd64 ...' linux /vmlinuz-4.9.0-8-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-8-amd64 }menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-recovery-43069cc7-f63c-46e6-9b91-1da32fb43798' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea else search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea fi echo 'Loading Linux 4.9.0-8-amd64 ...' linux /vmlinuz-4.9.0-8-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-8-amd64 }menuentry 'Debian GNU/Linux, with Linux 4.9.0-7-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-7-amd64-advanced-43069cc7-f63c-46e6-9b91-1da32fb43798' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea else search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea fi echo 'Loading Linux 4.9.0-7-amd64 ...' linux /vmlinuz-4.9.0-7-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-7-amd64 }menuentry 'Debian GNU/Linux, with Linux 4.9.0-7-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-7-amd64-recovery-43069cc7-f63c-46e6-9b91-1da32fb43798' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea else search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea fi echo 'Loading Linux 4.9.0-7-amd64 ...' linux /vmlinuz-4.9.0-7-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-7-amd64 }menuentry 'Debian GNU/Linux, with Linux 4.9.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-3-amd64-advanced-43069cc7-f63c-46e6-9b91-1da32fb43798' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea else search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea fi echo 'Loading Linux 4.9.0-3-amd64 ...' linux /vmlinuz-4.9.0-3-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-3-amd64 }menuentry 'Debian GNU/Linux, with Linux 4.9.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-3-amd64-recovery-43069cc7-f63c-46e6-9b91-1da32fb43798' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea else search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea fi echo 'Loading Linux 4.9.0-3-amd64 ...' linux /vmlinuz-4.9.0-3-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-4.9.0-3-amd64 }}
menuentry 'Debian GNU/Linux 9 (stretch) (on /dev/sda6)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-43069cc7-f63c-46e6-9b91-1da32fb43798' { insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b44f5cb6-8727-452f-b736-7c6957571fea else search --no-floppy --fs-uuid --set=root b44f5cb6-8727-452f-b736-7c6957571fea fi linux /vmlinuz-4.9.0-8-amd64 root=UUID=43069cc7-f63c-46e6-9b91-1da32fb43798 ro quiet initrd /initrd.img-4.9.0-8-amd64 }submenu 'Advanced options for Debian GNU/Linux 9 (stretch) (on /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-43069cc7-f63c-46e6-9b91-1da32fb43798' { menuentry 'Debian GNU/Linux (on /dev/sda6)' - menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64 (on /dev/sda6)' - menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64 (recovery mode) (on /dev/sda6)' - menuentry 'Debian GNU/Linux, with Linux 4.9.0-7-amd64 (on /dev/sda6)' - menuentry 'Debian GNU/Linux, with Linux 4.9.0-7-amd64 (recovery mode) (on /dev/sda6)' - menuentry 'Debian GNU/Linux, with Linux 4.9.0-3-amd64 (on /dev/sda6)' - menuentry 'Debian GNU/Linux, with Linux 4.9.0-3-amd64 (recovery mode) (on /dev/sda6)' - }
if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi
|
| Comment by yuki.moritani [ 14/Mar/23 ] |
|
No demand now. |