Bug 433824 - anaconda fails to install and throws exception
Summary: anaconda fails to install and throws exception
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: anaconda
Version: 5.1
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: David Cantrell
QA Contact:
URL:
Whiteboard:
: 446646 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-21 16:34 UTC by Lutz Lange
Modified: 2014-06-10 07:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:52:44 UTC
Target Upstream Version:
Embargoed:
llange: needinfo-


Attachments (Terms of Use)
exception file for the bug (362.39 KB, text/plain)
2008-02-21 16:34 UTC, Lutz Lange
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1306 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2009-09-01 10:20:11 UTC

Description Lutz Lange 2008-02-21 16:34:51 UTC
Description of problem:
anaconda seams unable to delete LV Filesystems and thows an exception, aborting
the installation

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

How reproducible:
unsure ... it happend to 3 out of 10 pc's in an rh133 course. 
a kickstart file is used to install these machines.
  
Actual results:
exception thrown. installation aborts

Expected results:
successful installtion

Additional info:
temporary fix: remove all partition information before starting the
installation. Do a dd if=/dev/zero of=/dev/sda in the rescue mode.

Looking at the exception, i think anaconda is trying to delete lvm snapshots.
This will fail, because no snapshots were used.

Comment 1 Lutz Lange 2008-02-21 16:34:51 UTC
Created attachment 295534 [details]
exception file for the bug

Comment 2 Joel Andres Granados 2008-06-12 12:55:44 UTC
*** Bug 446646 has been marked as a duplicate of this bug. ***

Comment 3 David Cantrell 2008-11-21 04:46:51 UTC
Looks like this is still valid as of 5.3.  Patch:

diff --git a/partitions.py b/partitions.py
index 47ae4df..f2292dc 100644
--- a/partitions.py
+++ b/partitions.py
@@ -1599,6 +1599,8 @@ class Partitions:
         lvm_parent_deletes = []
         tmp = {}
         def addSnap(name, vg):
+            if not snapshots.has_key(name):
+                return
             snaps = snapshots[name]
             for snap, snapvg in snaps:
                 addSnap(snap, snapvg)

Comment 4 RHEL Program Management 2009-01-27 20:44:14 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 6 David Cantrell 2009-02-26 03:44:46 UTC
Fix is in anaconda-11.1.2.169-1 and later.

Comment 8 Alexander Todorov 2009-05-11 14:46:07 UTC
Lutz,
can you attach the ks.cfg used during install? What was previously on the system? Did the students use the same ks.cfg to install over and over again ?

Thanks.

Comment 9 Alexander Todorov 2009-07-07 09:18:17 UTC
Lutz,
I can't reproduce this on 5.3. Can you provide the kickstart file used in the training?

Comment 10 Lutz Lange 2009-07-07 12:39:50 UTC
Hi Alexander,

i think this bug was lvm snapshot based. And only poped up on machines that had an lvm snapshot set up during the last training cycle. 

Try installing a rhel5 system with vol0 volume group and create a few snapshots. After that reinstall that system with a kickstart that will use the same volume group. 

Don't know if i can provide the relevant kickstart, but will check if you still need it.

Regards Lutz

Comment 11 Brock Organ 2009-07-15 19:18:19 UTC
Hi Lutz,

Thanks for your feedback ... Due to time and schedule issues we're hoping that you can verify this issue is resolved, or provide us with specific information for a reproducer ... can you work with us to help verify this in the next week?  Otherwise the concern is that if the issue is not fully resolved it will not be addressed in the current update.

Regards,

Brock

Comment 12 Alexander Todorov 2009-07-20 11:39:27 UTC
(In reply to comment #10)
> Hi Alexander,
> 
> i think this bug was lvm snapshot based. And only poped up on machines that had
> an lvm snapshot set up during the last training cycle. 
> 
> Try installing a rhel5 system with vol0 volume group and create a few
> snapshots. After that reinstall that system with a kickstart that will use the
> same volume group. 
> 

I've tried the following:

1) Install a system and create 2 snapshots, one for vol0/home and one for vol0/root named home_snap, root_snap. Reused anaconda-ks.cfg to re-install. No traceback.

2) Install a system and create 2 snapshots, one for vol0/home and one for vol0/root named home_snap, root_snap. Reused anaconda-ks.cfg to re-install but changed the names of LVs in ks.cfg to match the names of the snapshots. No traceback. 

> Don't know if i can provide the relevant kickstart, but will check if you still
> need it.
> 

Please provide the ks.cfg used in the class and any instructions used in exercises (i.e. what snapshots, what names to create).

Comment 14 errata-xmlrpc 2009-09-02 09:52:44 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1306.html


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