Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1169541 - Freeze during "Setting up the installation environment" on dual-boot
Summary: Freeze during "Setting up the installation environment" on dual-boot
Keywords:
Status: CLOSED DUPLICATE of bug 1170153
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F21FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2014-12-02 00:01 UTC by Christopher Tubbs
Modified: 2014-12-04 04:05 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-04 02:54:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
/tmp/anaconda.log (6.07 KB, application/x-gzip)
2014-12-02 00:01 UTC, Christopher Tubbs
no flags Details
/tmp/program.log (4.50 KB, application/x-gzip)
2014-12-02 00:02 UTC, Christopher Tubbs
no flags Details
/tmp/storage.log (39.55 KB, application/x-gzip)
2014-12-02 00:02 UTC, Christopher Tubbs
no flags Details
Output of parted and blkid (2.43 KB, text/plain)
2014-12-03 02:58 UTC, Christopher Tubbs
no flags Details
screenshot of hang (239.01 KB, image/png)
2014-12-03 21:59 UTC, Chris Murphy
no flags Details
anaconda.log (14.64 KB, text/plain)
2014-12-03 22:00 UTC, Chris Murphy
no flags Details
program.log (30.50 KB, text/plain)
2014-12-03 22:00 UTC, Chris Murphy
no flags Details
storage.log (197.85 KB, text/plain)
2014-12-03 22:00 UTC, Chris Murphy
no flags Details
storage.state (24.00 KB, application/octet-stream)
2014-12-03 22:00 UTC, Chris Murphy
no flags Details
journal (288.22 KB, text/x-vhdl)
2014-12-03 22:15 UTC, Chris Murphy
no flags Details

Description Christopher Tubbs 2014-12-02 00:01:17 UTC
Created attachment 963450 [details]
/tmp/anaconda.log

Description of problem:
I tried to install Fedora 21 (Final RC1) on my Lenovo Z40 with Windows 8.1 already installed, and anaconda freezes at the same point in the build. Restoring/Resetting Windows partitions using recovery disk and making room for Fedora by shrinking the partitions (in Windows, before booting Fedora Live USB), does not change the results. It always freezes at the same point, "Setting up the installation environment".

The Fedora ISO (on a USB) boots fine (with and without SecureBoot installed). Also, installing Fedora from the same installation media, but wiping out all existing partitions works fine. The problem only occurs when the existing partitions are left in place.

Version-Release number of selected component (if applicable):
Fedora 21 (Final RC1) ISO on a USB.
anaconda 21.48.18-1

How reproducible:
100%

