[Bug 755021] New: Installation with autoyast fails if lvm volume group exists on drive
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c0 Summary: Installation with autoyast fails if lvm volume group exists on drive Classification: openSUSE Product: openSUSE 12.2 Version: Milestone 2 Platform: x86-64 OS/Version: SLES 11 Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: frank@samaxi.de QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 When I try to install SLES 11 SP2 via autoyast on a machine which has a configured lvm Volume Group, the Installation process hangs while preparing disks I found this error on SLES 11 SP 2 but as far as i have seen it`s a general problem in libstorage (and maybe affects other suse versions). Reproducible: Always Steps to Reproduce: 1. create lvm volume group on hdd 2. start installation with autoyast 3. "vgremove" will hang. Actual Results: ############################################################################### 2012-03-30 17:26:15 <1> 10.0.7.245(3659) [libstorage] SystemCmd.cc(SystemCmd):49 constructor SystemCmd:"/sbin/vgremove 'system'" 2012-03-30 17:26:15 <1> 10.0.7.245(3659) [libstorage] SystemCmd.cc(execute):93 SystemCmd Executing:"/sbin/vgremove 'system'" 2012-03-30 17:26:15 <1> 10.0.7.245(3659) [libstorage] SystemCmd.cc(addLine):595 Adding Line 1 "Do you really want to remove volume group "system" containing 1 logical volumes? [y/n]: " 2012-03-30 17:26:15 <1> 10.0.7.245(3659) [libstorage] SystemCmd.cc(getUntilEOF):561 pid:5899 added lines:1 stderr:false ############################################################################### Expected Results: Proceed without Installation I checked out git://gitorious.org/opensuse/libstorage.git and think the following diff should fix the problem, but i`m not sure, as i had no chance to test it: diff --git a/storage/LvmVg.cc b/storage/LvmVg.cc index 3365dff..a435756 100644 --- a/storage/LvmVg.cc +++ b/storage/LvmVg.cc @@ -1261,7 +1261,7 @@ LvmVg::doRemoveVg() activate(true); getStorage()->showInfoCb(removeText(true),silent); checkConsistency(); - string cmd = VGREMOVEBIN " " + quote(name()); + string cmd = VGREMOVEBIN " -f " + quote(name()); SystemCmd c( cmd ); if( c.retcode()!=0 ) { -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c1 --- Comment #1 from Frank Schreiner <frank@samaxi.de> 2012-03-30 16:58:44 UTC --- Additional Hint: a snapshot was active, maybe this was the problem, but this should not happen anyway -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c2 --- Comment #2 from Frank Schreiner <frank@samaxi.de> 2012-03-30 17:43:15 UTC --- I would like to confirm my last comment: The problem occures if i create a snapshot in the vg and don`t delete it. If there is no snapshot, everything works fine -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c3 kk zhang <kkzhang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |kkzhang@novell.com InfoProvider| |frank@samaxi.de --- Comment #3 from kk zhang <kkzhang@novell.com> 2012-03-31 03:15:57 UTC --- Hi,Thank you for your report,Could you please attach y2logs according to the following URL?Thank you. http://en.opensuse/openSUSE:Bugreport_YaST -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c4 --- Comment #4 from Frank Schreiner <frank@samaxi.de> 2012-04-02 07:52:40 UTC --- Created an attachment (id=484404) --> (http://bugzilla.novell.com/attachment.cgi?id=484404) y2log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c5 --- Comment #5 from Frank Schreiner <frank@samaxi.de> 2012-04-02 07:54:11 UTC --- Created an attachment (id=484406) --> (http://bugzilla.novell.com/attachment.cgi?id=484406) disk sdb info -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c6 --- Comment #6 from Frank Schreiner <frank@samaxi.de> 2012-04-02 07:54:43 UTC --- Created an attachment (id=484408) --> (http://bugzilla.novell.com/attachment.cgi?id=484408) Definition of Volumegroup system -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c7 --- Comment #7 from Frank Schreiner <frank@samaxi.de> 2012-04-02 08:02:09 UTC --- Hi, I have seen, that the lv "VAR" was not recognized by Yast2, maybe because of the active snapshot ("VAR_snap" was listed to be deleted). As the vg was not empty, vgremove tried to ask for confirmation. greetings Frank -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c8 Frank Schreiner <frank@samaxi.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|frank@samaxi.de | --- Comment #8 from Frank Schreiner <frank@samaxi.de> 2012-04-02 08:04:45 UTC --- sorry, forgot to remove NEEDINFO in last comments -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c9 kk zhang <kkzhang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |snwint@suse.com |ovo.novell.com | --- Comment #9 from kk zhang <kkzhang@novell.com> 2012-04-05 03:05:34 UTC --- Hi,could you please have a look at this?I am not sure whether it is right to assign it to you.Feel free to reassign it.Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|snwint@suse.com |fehr@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c10 Thomas Fehr <fehr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #10 from Thomas Fehr <fehr@suse.com> 2012-04-05 09:17:01 UTC --- Normally yast2 should actively remove any logical volumes before removing the VG. so the force switch (-f) should not be necessary. Maybe the order of removal of LVs must be adapted when snapshots are present. I will have a look into that. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c11 Thomas Fehr <fehr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #11 from Thomas Fehr <fehr@suse.com> 2012-04-05 10:51:23 UTC --- Bug was in order of LV removal. I changed this now to first remove snapshots and afterwards remove normal LVs. Fix is in code base for upcoming 12.2 and SLES11 SP3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755021 https://bugzilla.novell.com/show_bug.cgi?id=755021#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-05-02 19:00:24 CEST --- This is an autogenerated message for OBS integration: This bug (755021) was mentioned in https://build.opensuse.org/request/show/116292 Factory / libstorage -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com