Bug 1335504 - Before the installation starts, NGN on UEFI machine enters dracut emergency shell.
Summary: Before the installation starts, NGN on UEFI machine enters dracut emergency s...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-node
Classification: oVirt
Component: Installation & Update
Version: 4.0
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ovirt-4.0.0-rc
: ---
Assignee: Ryan Barry
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-12 11:00 UTC by Wei Wang
Modified: 2016-06-02 11:03 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-02 11:03:02 UTC
oVirt Team: Node
Embargoed:
fdeutsch: ovirt-4.0.0?
rule-engine: planning_ack?
fdeutsch: devel_ack+
cshao: testing_ack+


Attachments (Terms of Use)
kickstart file (909 bytes, text/plain)
2016-05-12 11:00 UTC, Wei Wang
no flags Details
picture (40.48 KB, image/png)
2016-05-12 11:01 UTC, Wei Wang
no flags Details
rdsosreport (109.51 KB, text/plain)
2016-05-16 07:48 UTC, Wei Wang
no flags Details
Working EFI kickstart (695 bytes, text/plain)
2016-05-17 16:33 UTC, Ryan Barry
no flags Details
Working EFI kickstart (613 bytes, text/plain)
2016-05-17 16:35 UTC, Ryan Barry
no flags Details
screenshot_uefi (29.82 KB, image/png)
2016-05-27 01:38 UTC, Wei Wang
no flags Details

Description Wei Wang 2016-05-12 11:00:40 UTC
Created attachment 1156634 [details]
kickstart file

Description of problem:
Kickstart install NGN on UEFI machine enter dracut emergency shell.

Version-Release number of selected component (if applicable):
ovirt-node-ng-installer-ovirt-3.6-2016051108.iso


How reproducible:
100%

Steps to Reproduce:
1. Machine is set to UEFI boot mode
2. Install the NGN with kickstart file as attachment show.

Actual results:
Kickstart install NGN on UEFI machine enter dracut emergency shell.

Expected results:
Install successfully via UEFI boot.


Additional info: 
Due to the UEFI machine located in Lab, so I can't obtain the log info, I will send ticket to lab admin to get log file tomorrow.

Comment 1 Wei Wang 2016-05-12 11:01:26 UTC
Created attachment 1156635 [details]
picture

Comment 2 Fabian Deutsch 2016-05-12 11:22:04 UTC
Is dracut dropping into rescue mode before stating the installer?
Or is it dropping into rescue mode after the reboot after installation?

Please provide the complete rdsosreport

