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

Remove cgroup files during deprovisioning #2790

Merged
merged 17 commits into from
Mar 24, 2023

Conversation

maddieford
Copy link
Contributor

@maddieford maddieford commented Mar 22, 2023

Remove the following cgroup files during deprovisioning:
azure-walinuxagent-logcollector.slice
walinuxagent.service.d/10-Slice.conf
walinuxagent.service.d/11-CPUAccounting.conf
walinuxagent.service.d/12-CPUQuota.conf
walinuxagent.service.d/13-MemoryAccounting.conf

Description

Issue #


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Merging #2790 (eca418c) into develop (3aebcdd) will increase coverage by 0.03%.
The diff coverage is 82.69%.

@@             Coverage Diff             @@
##           develop    #2790      +/-   ##
===========================================
+ Coverage    71.97%   72.01%   +0.03%     
===========================================
  Files          103      104       +1     
  Lines        15692    15870     +178     
  Branches      2486     2273     -213     
===========================================
+ Hits         11295    11429     +134     
- Misses        3881     3916      +35     
- Partials       516      525       +9     
Impacted Files Coverage Δ
azurelinuxagent/common/cgroup.py 87.92% <ø> (ø)
azurelinuxagent/common/future.py 36.36% <0.00%> (-0.85%) ⬇️
azurelinuxagent/ga/collect_logs.py 81.15% <0.00%> (-0.36%) ⬇️
azurelinuxagent/common/logcollector.py 88.35% <33.33%> (+0.04%) ⬆️
azurelinuxagent/common/osutil/factory.py 91.11% <33.33%> (-2.00%) ⬇️
azurelinuxagent/daemon/main.py 71.42% <33.33%> (+0.29%) ⬆️
azurelinuxagent/common/osutil/fedora.py 46.51% <46.51%> (ø)
azurelinuxagent/common/cgroupconfigurator.py 72.10% <58.73%> (-1.48%) ⬇️
azurelinuxagent/common/protocol/hostplugin.py 87.76% <75.00%> (+0.09%) ⬆️
azurelinuxagent/common/protocol/wire.py 77.37% <84.90%> (-1.18%) ⬇️
... and 19 more

... and 4 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

narrieta
narrieta previously approved these changes Mar 23, 2023
narrieta
narrieta previously approved these changes Mar 23, 2023
# Get slices to remove
unit_file_install_path = systemd.get_unit_file_install_path()
log_collector_slice_path = os.path.join(unit_file_install_path, LOGCOLLECTOR_SLICE)
azure_slice_path = os.path.join(unit_file_install_path, AZURE_SLICE)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't remove this file too because we are leaving azure.slice definition in service file in new agent versions. Otherwise, it may produce issues.

Copy link
Contributor

Choose a reason for hiding this comment

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

can you update PR description too for future reference?

@maddieford maddieford merged commit de7debd into Azure:develop Mar 24, 2023
@maddieford maddieford deleted the cgroup_deprovision branch April 7, 2023 19:34
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.

3 participants