Bug 438369

Summary: LVM with no VG causes Python stacktrace
Product: Red Hat Enterprise Linux 5 Reporter: Fernando Nasser <fnasser>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.1CC: jgranado
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-11 19:07:22 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 Fernando Nasser 2008-03-20 16:36:35 UTC
Description of problem:
Anaconda fails with Python stacktrace if LVM partition created and no VG uses it

Version-Release number of selected component (if applicable):
5.1


How reproducible:
Always


Steps to Reproduce:
1. Create a partition and tell it is a LVM type
2. Do NOT go into the "LVM" and create a volume group for it
3. Watch the stacktrace with a vgcreate with a unexpanded %s on it
  
Actual results:
Stacktrace

Expected results:
Disk partitioned, formated and installation continuing

Additional info:
Unfortunately I lost the stacktrace and it would be hard to copy anyway (the
system is now in use).  It should be straightforward to reproduce though.

Comment 1 Joel Andres Granados 2008-04-18 14:06:01 UTC
I started a RHEL5 installation on a machine with a disk that only had a physical
volume in it.  Anaconda did not see the physical volume but did not trace back.
 I installed a new PV and could successfully install a VG on top of that with no
tracebacks.

Can you be more descriptive of the situation in which you encountered the
problem.  Were you using ks file.  Were you in a Graphical installation?


Comment 2 Fernando Nasser 2008-04-22 00:12:54 UTC
That is not the situation described in the "steps to reproduce".  It happens
when you create in your disk a partition marked as LVM type but don't go into
the LVM GUI to create a volume group.  I had /, /usr swap, all other partitions
defined.  The only extraordinary thing was this partition marked as LVM for
which I did not create a volume group for.

If you look at the error message I described, Anaconda expects to provide that
'vgcreate' command with the name of a group and replace that %s with it.  As I
did not create the volume groups, there was no volume group number to replace
the %s.



Comment 3 Joel Andres Granados 2008-04-22 09:04:25 UTC
(In reply to comment #2)
> That is not the situation described in the "steps to reproduce".  

Sorry about this, I misunderstood.

I tested again and did not see any trace back.  I went into the partitioning
gui, created a lvm partition but did not put any volume group in the partition.
 Anaconda formated the filesystem and finished installation as expected.

Are you still seeing this?  Can you please test again to see if it is still an
issue?

Comment 4 Joel Andres Granados 2008-06-11 19:07:22 UTC
Its been a couple of months.  Please reopen this issue if you are still seeing
this with RHEL52