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

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

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

bocon13
Copy link
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 [email protected]
Co-authored-by: Runming Wu [email protected]
Co-authored-by: Akarsh Gupta [email protected]

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
Contributor Author

bocon13 commented Oct 27, 2021

cc: @mint570

@@ -32,6 +32,7 @@
/var/log/frr/zebra.log
/var/log/swss/sairedis*.rec
/var/log/swss/swss*.rec
/var/log/swss/responsepublisher.rec
Copy link
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
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
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
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
Contributor Author

bocon13 commented Nov 23, 2021

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Contributor

prsunny commented Nov 23, 2021

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Contributor

prsunny commented Nov 23, 2021

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link

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

@bocon13
Copy link
Contributor Author

bocon13 commented Nov 23, 2021

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bocon13
Copy link
Contributor Author

bocon13 commented Nov 23, 2021

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

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 <[email protected]>
Co-authored-by: Runming Wu <[email protected]>
Co-authored-by: Akarsh Gupta <[email protected]>

Signed-off-by: Brian O'Connor <[email protected]>
@bocon13
Copy link
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