-
Notifications
You must be signed in to change notification settings - Fork 23
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
(RHEL-65343) backport https://github.com/systemd/systemd/issues/15654#issuecomment-623396457 to RHEL 8.6 #443
base: rhel-8.6.0
Are you sure you want to change the base?
Conversation
Commit validationTracker - RHEL-65343 The following commits meet all requirements
The following commits need an inspection
Tracker validationSuccess🟢 Tracker RHEL-65343 has set desired product: Pull Request validationFailed🔴 Review - Missing review from a member (1 required) Success🟡 CI - Waived Auto MergeFailed🔴 Pull Request has unsupported target branch Success🟢 Pull Request is not marked as draft and it's not blocked by |
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.
@tcornell-bus Please drop reference to old JIRA and Bugzilla in c1eab42 and
b4cc106 and reference the RHEL-65343
Please also add rhel-only: ci
to the c1eab42 commit message.
b4cc106
to
8ce2ec5
Compare
For the CIs a4e0b7a should get cherry-picked as well, to make (at least) GH actions happy. Also, please use |
Will do @mrc0mmand! Should I change "[tcornell: This has been cherry picked from downstream systemd-rhel8 |
Yes, please, it'll make them consistent with the rest of the backports. |
If the previous received buffer length is almost equal to the allocated buffer size, before this change the next read can only receive a couple of bytes (in the worst case only 1 byte), which is not efficient. (cherry picked from commit 034e971) (cherry picked from commit a0b5239) Related: RHEL-65343
Check: - There is only 3 messages logged with type stdout - Check all messages logged does not have new line: LINE_BREAK=eof - Check that the 3 messages are logged from a different PID - Check the 3 MESSAGE= content (cherry picked from commit d38b3b7) (cherry picked from commit afcfb65) Related: RHEL-65343
Temporarily point repos in C8S containers to the Vault (since C8S is EOL), until we figure out a _proper_ solution. rhel-only: ci (cherry picked from commit 3aae107) Related: RHEL-65343
Our (RHEL 8) touch_file() is not clever enough and does chmod() on a symlink, which fails with EOPNOTSUPP on newer kernels. This is not an issue on the RHEL 8 kernel, where doing chmod() on a symlink works (albeit only on tmpfs) but in GH Actions we run in a container, and with the underlying kernel doing chmod() on a symlink fails even on tmpfs: RHEL 8: ~# mount -t tmpfs tmpfs /tmp ~# (cd /tmp; ln -s symlink dangling; ln -s /etc/os-release symlink) ~# (cd /var/tmp; ln -s symlink dangling; ln -s /etc/os-release symlink) ~# gcc -o main main.c -D_GNU_SOURCE ~# ./main /tmp/dangling chmod(/proc/self/fd/3)=0 (0) ~# ./main /tmp/symlink chmod(/proc/self/fd/3)=0 (0) ~# ./main /var/tmp/dangling chmod(/proc/self/fd/3)=-1 (95) ~# ./main /var/tmp/symlink chmod(/proc/self/fd/3)=-1 (95) Newer kernel: ~# uname -r 6.7.4-200.fc39.x86_64 ~# ./main /tmp/dangling chmod(/proc/self/fd/3)=-1 (95) ~# ./main /tmp/symlink chmod(/proc/self/fd/3)=-1 (95) ~# ./main /var/tmp/dangling chmod(/proc/self/fd/3)=-1 (95) ~# ./main /var/tmp/symlink chmod(/proc/self/fd/3)=-1 (95) Backporting the necessary patches would be way too risky so late in the RHEL 8 cycle, so let's just skip the offending test when running in GH Actions. To do that we have to jump through a couple of hoops, since RHEL 8 systemd can't detect docker. Oh well. rhel-only: ci (cherry picked from commit a4e0b7a) Related: RHEL-65343
8ce2ec5
to
d64fc36
Compare
I don't think the CentOS CI fail is related to this PR (due to C8S EOL we run the tests on C9S, so we're probably missing some patch(es)). I'll check this manually on RHEL 8 and waive the CI afterwards if everything works fine. |
Yup, the tests pass locally on RHEL 8, so this is an unrelated issue. |
I have cherry-picked seven existing commits from the rhel-8.10 branch:
a0b5239
d8fabe7
cd85a65
538bd9b
e019afe
afcfb65
2f55aea
Replicating this pull request
Resolves: RHEL-65343