Bug 884826 - ofpathname: Could not retrieve Open Firmware device path
Summary: ofpathname: Could not retrieve Open Firmware device path
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: ppc64
OS: Linux
high
high
Target Milestone: ---
Assignee: David Woodhouse
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F18Blockerppc
TreeView+ depends on / blocked
 
Reported: 2012-12-06 19:42 UTC by Mark Hamzy
Modified: 2013-01-07 16:58 UTC (History)
10 users (show)

Fixed In Version: powerpc-utils-1.2.12-4.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-07 16:58:20 UTC


Attachments (Terms of Use)
Add multipath support to ofpathname (844 bytes, patch)
2012-12-12 17:19 UTC, Gustavo Luiz Duarte
no flags Details | Diff

Description Mark Hamzy 2012-12-06 19:42:12 UTC
On a Fedora-18-Beta-RC1.3-ppc64-DVD system, and during installation, the following error occurs:

[root@riley6 ~]# grep ofpathname /var/log/anaconda/anaconda.program.log 
11:50:29,798 INFO program: ofpathname: Could not retrieve Open Firmware device path
11:50:29,799 INFO program:             for logical device "/dev/mapper/mpatha1". ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. /vdevice/vfc-client@30000019/disk@500507630e820609,0007000000000000:1,yaboot /vdevice/vfc-client@3000001a/disk@500507630e020609,0007000000000000:1,yaboot /vdevice/vfc-client@30000019/disk@500507630e820609,0007000000000000 /vdevice/l-lan@3000000b:speed=auto,duplex=auto,9.114.22.112,,9.114.214.127,9.114.214.254,5,5,255.255.255.0,512
11:50:29,800 INFO program: Running... ofpathname /dev/mapper/mpatha1
11:50:30,055 INFO program: ofpathname: Could not retrieve Open Firmware device path
11:50:30,056 INFO program: Running... nvram --update-config boot-device=ofpathname: Could not retrieve Open Firmware device path
            for logical device "/dev/mapper/mpatha1". ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. ofpathname: Could not retrieve Open Firmware device path for logical device /dev/mapper/mpatha1. /vdevice/vfc-client@30000019/disk@500507630e820609,0007000000000000:1,yaboot /vdevice/vfc-client@3000001a/disk@500507630e020609,0007000000000000:1,yaboot /vdevice/vfc-client@30000019/disk@500507630e820609,0007000000000000 /vdevice/l-lan@3000000b:speed=auto,duplex=auto,9.114.22.112,,9.114.214.127,9.114.214.254,5,5,255.255.255.0,512

You can reproduce this with ofpathname:

[root@riley6 ~]# ofpathname /dev/mapper/mpathap1
ofpathname: Could not retrieve Open Firmware device path
            for logical device "/dev/mapper/mpathap1".

Comment 1 Gustavo Luiz Duarte 2012-12-10 19:32:42 UTC
ofpathname currently does not handle dm devices, it cuts out lvm, multipath, luks, raid, etc. I will try to write a patch to add dm devices support to ofpathname, but given we don't have much time until final deadline it would be risky.

AFAIK, anaconda uses ofpathname only to set the boot-device. Is that right? In this case I think anaconda should be using the powerpc-utils' bootlist script, which does just that and has support for dm devices.

Could someone from the anaconda team comment on the possibility of anaconda switching to use bootlist instead of ofpathname?

Comment 2 Gustavo Luiz Duarte 2012-12-12 17:19:40 UTC
Created attachment 662525 [details]
Add multipath support to ofpathname

This patch adds multipath support to ofpathname. This should fix the install issues on multipath devices.

Upstream maintainer has acked to get it pulled in. Please add it as a patch to the powerpc-utils package in Fedora.

Comment 3 Gustavo Luiz Duarte 2013-01-07 16:58:20 UTC
powerpc-utils-1.2.12-4.fc18 fixes this bug, closing it.


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