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 624497 - 'Invalid device specification', anaconda crashes when formatting a partition on multipath device
Summary: 'Invalid device specification', anaconda crashes when formatting a partition ...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Ales Kozumplik
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On: 624505
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-16 16:37 UTC by Jeff Bastian
Modified: 2018-10-27 11:57 UTC (History)
4 users (show)

Fixed In Version: anaconda-13.21.81-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-01 18:44:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Debug patch for anaconda to treat singlepath SCSI devices as multipath device (626 bytes, patch)
2010-08-18 03:26 UTC, Jun'ichi NOMURA
no flags Details | Diff

Description Jeff Bastian 2010-08-16 16:37:31 UTC
Description of problem:
This is branching from bug 616273 comment 98.  Please see this bug for the original context.

anaconda crashes when formatting a partition on multipath device.  anaconda aborts with "Formatting Failed".  It says "An error was encountered while formatting device /dev/mapper/mpathop1." and "invalid device specification"

The problem was last confirmed with RHEL6 Snapshot10 with the bz616273.img
mentioned in this comment:
https://bugzilla.redhat.com/show_bug.cgi?id=616273#c93

The same phenomenon has occurred with different operations / conditions.
See the following comment for details:
https://bugzilla.redhat.com/show_bug.cgi?id=616273#c96


Version-Release number of selected component (if applicable):
anaconda 13.21.68
RHEL 6 Snapshot 10 + bz616273.img

How reproducible:
every time (?)

Steps to Reproduce:
1. Prepare 2 multipath devices
2. Clear partitions on both devices ('mklabel msdos' from parted)
3. Start RHEL6 installation
4. Select "Specialized Storage Device"
5. Select both multipath devices in device selection
6. Select "Create Custom Layout"
7. Create "/" on mpath#1, which appears lower of the 2 devices
   in the device listing
8. Create "/boot" on mpath#0, which appears higher of the 2 devices
   in the device listing
9. Click "Next"

Actual results:
anaconda crashes and gives 'invalid device specification' error

Expected results:
installation proceeds normally

Additional info:
19:09:45,044 CRITICAL: anaconda 13.21.68 exception report
Traceback (most recent call first):
  File "/tmp/updates/storage/formats/__init__.py", line 266, in create
    raise FormatCreateError("invalid device specification", self.device)
  File "/tmp/updates/storage/formats/fs.py", line 838, in create
    DeviceFormat.create(self, *args, **kwargs)
  File "/tmp/updates/storage/deviceaction.py", line 290, in execute
    options=self.device.formatArgs)
  File "/tmp/updates/storage/devicetree.py", line 700, in processActions
    action.execute(intf=self.intf)
  File "/tmp/updates/storage/__init__.py", line 298, in doIt
    self.devicetree.processActions()
  File "/tmp/updates/packages.py", line 109, in turnOnFilesystems
    anaconda.id.storage.doIt()
  File "/tmp/updates/dispatch.py", line 208, in moveStep
    rc = stepFunc(self.anaconda)
  File "/tmp/updates/dispatch.py", line 126, in gotoNext
    self.moveStep()
  File "/tmp/updates/gui.py", line 1338, in nextClicked
    self.anaconda.dispatch.gotoNext()
FormatCreateError: ('invalid device specification', '/dev/mapper/mpathop1')

Comment 2 Jun'ichi NOMURA 2010-08-18 03:26:29 UTC
Created attachment 439291 [details]
Debug patch for anaconda to treat singlepath SCSI devices as multipath device

The problem can be reproduced without real multipath hardware
using the attached patch.

Comment 3 Ales Kozumplik 2010-08-19 15:00:19 UTC
The patch in comment 3 does not work, I tested it with virtual scsi devices in
KVM. Since their ID_SERIALs contain spaces it is possible that it's just due to
bug 612173. Once that bug is fixed I'll retest the patch. Note however that
there are other multipath installs successfully finishing so there could be
something else necessary for reproducing.

Comment 5 Ales Kozumplik 2010-08-23 15:18:27 UTC
Reporter,

can you please reproduce the problem, the switch to tty2 and run
kpartx -a -p p /dev/mapper/mpathp

paste it's output and run
ls -l /dev/mapper

and paste it's output?

Thanks.
Ales

Comment 11 Ales Kozumplik 2010-08-26 10:58:27 UTC
Hello Jun'ichi,

a similar patch has already been submitted to rhel6 anaconda, see:
http://git.fedorahosted.org/git/?p=anaconda.git;a=commitdiff;h=588bf9f7ee9d17d139297d89f78c51789c578032

You should be able to tell if it fixes this bugzilla once you have the latest snapshot available (anaconda-13.21.81-1).

Ales

Comment 13 Ales Kozumplik 2010-09-14 14:11:11 UTC
I'm moving this to modified based on comment 12.

Comment 14 Chris Lumens 2010-10-01 18:44:25 UTC
Since we've got independent confirmation that this is fixed and its flags are all wrong for getting autoclosed, I am just going to put this into CLOSED->NEXTRELEASE.  If you feel this is the wrong resolution, feel free to change it or set flags or whatever.


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