Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
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 1294571 - Can not install 7.2 to iSCSI target in UEFI mode
Summary: Can not install 7.2 to iSCSI target in UEFI mode
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-29 03:31 UTC by Neil
Modified: 2016-02-19 15:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-20 08:50:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Logs in Anaconda. (deleted)
2015-12-29 03:31 UTC, Neil
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1164195 0 unspecified CLOSED Anaconda allows autopart installation of /boot to iSCSI disc 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1269195 0 high CLOSED AttributeError: 'NoneType' object has no attribute 'name' 2021-02-22 00:41:40 UTC

Internal Links: 1164195 1269195

Description Neil 2015-12-29 03:31:55 UTC
Created attachment 1110074 [details]
Logs in Anaconda.

Description of problem:
RHEL 7.2 can not be installed to iSCSI target.

Version-Release number of selected component (if applicable):
RHEL7.2

How reproducible:
Always.


Steps to Reproduce:
1.Boot system in UEFI mode.
2.Install Linux iSCSI service to another server. 
3.Install RHEL7.2 with ISO image to iSCSI target. 
4.During installing, partition iSCSI disk in auto mode. 
5.Anaconda crash then. 

Actual results:
Can not install OS.


Expected results:
Install OS to iSCSI target. 

Additional info:
RHEL6.7 works fine.
Bug can be seen on VM also. 

Oracle bug ID: 22382171 for reference.

Comment 1 Neil 2015-12-29 07:38:39 UTC
08:45:26,735 DEBUG anaconda: stage1 device cannot be of type iscsi
08:45:27,809 DEBUG anaconda: new disk order: []
08:45:27,833 DEBUG anaconda: stage1 device cannot be of type lvmvg
08:45:27,833 DEBUG anaconda: stage1 device cannot be of type lvmlv
08:45:27,833 DEBUG anaconda: stage1 device cannot be of type lvmlv
08:45:27,834 DEBUG anaconda: stage1 device cannot be of type lvmlv
08:45:27,834 DEBUG anaconda: stage1 device cannot be of type iscsi
08:45:27,835 DEBUG anaconda: stage1 device cannot be on an iSCSI disk
08:45:27,835 DEBUG anaconda: stage1 device cannot be on an iSCSI disk
08:45:27,835 DEBUG anaconda: stage1 device cannot be on an iSCSI disk
08:45:27,836 ERR anaconda: BootLoader setup failed: failed to find a suitable stage1 device


   def set_stage1_device(self, devices):
        ...     
            if self.is_valid_stage1_device(device):
                if flags.imageInstall and device.isDisk:
                    # GRUB2 will install to /dev/loop0 but not to
                    # /dev/mapper/<image_name>
                    self.stage1_device = device.parents[0]
                else:
                    self.stage1_device = device

                break

        if not self.stage1_device:
            self.reset()
            raise BootLoaderError("failed to find a suitable stage1 device")

    def is_valid_stage1_device(self, device, early=False):
        ...
        constraint = platform.platform.bootStage1ConstraintDict

        if device is None:
            return False

        if not self._device_type_match(device, constraint["device_types"]):
            log.debug("stage1 device cannot be of type %s", device.type)
            return False

        if _is_on_iscsi(device) and not _is_on_ibft(device):
            log.debug("stage1 device cannot be on an iSCSI disk")
            return False

So, the root cause is clear. iSCSI storage can't be stage1 device, why?

Comment 3 Neil 2016-01-13 02:33:16 UTC
I'm not authorized to access bug #1164195. Could you open access to me? Or, you might paste info here. Thanks. 

And, since RHEL6.7 works as expected, why different?

Comment 4 Radek Vykydal 2016-01-13 13:23:39 UTC
(In reply to Neil from comment #3)
> I'm not authorized to access bug #1164195. Could you open access to me? Or,
> you might paste info here. Thanks. 
> 

You should be able to access it now.

Basically, this is the change in 7.2:
https://bugzilla.redhat.com/show_bug.cgi?id=1164195#c20

> And, since RHEL6.7 works as expected, why different?

The motivation should be given by the bug Description.
We might have gone too far imposing the restriction on /boot partitions by ruling-out some valid use cases?

Comment 5 Neil 2016-01-15 02:37:29 UTC
Yes. I think we should enable customer installing bootloader, /boot, / to iSCSI target even when there is local disk available. That'll make sense.

Comment 6 Neil 2016-01-15 06:42:42 UTC
I found description as below in RHEL7 installation guide: 

The /boot partition cannot be placed on iSCSI targets which have been added manually using this method - an iSCSI target containing a /boot partition must be configured for use with iBFT.

Could you explain details on that? If I configure /boot partition with iBFT, the /boot part should always be placed on that iSCSI target, right? I'm confusing.

Comment 7 Radek Vykydal 2016-01-15 11:34:47 UTC
We just make the assumption that when placing stage 1 on an iSCSI device, user wants to boot from that device, so the device (iSCSI target) for booting is configured in iBFT table.

(In reply to Neil from comment #5)
> Yes. I think we should enable customer installing bootloader, /boot, / to
> iSCSI target even when there is local disk available. That'll make sense.

This should still be allowed in 7.2 but the device holding stage 1 must be configured (and therefore automatically attached by anaconda) in iBFT.

Comment 8 Neil 2016-01-20 06:29:39 UTC
After appending "ip=ibft" option, bug can be fixed.

Comment 9 Neil 2016-01-20 06:30:22 UTC
So, please close this bug. Thanks.

Comment 10 Radek Vykydal 2016-01-20 08:50:47 UTC
Trying to sum up the case: per comment #8 the issue here seems to be no network connection available for iscsi target configured in iBFT which resulted in anaconda not being able to automatically attach the target, so the target was added manually in GUI, which prevented placing boot loader on the device (as explained in comment #7). The issue is solved by activating network connection required for iBFT target using ip=ibft boot option.


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