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

[action] [PR:3523] [spm]: Clean up timers auto generation logic. (#3523) #3582

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

mssonicbld
Copy link
Collaborator

Config Reload Enhancements PR sonic-net/SONiC#1203 does not completely remove TIMERs from SONiC Package Manager infra. This PR is intended to complete the original changes.

Systemd TIMERs infra was replaced by hostcfgd service management.
That was done to improve reliability of service management.

What I did

  • Removed redundant TIMERs infra

How I did it

  • Updated SPM auto generation logic

How to verify it

  1. Install application extension
spm install --from-tarball <app_ext_path>
  1. Make sure delayed flag is set
docker image inspect <app_ext_image> | jq '.[].Config.Labels["com.azure.sonic.manifest"]' | python -c 'import sys,ast; print(ast.literal_eval(sys.stdin.read()))' | jq .service.delayed
true
  1. Check no TIMERs were generated

Config Reload Enhancements PR sonic-net/SONiC#1203 does not completely remove TIMERs from SONiC Package Manager infra. This PR is intended to complete the original changes.

`Systemd` TIMERs infra was replaced by `hostcfgd` service management.
That was done to improve reliability of service management.

#### What I did
* Removed redundant TIMERs infra

#### How I did it
* Updated SPM auto generation logic

#### How to verify it
1. Install application extension
```bash
spm install --from-tarball <app_ext_path>
```
2. Make sure `delayed` flag is set
```bash
docker image inspect <app_ext_image> | jq '.[].Config.Labels["com.azure.sonic.manifest"]' | python -c 'import sys,ast; print(ast.literal_eval(sys.stdin.read()))' | jq .service.delayed
true
```
3. Check no TIMERs were generated
@mssonicbld
Copy link
Collaborator Author

Original PR: #3523

@mssonicbld mssonicbld merged commit 2d3ba69 into sonic-net:202405 Oct 22, 2024
7 checks passed
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.

2 participants