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

systemvm: remove config in /etc/pam.d/systemd-user to fix user@0.service #8048

Merged

Conversation

weizhouapache
Copy link
Member

Description

the service user@0.service fails in system vms and virtual routers

This PR removes a change to fix memory leak of SSH connections in the systemvm templates with old linux kernel.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

the service `user@0.service` fails in system vms and virtual routers

This PR removes a change to fix memory leak of SSH connections in the systemvm templates with old linux kernel.
@weizhouapache
Copy link
Member Author

image

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7250

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #8048 (29cddc7) into 4.18 (3d8cc63) will decrease coverage by 0.01%.
Report is 3 commits behind head on 4.18.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               4.18    #8048      +/-   ##
============================================
- Coverage     13.07%   13.06%   -0.01%     
+ Complexity     9107     9106       -1     
============================================
  Files          2720     2720              
  Lines        257513   257513              
  Branches      40151    40151              
============================================
- Hits          33658    33649       -9     
- Misses       219624   219634      +10     
+ Partials       4231     4230       -1     

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

looks good, the original bug for which this was introduced is fixed. I see no reference to any problems, so it should be good. Not sure if we can test anything other than the SVMs running fine.

@shwstppr
Copy link
Contributor

@weizhouapache this will require new systemvm template?

@weizhouapache
Copy link
Member Author

@weizhouapache this will require new systemvm template?

@shwstppr
I think so
the changes with init.sh and cloud-early-config require new systemvm template

Copy link
Member

@rohityadavcloud rohityadavcloud left a comment

Choose a reason for hiding this comment

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

LGTM - didn't test it but changes make sense, esp that the upstream systemd is fixed

@rohityadavcloud rohityadavcloud merged commit e290ac5 into apache:4.18 Oct 10, 2023
24 of 26 checks passed
@rohityadavcloud
Copy link
Member

@weizhouapache @DaanHoogland @harikrishna-patnala I'm assuming this doesn't require a systemvmtemplate build (since changes are not in the cloud-early-config ?)

@rohityadavcloud rohityadavcloud added this to the 4.18.2.0 milestone Oct 10, 2023
@shwstppr
Copy link
Contributor

@rohityadavcloud This may require new systemvm template build. #8048 (comment)

@DaanHoogland DaanHoogland deleted the 4.18-fix-vr-user0.service branch October 10, 2023 10:27
@rohityadavcloud
Copy link
Member

Thanks @shwstppr @weizhouapache - that seems to be correct, but the other question is - is this fixing any issue? Is the failure of the service causing issues with systemvms and vrouters?

@weizhouapache
Copy link
Member Author

@rohityadavcloud
this fixes the service user@0.service in VRs and system vms.
but It seems other services in the vms are not impacted by the failure with user@0.service. this is a minor/trivial issue

@rohityadavcloud
Copy link
Member

Thanks for checking @weizhouapache cc @shwstppr - if necessary let's build systemvmtemplate for 4.19.0 ?

shwstppr pushed a commit to shapeblue/cloudstack that referenced this pull request Nov 3, 2023
…ice (apache#8048)

the service `user@0.service` fails in system vms and virtual routers

This PR removes a change to fix memory leak of SSH connections in the systemvm templates with old linux kernel.

(cherry picked from commit e290ac5)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants