Description of problem:
When using an image based system system the initiatorname.iscsi is the same across all who use the compose. Due to this, RHCOS (rpm-ostree based) removes initiatorname.iscsi and attempts to create it on first boot (https://bugzilla.redhat.com/show_bug.cgi?id=1687722#c7). However, this causes iscsid in initramfs to fail due to the missing file.
Version-Release number of selected component (if applicable):
- latest released iscsi-initiator-utils for RHEL 8
- latest OCP/RHCOS 4.1 and dev
Every time iscsi starts up in the initramfs
Steps to Reproduce:
1. Boot RHCOS
2. See the failure in the journal
Jul 29 17:37:12 localhost systemd: Starting Open-iSCSI...
Jul 29 17:37:12 localhost iscsid: iSCSI logger with pid=606 started!
Jul 29 17:37:12 localhost systemd: Started Open-iSCSI.
Jul 29 17:37:13 localhost iscsid: iSCSI daemon with pid=607 started!
Jul 29 17:37:13 localhost iscsid: can't open InitiatorName configuration file /etc/iscsi/initiatorname.iscsi
Jul 29 17:37:13 localhost iscsid: Warning: InitiatorName file /etc/iscsi/initiatorname.iscsi does not exist or does not contain a properly formatted InitiatorName. If using software iscsi (iscsi_tcp or ib_iser) or partial offload (bnr...
Jul 29 17:37:13 localhost iscsid: can't open InitiatorAlias configuration file /etc/iscsi/initiatorname.iscsi
Jul 29 17:37:16 coreos systemd: Stopping Open-iSCSI...
Jul 29 17:37:16 coreos iscsid: iscsid shutting down.
Jul 29 17:37:16 coreos systemd: Stopped Open-iSCSI.
Generation of the missing file if it does not exist
This is still an issue that folks hit. Are there any updates?
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.