Bug 758878

Summary: Anaconda doesn't understand partitions on raw disk devices
Product: [Fedora] Fedora Reporter: Edward Z. Yang <ezyang>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: achernya, djuran, jeremy, jonathan, rmj, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 14:01:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Edward Z. Yang 2011-11-30 21:18:37 UTC
As discussed in Bug 757106, it is often useful in virtualized environments to write partitions directly to the raw disk devices exposed to the VM by the host.

You might be tempted to achieve this by adding the following pre block:

%pre
mkfs.ext4 -f /dev/xvda
%end
part / --onpart /dev/xvda

But then Anaconda fails with this:

you have not created a bootloader stage1 target device
/boot filesystem cannot be of type disk
xvda must have one of the following disklabel types: gpt,msdos.

Because it fails in "Automatic Partitioning Errors", I don't think there are logs.

This is the correct thing to do for normal installs, so it probably should be a configurable option somewhere.

Comment 1 David Lehman 2011-12-06 18:47:18 UTC
(In reply to comment #0)
> As discussed in Bug 757106, it is often useful in virtualized environments to
> write partitions directly to the raw disk devices exposed to the VM by the
> host.

Partitions do not exist without a partition table (aka disklabel). What you are describing is creating filesystems on unpartitioned disks.

Please remind me why you cannot create a disklabel on the device.

> Because it fails in "Automatic Partitioning Errors", I don't think there are
> logs.

There are always logs.

> 
> This is the correct thing to do for normal installs, so it probably should be a
> configurable option somewhere.

I'm not sure where you got that notion from, but it is incorrect.

Comment 2 Edward Z. Yang 2011-12-06 18:59:00 UTC
(In reply to comment #1)
> Partitions do not exist without a partition table (aka disklabel). What you are
> describing is creating filesystems on unpartitioned disks.

Correct.

> Please remind me why you cannot create a disklabel on the device.

If the device has no disklabel on it, we can interact with the underlying LV in the host VM without having to use kpartx in order to read the partition table.  We can and do have disklabels on our devices right now, but this treated more as a wart than expected behavior.

> > Because it fails in "Automatic Partitioning Errors", I don't think there are
> > logs.
> 
> There are always logs.

Where are they stored? (certainly not on the disk, which it failed to partition.) If there are logs, I guess they would have to be captured using remote logging?

> > This is the correct thing to do for normal installs, so it probably should be a
> > configurable option somewhere.
> 
> I'm not sure where you got that notion from, but it is incorrect.

I think there is a slight misunderstanding here: the "correct thing" is to error when we discover no disklabel on a partition. That is to say, if I am installing a Fedora machine on some physical hardware, it's reasonable for the installer to get confused if /dev/sda has no disklabel on it.

So, what is being said here, is that *removing* these checks probably isn't a good idea, because they are usually correct. The request is to allow these checks to be disabled, if the user knows what they are doing.

Comment 3 Fedora End Of Life 2013-01-16 13:17:54 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Fedora End Of Life 2013-02-13 14:01:39 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.