Skip to content

[PINS] Add APPL_STATE_DB and response path log rotation#9082

Merged
prsunny merged 1 commit intosonic-net:masterfrom
pins:pins/appl-state-db
Nov 24, 2021
Merged

[PINS] Add APPL_STATE_DB and response path log rotation#9082
prsunny merged 1 commit intosonic-net:masterfrom
pins:pins/appl-state-db

Conversation

@bocon13
Copy link
Copy Markdown
Contributor

@bocon13 bocon13 commented Oct 27, 2021

  • Add APPL_STATE_DB to database_config.json
  • Clear APPL_STATE_DB during SwSS container restarts
  • Add response path log file to logrotate config:
    responsepublisher.rec

Submission containing materials of a third party:
Copyright Google LLC; Licensed under Apache 2.0

Co-authored-by: Mike Attig mikeattig@google.com
Co-authored-by: Runming Wu runmingwu@google.com
Co-authored-by: Akarsh Gupta akarshgupta@google.com

Why I did it

Adds support for APPL_STATE_DB and response path required for PINS.

Described in this HLD:
https://github.com/pins/SONiC/blob/master/doc/pins/appl_state_db_response_path_hld.md

How to verify it

Any build should do the trick, then verify that the APPL_STATE_DB is empty after restarting swss.

Which release branch to backport (provide reason below if selected)

None

Description for the changelog

Add APPL_STATE_DB and response path log rotation

@bocon13
Copy link
Copy Markdown
Contributor Author

bocon13 commented Oct 27, 2021

cc: @mint570

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is APPL STATE DB record. We haven't look at multi asic support yet.

@bocon13
Copy link
Copy Markdown
Contributor Author

bocon13 commented Oct 27, 2021

@prsunny please take look

@donNewtonAlpha donNewtonAlpha force-pushed the pins/appl-state-db branch 2 times, most recently from 96cddbc to 3be0fd4 Compare October 30, 2021 03:17
@bocon13
Copy link
Copy Markdown
Contributor Author

bocon13 commented Nov 19, 2021

@prsunny the submodule change is removed from this PR and you can find it in #9322

@bocon13
Copy link
Copy Markdown
Contributor Author

bocon13 commented Nov 22, 2021

Rebased to latest master

prsunny
prsunny previously approved these changes Nov 23, 2021
@bocon13 bocon13 closed this Nov 23, 2021
@bocon13 bocon13 reopened this Nov 23, 2021
@bocon13
Copy link
Copy Markdown
Contributor Author

bocon13 commented Nov 23, 2021

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Copy Markdown
Contributor

prsunny commented Nov 23, 2021

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Copy Markdown
Contributor

prsunny commented Nov 23, 2021

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 9082 in repo Azure/sonic-buildimage

@bocon13
Copy link
Copy Markdown
Contributor Author

bocon13 commented Nov 23, 2021

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bocon13
Copy link
Copy Markdown
Contributor Author

bocon13 commented Nov 23, 2021

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

- Add APPL_STATE_DB to database_config.json
- Clear APPL_STATE_DB during SwSS container restarts
- Add response path log file to logrotate config:
    responsepublisher.rec

Submission containing materials of a third party:
    Copyright Google LLC; Licensed under Apache 2.0

Co-authored-by: Mike Attig <mikeattig@google.com>
Co-authored-by: Runming Wu <runmingwu@google.com>
Co-authored-by: Akarsh Gupta <akarshgupta@google.com>

Signed-off-by: Brian O'Connor <bocon@opennetworking.org>
@bocon13
Copy link
Copy Markdown
Contributor Author

bocon13 commented Nov 24, 2021

@prsunny, the checks are passing now. Can you reapprove and merge? Thanks!

@prsunny prsunny merged commit 002827f into sonic-net:master Nov 24, 2021
@mint570 mint570 deleted the pins/appl-state-db branch August 25, 2022 18:24
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.

4 participants