Skip to content

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

Merged
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/3523
Oct 22, 2024
Merged

[action] [PR:3523] [spm]: Clean up timers auto generation logic. (#3523)#3582
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/3523

Conversation

@mssonicbld
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

Original PR: #3523

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