Steps to Reproduce:
1. Use restore/recovery disks to reset machine to factory partitions.
2. Resize NTFS partitions to make room for Fedora.
3. Boot Fedora USB and click "Install to Disk" option (test installation media optional, but I did this frequently to ensure my disk wasn't bad).
4. Create Fedora partitions in the free space when configuring drives.
5. Click "Begin Installation".

Actual results:
Anaconda froze with the "Setting up the installation environment" message in the bottom bar, and never made progress. I could not click on "Help" or any other menu item in Anaconda, such as the option to set a root password or create users. No partition changes appeared to be successful.

Expected results:
Installation should proceed, and I should be able to set root password and create a user.

Additional info:
Installation works if I delete all the existing partitions.

Comment 1 Christopher Tubbs 2014-12-02 00:02:00 UTC
Created attachment 963451 [details]
/tmp/program.log

Comment 2 Christopher Tubbs 2014-12-02 00:02:32 UTC
Created attachment 963452 [details]
/tmp/storage.log

Comment 3 Chris Murphy 2014-12-02 19:04:47 UTC
What results do you get for:
# parted /dev/sda u s p
# blkid
I'd like to try to reproduce this in a VM; inferring this from storage.log is confusing. I'm seeing sda1, sda5, sda6, are NTFS which is an unusual layout.

It may be useful to see the full journal at the time the hang happens:
# journalctl -b -l -o short-monotonic > /tmp/journalh.log  ##I'm adding h just because I'm too lazy to find out if the installer already writes out a journal.log or .txt file or if it only does that at the end of the install. Please attach it as a file rather than pasting the whole thing.

It's probably too much information, but it might be worth a sysrq-t before you run journalctl. This will show all tasks, dumped to kernel messages buffer which journald will then pick up. Maybe someone else has a better idea about how to get more info what's hung up.

Comment 4 Chris Murphy 2014-12-02 19:25:04 UTC
While you're at it, if you could test with RC4 instead, it's 6 days newer.

Comment 5 Chris Murphy 2014-12-02 19:28:11 UTC
And instead of sysrq-t, how about a plain old 'ps aux' output saved as a file and attached. Maybe it'll show a dead process we can then get more information on.

Comment 6 Chris Murphy 2014-12-02 20:24:08 UTC
(In reply to Chris Murphy from comment #4)
> While you're at it, if you could test with RC4 instead, it's 6 days newer.
Sorry, I meant RC2. Anyway, more importantly I'd like to see the info from parted so I can reproduce the layout and see if something about that is the trigger.

Comment 7 Christopher Tubbs 2014-12-03 02:58:33 UTC
Created attachment 963944 [details]
Output of parted and blkid

Comment 8 Christopher Tubbs 2014-12-03 03:18:15 UTC
I tried again with RC2 and had the same result. I also tried after removing sda3 and sda6 (the FAT32 "hidden" EFI partition, which I'm not sure what it is used for, and the "hidden" recovery partition).

Comment 9 Chris Murphy 2014-12-03 21:06:13 UTC
Weird, two partitions named EFI system partition. The Windows install media is not Microsoft original, I'm guessing it's media that comes with the computer and its a one shot restore (no options) that configures it this way? What do you get for

# sgdisk -i3 /dev/sda

I'm curious what the "partition GUID code" (same as UEFI spec 'PartitionTypeGUID'), and attribute flags are set to.

Comment 10 Christopher Tubbs 2014-12-03 21:26:33 UTC
This is the OEM partitioning layout for the Lenovo Z40 that I recently purchased. It is re-created this way whenever I restore the disk using the USB recovery media created from the initial installation. Lenovo is also very stingy about recovery media (they refuse to send me a disk unless I purchase a full retail copy; at least Dell would include one for a nominal $10 fee), so I'm reliant on the USB recovery media I created to test with.

I can run the sgdisk command later today, to verify, but I can tell you that I remember that the GUID was definitely different between those two partitions labeled "EFI System Partition", so only one was really an EFI partition. Plus, I also got the same behavior in anaconda after deleting the second one. So, despite that strange appearance of two EFI partitions, I don't think it was the root cause of the issue.

Comment 11 Chris Murphy 2014-12-03 21:35:33 UTC
Even without exactly reproducing the partitiontypeGUIDS for partitions 3 and 4 (even without installing Windows as I don't have this Windows restore media), I've reproduced this bug in a VBox UEFI VM. It doesn't appear to be the dosfsck hang problem either.

Here is ps aux: http://ur1.ca/iyzj0
top reports anaconda alone is using 100%CPU
The GUI is unresponsive. I'm not sure how to get more information; the program.log ends at 24m34s past the hour, it's now 33m00s past the hour so nothing is in the log since the moment the hang started.

This is a really unremarkable layout, probably more common for OEM Windows installs to look like this than Microsoft produced install media (which only creates three partition installations).

Comment 12 Fedora Blocker Bugs Application 2014-12-03 21:42:17 UTC
Proposed as a Blocker for 21-final by Fedora user chrismurphy using the blocker tracking app because:

 "The installer must be able to install into free space alongside an existing clean Windows installation and install a bootloader which can boot into both Windows and Fedora."

I don't even have Windows installed, I'm just emulating the layout the original reporter gets when doing a clean restore of Windows to his system. The installer is hanging seemingly due to a particular partition layout.

Comment 13 Chris Murphy 2014-12-03 21:59:38 UTC
Created attachment 964355 [details]
screenshot of hang

Comment 14 Chris Murphy 2014-12-03 22:00:02 UTC
Created attachment 964356 [details]
anaconda.log

Comment 15 Chris Murphy 2014-12-03 22:00:15 UTC
Created attachment 964357 [details]
program.log

Comment 16 Chris Murphy 2014-12-03 22:00:26 UTC
Created attachment 964358 [details]
storage.log

Comment 17 Chris Murphy 2014-12-03 22:00:43 UTC
Created attachment 964359 [details]
storage.state

Comment 18 Chris Murphy 2014-12-03 22:15:56 UTC
Created attachment 964360 [details]
journal

journalctl -b -l -o short-monotonic

Comment 19 Chris Murphy 2014-12-03 22:31:56 UTC
I think this is a python-blivet bug, that's where the storage.log ends, executing action creating partition 7, which actually needs to go in between partitions 5 and 6 since that's where the free space is (completely legal in the UEFI spec to have non-contiguously numbered partitions). When I delete partition 6, the bug isn't reproducible.

Comment 20 Adam Williamson 2014-12-03 22:34:39 UTC
"The installer is hanging seemingly due to a particular partition layout."

Well then what we're dealing with doesn't seem to be a problem in Windows dual boot. It's a problem with a particular partition layout.

The criterion would be "The installer must be able to create and install to any workable partition layout using any file system and/or container format combination offered in a default installer configuration." - https://fedoraproject.org/wiki/Fedora_21_Final_Release_Criteria#Disk_layouts - which is extremely subject to fudge, especially for bugs discovered very late in the release. I suspect the general opinion is going to be -1 blocker at this point.

Comment 21 Chris Murphy 2014-12-03 22:54:22 UTC
Bug does not occur with this combination:
anaconda-21.48.21-1.fc21.x86_64
python-blivet-0.61.13-1.fc21.noarch
pyparted-3.9.5-2.fc21.x86_64

Comment 22 Adam Williamson 2014-12-03 23:00:09 UTC
This is quite likely a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1170153 .

Comment 23 Adam Williamson 2014-12-04 02:54:11 UTC
Yeah, it really is.

*** This bug has been marked as a duplicate of bug 1170153 ***

Comment 24 Christopher Tubbs 2014-12-04 03:05:15 UTC
(In reply to Chris Murphy from comment #19)
> I think this is a python-blivet bug, that's where the storage.log ends,
> executing action creating partition 7, which actually needs to go in between
> partitions 5 and 6 since that's where the free space is (completely legal in
> the UEFI spec to have non-contiguously numbered partitions). When I delete
> partition 6, the bug isn't reproducible.

I can also confirm that deleting the last partition on the disk works. However, I found this to be the case *only* if there were no other unallocated areas between the other partitions. In other words, deleting partition 6 works, but deleting both partitions 3 and 6, and trying to install after partition 5, does not work.

Comment 25 Adam Williamson 2014-12-04 03:13:40 UTC
Christopher: it should be resolved in RC5. Please grab it and check, if you have the time. thanks!

Comment 26 Christopher Tubbs 2014-12-04 04:05:05 UTC
(In reply to Adam Williamson (Red Hat) from comment #25)
> Christopher: it should be resolved in RC5. Please grab it and check, if you
> have the time. thanks!

RC5 works just fine.


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