-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSAP-1428: read only root filesystem #1099
PSAP-1428: read only root filesystem #1099
Conversation
@jmencak: This pull request references PSAP-1428 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.17.0" version, but no target version was set. In response to this: 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 openshift-eng/jira-lifecycle-plugin repository. |
This looks like CI issues |
e6b28ee
to
6893a25
Compare
@jmencak: This pull request references PSAP-1428 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.17.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
@jmencak: This pull request references PSAP-1428 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.17.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
6893a25
to
080d1e2
Compare
080d1e2
to
a72f8f8
Compare
eec1555
to
f11e3eb
Compare
Finally figured out why the PAO tests are failing! The |
f11e3eb
to
4c56c41
Compare
4c56c41
to
256e012
Compare
256e012
to
67b1be5
Compare
@jmencak: This pull request references PSAP-1428 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.17.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
I think this will break https://github.com/openshift/must-gather/blob/master/collection-scripts/gather_ppc#L56 and we need to find a path to keep it working. |
On the other hand.. maybe not, we use custom container spec with volume mounts in must gather. |
67b1be5
to
76c3005
Compare
@jmencak: This pull request references PSAP-1428 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.18.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/retest |
76c3005
to
76f0f9c
Compare
Seems like infra issues to me |
76f0f9c
to
4d04a58
Compare
@jmencak: This pull request references PSAP-1428 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.18.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
Keeping this still WiP as we need to evaluate the impact of this on the installer rendering manifests. |
4d04a58
to
6af14fd
Compare
@jmencak: This pull request references PSAP-1428 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.18.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
In line with the "Principle of least privilege", add readOnlyRootFilesystem to the NTO operand's container securityContext. Key changes: * NTO's operand daemonset sets the readOnlyRootFilesystem container securityContext. * Use memory-backed emptyDir for /etc/tuned. * /tmp uses memory-backed emptyDir now to allow the operand's TuneD daemon writing temporary files when using profiles such as the cpu-partitioning profile. * TuneD container's home directory is now /run/ocp-tuned with a link to host's ocp-tuned persistent directory: persist -> /host/var/lib/ocp-tuned * Make /var/lib/tuned directory persistent on the host by: /var/lib/tuned -> /host/var/lib/tuned The persistent directory is populated by files such as ksm-masked coming from cpu-partitioning profile. * Change the ocp-tuned-one-shot systemd service to mount the hosts's persistent host /var/lib/{ocp-,}tuned directories to /host/var/lib/{ocp-,}tuned to simplify the operand code.
6af14fd
to
224fb45
Compare
Removing WiP. I've successfully tested that this functionality no longer breaks installer rendering manifests. I've verified that both by locally testing the render functionality by running This PR is ready for review. |
Forgot about this one. Let me test this. |
I believe this still works @MarSik . /hold cancel Collected data from a SNO install
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jmencak, MarSik The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
@jmencak: all tests passed! Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] Distgit: cluster-node-tuning-operator |
PR openshift#1099 broke upstream and OKD builds as it added a dependency on rsync. quay.io/centos/centos:stream9 image does not ship rsync by default. Once we can use the new golang's recursive copy (CopyFS) functionality in go 1.23 (golang/go#62484), use it and remove the dependency on rsync.
PR #1099 broke upstream and OKD builds as it added a dependency on rsync. quay.io/centos/centos:stream9 image does not ship rsync by default. Once we can use the new golang's recursive copy (CopyFS) functionality in go 1.23 (golang/go#62484), use it and remove the dependency on rsync. Co-authored-by: Jiri Mencak <[email protected]>
In line with the "Principle of least privilege", add
readOnlyRootFilesystem to the NTO operand's container securityContext.
Key changes:
securityContext.
daemon writing temporary files when using profiles such as the
cpu-partitioning profile.
host's ocp-tuned persistent directory:
persist -> /host/var/lib/ocp-tuned
/var/lib/tuned -> /host/var/lib/tuned
The persistent directory is populated by files such as ksm-masked coming
from cpu-partitioning profile.
persistent host /var/lib/{ocp-,}tuned directories to
/host/var/lib/{ocp-,}tuned to simplify the operand code.