Skip to content
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-10: Fix user systemd error printed to console and other minor RDP fixes #6004

Open
wants to merge 8 commits into
base: rhel-10
Choose a base branch
from

Conversation

jkonecny12
Copy link
Member

Anaconda is starting systemd --user for RDP session. This unfortunately, will result in message:

Failed to adjust memory pressure threshold, ignoring: Device or resource
busy

This message is printed directly to terminal and bypassing stdout or stderr.

Force this message to be logged to the journal instead of terminal.

Resolves: RHEL-67911

Backport of

This code is not used since migration to Wayland. We need another
solution for this feature.

(cherry picked from commit 37fa08b)

Related: RHEL-67911
The GRDServer class have checks in the __init__ method which starts to
complain about missing GRD in the system. That doesn't apply in Live
environment where we don't support GRD in the first place.

(cherry picked from commit fde3d1b)

Related: RHEL-67911
jkonecny12 and others added 6 commits November 18, 2024 12:06
(cherry picked from commit a267c32)

Related: RHEL-67911
Move the GRDServer class creation to the end of the `setup_display`
method. This class have checks for binaries in the `__init__` method
which is causing early failures. Also do not create the class if it is
not really used.

(cherry picked from commit ee3c0d4)

Related: RHEL-67911
Anaconda runs as an app on Live images and can hardly control remote access there.

(cherry picked from commit ff77c70)

Related: RHEL-67911
Previously it was vnc but we switched to RDP instead.

Related: RHEL-67911
The issue with the original code is in python behavior. Python on this
code:

"a" or "b"

will give you

"b"

instead of probably expected 'True' value. This is fix to avoid break
of the code in the future because this variable should keep boolean
value.

(cherry picked from commit 56590cd)

Related: RHEL-67911
Anaconda is starting systemd --user for RDP session. This unfortunately,
will result in message:

```
Failed to adjust memory pressure threshold, ignoring: Device or resource
busy
```

This message is printed directly to terminal and bypassing stdout or
stderr.

Force this message to be logged to the journal instead of terminal.

Suggested-by: Lukas Nykryn
(cherry picked from commit f47ca11)

Resolves: RHEL-67911
@jkonecny12
Copy link
Member Author

/kickstart-test --testtype smoke

@jkonecny12
Copy link
Member Author

/kickstart-test rdp_ui

@jkonecny12
Copy link
Member Author

/kickstart-test ui_rdp

@jkonecny12
Copy link
Member Author

Local testing done and works.

Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! :)

@jkonecny12 jkonecny12 added the ready to merge The PR can be merged. It should have all BZ flags required for releasing set (usually release+). label Nov 20, 2024
@jkonecny12
Copy link
Member Author

Please ignore the failed test. I made a typo in the test name so the result is not valid :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR can be merged. It should have all BZ flags required for releasing set (usually release+). rhel-10
Development

Successfully merging this pull request may close these issues.

3 participants