Comment 3 cshao 2016-05-12 11:31:15 UTC
(In reply to Fabian Deutsch from comment #2)
> Is dracut dropping into rescue mode before stating the installer?
Yes.

> Or is it dropping into rescue mode after the reboot after installation?
> 
> Please provide the complete rdsosreport

Lab admin is off duty today, weiwang will send ticket to admin to get log file tomorrow.

Comment 4 Wei Wang 2016-05-13 03:04:18 UTC
Hi Fabian,
Ticket has been sent to admin, I will attach the rdsosreport as soon as possible.

Comment 5 Wei Wang 2016-05-16 07:48:46 UTC
Created attachment 1157804 [details]
rdsosreport

Got log file, and attached into attachment.

Comment 6 Ryan Barry 2016-05-17 16:33:37 UTC
I cannot reproduce this.

The kickstart given doesn't look right, though. I'll attach a kickstart which works with inst.ks=... (note that an appropriate stage2 needs to be given also).

Are you PXE booting this machine? Can you provide the configuration? I can also PXE install without problems, but I may be able to spot the error in your config.

Comment 7 Ryan Barry 2016-05-17 16:33:59 UTC
Created attachment 1158387 [details]
Working EFI kickstart

Comment 8 Ryan Barry 2016-05-17 16:35:16 UTC
Created attachment 1158388 [details]
Working EFI kickstart

Comment 9 Fabian Deutsch 2016-05-17 19:14:52 UTC
Lowering priority according to comment 6: The kickstart looks wrong, key: It has no LVM in it. And: It is tried to create partitions on a DVD-ROM

Comment 10 Wei Wang 2016-05-19 06:40:01 UTC
Hi Ryan,
I used virtual CD booting for this issue, since we have no PXE server supporting UEFI boot.

Comment 11 cshao 2016-05-19 07:05:58 UTC
Set bug severity to low due to our UEFI mahcine doesn't support boot from PXE server.

Comment 12 Ryan Barry 2016-05-19 12:00:45 UTC
(In reply to weiwang from comment #10)
> Hi Ryan,
> I used virtual CD booting for this issue, since we have no PXE server
> supporting UEFI boot.

Ok, that's much easier, since the stage2 is already present.

Can you please host the kickstart I attached somewhere, and try booting from EFI with that kickstart?

I also tested installation from CDROM (in an EFI virtual machine) with the provided kickstart and it worked...

Comment 13 Wei Wang 2016-05-23 02:24:29 UTC
hi Ryan,
I have tried what you said(only changing the liveimg url for myself url), but it is failed booting from EFI. There are two confusing problems here:
1. Using virtual CD booting, the nic does not boot any more, so the url in kickstart file for getting installation tree is unreachable, maybe this is the reason for the booting failure.
2. From https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst for EFI booting, we need to add commands in kickstart file as blow:
   part biosboot --size=1 --fstype=biosboot
   part /boot/efi --fstype=efi --size=....
is it right? or there is another comprehension for EFI booting commands in kickstart file.

Comment 14 Ryan Barry 2016-05-23 05:57:08 UTC
Have you tried with ip=dhcp? Anaconda should do this automatically if a remote URI is specified, but worth a try.

If you tell me which system it is, I can connect and try.

Also, autopart is fine. Anaconda will automatically detect that it's EFI and set up the appropriate partitions.

No biosboot partition is necessary for GPT partitioned disks using EFI (which should be all of them)

Comment 15 Wei Wang 2016-05-26 05:23:14 UTC
hi Ryan,
Yes, I have tried with dhcp. And I will send you email about the system, you can try to connect.

Test steps:
1. Modify the liveimg url of "Working EFI kickstart" in comments 8, and using it as kickstart file
2. Download ovirt-node-ng iso to be boot iso for installation
3. Find a physical machine which support UEFI, then configure UEFI in boot settings.
4. Boot machine, entry into grub menu, select Centos 7, and then press "e" to add inst.ks parameter for boot kernel argument. Then press ctrl+x to start install
5. Check the process of installation

Result:
Installation failed, and kernel panic occur. (Take snapshot in attachment)

More info:
UEFI test must use physical machine, since vm is not so accuracy for UEFI testing.

Are these test steps right? Are these same with yours?

Comment 16 Ryan Barry 2016-05-26 11:28:32 UTC
(In reply to weiwang from comment #15)
> hi Ryan,
> Yes, I have tried with dhcp. And I will send you email about the system, you
> can try to connect.
> 
> Test steps:
> 1. Modify the liveimg url of "Working EFI kickstart" in comments 8, and
> using it as kickstart file
> 2. Download ovirt-node-ng iso to be boot iso for installation
> 3. Find a physical machine which support UEFI, then configure UEFI in boot
> settings.
> 4. Boot machine, entry into grub menu, select Centos 7, and then press "e"
> to add inst.ks parameter for boot kernel argument. Then press ctrl+x to
> start install
> 5. Check the process of installation
> 
> Result:
> Installation failed, and kernel panic occur. (Take snapshot in attachment)
> 
> More info:
> UEFI test must use physical machine, since vm is not so accuracy for UEFI
> testing.
> 
> Are these test steps right? Are these same with yours?

These are the same as mine, yes. No screenshot is attached, but I'll try the system...

Comment 17 Wei Wang 2016-05-27 01:38:50 UTC
Created attachment 1162325 [details]
screenshot_uefi

Comment 18 Ryan Barry 2016-05-27 04:34:44 UTC
Thanks --

I'll use IPMI tomorrow to test this

Comment 19 Ryan Barry 2016-05-27 18:07:26 UTC
(In reply to weiwang from comment #17)
> Created attachment 1162325 [details]
> screenshot_uefi

I cannot reproduce this on the given test machine.

I used inst.ks=http://209.132.178.115/uefi.ks. No other parameters were added/changed.

I also hosted the image installation at http://cloud.rbarry.org/uefi.iso, along with the squashfs used (the squashfs is just a build from the latest ovirt-node-ng master, the ISO is just ovirt-node-ng/scripts/derive-boot-iso using a RHEL 7.2 boot ISO and that squashfs).

I had to install in text mode, but that may be due to some limitation in the connection (it wasn't very fast). I don't know if X normally worksion Anaconda in this system.

I also had to manually trigger "dhclient em1" from one of the Anaconda shells (Ctrl+Alt+F2) to be able to retrieve the squashfs. I don't think this is an EFI problem, but rather a configuration problem in the lab somewhere, or the kickstart may need to specify --device=link or --device=... for the apprpriate external interface.

Retrieving the kickstart was fine, but since all 6 NICs have valid addressing, the kickstart may need a tweak for this machine. Or the other interfaces should not assign default routes.

I left the system installed.

Comment 20 Wei Wang 2016-06-01 09:24:20 UTC
hi Ryan,
I have checked the system on the given test machine, and it is still in BIOS boot mode. Could you please check your steps and retry it on UEFI mode? The system info will send to you by email.

And I use the ks file which you've given, still can reproduce this bug. But the iso you've given can be installed on UEFI mode correctly, it is interactive installation. So for automatic installation with kickstart file, the bug still occur.

Comment 21 Ryan Barry 2016-06-01 12:49:38 UTC
(In reply to weiwang from comment #20)
> hi Ryan,
> I have checked the system on the given test machine, and it is still in BIOS
> boot mode. Could you please check your steps and retry it on UEFI mode? The
> system info will send to you by email.
> 
> And I use the ks file which you've given, still can reproduce this bug. But
> the iso you've given can be installed on UEFI mode correctly, it is
> interactive installation. So for automatic installation with kickstart file,
> the bug still occur.

I'll reinstall this.

My guess is that somebody else accessed the system. It was definitely in UEFI mode (this is easily checked by the way grub looks, but I also checked efibootmgr and efivars after install).

I also automatically installed.

Comment 22 Ying Cui 2016-06-02 11:03:02 UTC
Rechecked the test steps with reporter together, incorrect setting on booting menu items. So closed this bug as not a bug.


Note You need to log in before you can comment on or make changes to this bug.