Skip to content

[release-4.13] overlay: disable iscsi.service by default#1301

Closed
openshift-cherrypick-robot wants to merge 1 commit intoopenshift:release-4.13from
openshift-cherrypick-robot:cherry-pick-1294-to-release-4.13
Closed

[release-4.13] overlay: disable iscsi.service by default#1301
openshift-cherrypick-robot wants to merge 1 commit intoopenshift:release-4.13from
openshift-cherrypick-robot:cherry-pick-1294-to-release-4.13

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #1294

/assign mkowalski

`iscsi.service` has `Before=remote-fs-pre.target` *and*
`After=network-online.target`. This forces `remote-fs-pre.target`
to block on `network-online.target` and hence in OCP, on
`ovs-configuration.service` (which has `Before=network-online.target`).

So this transitively makes `systemd-user-sessions.service` block on
`network-online.target`.

This was an issue in Fedora as well and was discussed in a devel
thread[[1]]. `iscsi.service` was subsequently reworked[[2]][[3]] so that
it was only activated if iSCSI was actually used by the system.

On RHEL 8, `iscsi.service` and co. were directly enabled by RPM
scriptlets rather than using presets. In RHCOS, we explicitly make
presets canonical[[4]] so we shipped with `iscsi.service` disabled by
default. On RHEL 9, the units were fixed to use presets[[5]]. This is
why we started seeing this issue after moving to RHEL 9.

So all we need in theory is to have the Fedora patch backported to RHEL
9. However, since we don't really need the functionality from
`iscsi.service` by default in RHCOS, we can fast-track its
(re-)disablement and not wait for the `iscsi-starter.service` workaround.

Note that `iscsi.service` is only used to bring up iSCSI sessions
marked for autostart in `/var/lib/iscsi/nodes` and is separate from
`iscsid.service`, which is what actually manages the iSCSI connections.
In OpenShift, we rely on the latter only (e.g. configured iSCSI PVCs
are done by the kubelet directly calling out to `iscsiadm`). It's
also separate from iSCSI devices that use host bus adapters, which are
transparent to RHCOS/OCP.

Fixes: https://issues.redhat.com/browse/OCPBUGS-11124

[1]: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/HACVEJ3FMOIM2TOENOVH5CPOUNR7NCMS
[2]: https://src.fedoraproject.org/rpms/iscsi-initiator-utils/c/1e689cd0c6667eca838c85975a1b7a070209e5ad
[3]: https://src.fedoraproject.org/rpms/fedora-release/pull-request/246
[4]: https://github.com/coreos/fedora-coreos-config/blob/1553518214088a89d6a2360a6fcdddbd3915628a/manifests/ignition-and-ostree.yaml#L35-L44
[5]: https://bugzilla.redhat.com/show_bug.cgi?id=1930458
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 30, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openshift-cherrypick-robot
Once this PR has been reviewed and has the lgtm label, please assign c4rt0 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@travier
Copy link
Copy Markdown
Member

travier commented May 30, 2023

Should we pull #1298 in as well?

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 30, 2023

@openshift-cherrypick-robot: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/rhcos-92-build-test-qemu 41d7986 link true /test rhcos-92-build-test-qemu

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@travier
Copy link
Copy Markdown
Member

travier commented Jun 1, 2023

/close
Replaced by #1302

@openshift-ci openshift-ci Bot closed this Jun 1, 2023
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 1, 2023

@travier: Closed this PR.

Details

In response to this:

/close
Replaced by #1302

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants