Bug 488861

Summary: [StorageRewrite] LVMError: pvremove failed for /dev/sda1 - custom partitioning with 1 local and 1 iSCSI disk fails
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: anacondaAssignee: Joel Andres Granados <jgranado>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: aj.werkman, awilliam, dlehman, jgranado, jturner, pjones, rmaximo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: StorageRewrite anaconda_trace_hash:556013eb8bfba991ec3519cd5955a5006d8fa2160b9b12f71d6bc9766367bc35
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-23 16:25:24 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:
Bug Depends On:    
Bug Blocks: 476774    
Attachments:
Description Flags
Attached traceback automatically from anaconda. none

Description James Laska 2009-03-05 23:54:56 UTC
The following was filed automatically by anaconda:
anaconda 11.5.0.24 exception report
Traceback (most recent call first):
  File "/tmp/updates/storage/devicelibs/lvm.py", line 138, in pvremove
    raise LVMError("pvremove failed for %s" % device)
  File "/tmp/updates/storage/formats/lvmpv.py", line 109, in destroy
    lvm.pvremove(self.device)
  File "/tmp/updates/storage/devices.py", line 1004, in destroy
    self.format.destroy()
  File "/tmp/updates/storage/deviceaction.py", line 216, in execute
    self.device.destroy()
  File "/tmp/updates/storage/devicetree.py", line 427, in processActions
    action.execute(intf=self.intf)
  File "/tmp/updates/storage/__init__.py", line 181, in doIt
    self.devicetree.processActions()
  File "/tmp/updates/packages.py", line 114, in turnOnFilesystems
    anaconda.id.storage.doIt()
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 128, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 1317, in nextClicked
    self.anaconda.dispatch.gotoNext()
LVMError: pvremove failed for /dev/sda1

Comment 1 James Laska 2009-03-05 23:55:00 UTC
Created attachment 334241 [details]
Attached traceback automatically from anaconda.

Comment 2 James Laska 2009-03-05 23:57:49 UTC
Test Case:

= Disk configuration =

1 local virtual disk (/dev/vda)
1 remote iSCSI disk (/dev/sda)

= Partitioning attempted =

/dev/vda1  /boot
/dev/vda2  swap
/dev/vda3  /

/dev/sda1  /opt

Comment 3 Chris Lumens 2009-03-09 20:03:15 UTC
I wonder if Joel's patch to add -ff -y to the pvremove arguments will fix this up.

Comment 4 David Lehman 2009-03-09 22:00:45 UTC
Yes -- it looks like the same problem.

Comment 5 James Laska 2009-03-19 20:37:52 UTC
Dup of bug#491124 ?

Comment 6 Joel Andres Granados 2009-03-20 10:43:11 UTC
*** Bug 491124 has been marked as a duplicate of this bug. ***

Comment 7 Joel Andres Granados 2009-03-20 10:44:57 UTC
I commited my "check for lvm crappyness" yesterday.  With that patch I stopped seeing this type of behavior.   Pls retest and see if it solves your issue.  If not we might have to add the "-ff -y" thingy

Comment 8 James Laska 2009-03-20 13:17:30 UTC
The F11Beta blocking bug got dup'd to this, adding this to F11Beta

Comment 9 Chris Lumens 2009-03-20 13:59:58 UTC
*** Bug 491290 has been marked as a duplicate of this bug. ***

Comment 10 A.J. Werkman 2009-03-20 19:31:34 UTC
I can still reproduce this bug in anaconda 11.5.0.34

Comment 11 David Lehman 2009-03-20 19:36:19 UTC
Can you provide the traceback?

Comment 12 A.J. Werkman 2009-03-22 10:26:09 UTC
Anaconda 11.5.0.35 traceback is in bug #491505

Comment 13 Joel Andres Granados 2009-03-23 18:51:14 UTC
The traceback in bug #491505  is different from the one stated here.  Can you reproduce the traceback stated in this bug?
"
LVMError: pvremove failed for /dev/sda1 
"

Comment 14 James Laska 2009-03-24 14:35:36 UTC
Retesting of this issue is blocked by bug#491887

Comment 15 Adam Williamson 2009-04-22 16:49:55 UTC
That bug's closed now, James, and this is on the preview blocker list: can you re-test now?

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 16 James Laska 2009-04-23 16:25:24 UTC
Confirmed fix in anaconda-11.5.0.47