Skip to content

[spm]: Clean up timers auto generation logic#3523

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
nazariig:master-spm-timers-cleanup
Sep 15, 2024
Merged

[spm]: Clean up timers auto generation logic#3523
qiluo-msft merged 1 commit intosonic-net:masterfrom
nazariig:master-spm-timers-cleanup

Conversation

@nazariig
Copy link
Copy Markdown
Collaborator

@nazariig nazariig commented Sep 5, 2024

Signed-off-by: Nazarii Hnydyn [email protected]

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

Previous command output (if the output of a command-line utility has changed)

  • N/A

New command output (if the output of a command-line utility has changed)

  • N/A

A picture of a cute animal (not mandatory but encouraged)

      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``

@qiluo-msft qiluo-msft merged commit 5fc0ee6 into sonic-net:master Sep 15, 2024
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Oct 21, 2024
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

Cherry-pick PR to 202405: #3582

mssonicbld pushed a commit that referenced this pull request Oct 22, 2024
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
nmoray pushed a commit to nmoray/sonic-utilities that referenced this pull request Jun 25, 2025
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
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.

6 participants