RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 593871 - cannot activate VG with missing PV(s)
Summary: cannot activate VG with missing PV(s)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: All
OS: Linux
low
urgent
Target Milestone: rc
: ---
Assignee: Hans de Goede
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-19 22:02 UTC by Brian Lane
Modified: 2010-07-02 20:49 UTC (History)
3 users (show)

Fixed In Version: anaconda-13.21.44-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-02 20:49:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
traceback (215.22 KB, text/plain)
2010-05-19 22:02 UTC, Brian Lane
no flags Details

Description Brian Lane 2010-05-19 22:02:24 UTC
Created attachment 415273 [details]
traceback

Description of problem:
Created an updates image with all changes since v13.21.39-1 and booted 20100512 Workstation DVD with the updates.

After formatting some of the partitions it fails with the error: cannot activate VG with missing PV(s)


How reproducible:
Always

I modified my updates.img to include only the test I was trying to test and it ran fine. If I create an updates with changes since 13.21.43 it has my changes for mount sanity and storage module changes, which fails. If I remove the storage changes, leaving only my changes since 13.21.43 it runs correctly.

Comment 2 Hans de Goede 2010-05-20 09:23:01 UTC
Oh, brown paper bag bug. I made 2 innocent looking changes to the patchset in question after some discussions with dlehman (but this is entirely my fault) and
I did not retest.

The exception which you are seeing used to get thrown based on this check:
if len(self.parents) < self.pvCount:

Which I changed to:
if not self.complete:

Which boils down to:
if len(self.parents) != self.pvCount:

But self.pvCount never gets set for non pre existing vgs, so it is always
0, we didn't trip over this before because of the (wrong) < check in the original code.

Patch coming up.

Note to PM and QA, this bug makes any installs involving lvm fail, can we get acks please.

Comment 3 Hans de Goede 2010-05-20 09:53:51 UTC
Fixed in anaconda-13.21.44-1, moving to modified.

Comment 4 Alexander Todorov 2010-05-20 09:55:04 UTC
The traceback is:

anaconda 13.21.39 exception report
Traceback (most recent call first):
  File "/tmp/updates/storage/devices.py", line 1930, in setup
    raise DeviceError("cannot activate VG with missing PV(s)", self.name)
  File "/tmp/updates/storage/devices.py", line 1969, in create
    self.setup()
  File "/tmp/updates/storage/deviceaction.py", line 203, in execute
    self.device.create(intf=intf)
  File "/tmp/updates/storage/devicetree.py", line 701, in processActions
    action.execute(intf=self.intf)
  File "/tmp/updates/storage/__init__.py", line 292, in doIt
    self.devicetree.processActions()
  File "/tmp/updates/packages.py", line 109, 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 126, in gotoNext
    self.moveStep()
  File "/tmp/updates/gui.py", line 1423, in setScreen
    self.anaconda.dispatch.gotoNext()
  File "/tmp/updates/gui.py", line 1336, in nextClicked
    self.setScreen ()
DeviceError: ('cannot activate VG with missing PV(s)', 'VolGroup')

Comment 5 Brian Lane 2010-05-20 15:52:44 UTC
Perfect! This fixes the problem for me. I retested with the same setup, only difference was the updates included this morning's commits, and it works fine.

Comment 7 Alexander Todorov 2010-05-25 16:13:21 UTC
With snapshot #5 (0523.0) I did two installs:

1) Using defaults (LVM) with 2 disks
2) Using all space (LVM) with only the second disk

There was no error. Moving to VERIFIED.

Comment 8 releng-rhel@redhat.com 2010-07-02 20:49:52 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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