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

[infra] Support syslog rate limit configuration #12490

Merged
merged 4 commits into from
Dec 20, 2022

Conversation

Junchao-Mellanox
Copy link
Collaborator

@Junchao-Mellanox Junchao-Mellanox commented Oct 25, 2022

HLD: sonic-net/SONiC#1049

Depends on #12489 (Build dependency)

Why I did it

Support syslog rate limit configuration feature

How I did it

  1. Remove unused rsyslog.conf from containers
  2. Modify docker startup script to generate rsyslog.conf from template files
  3. Add metadata/init data for syslog rate limit configuration

How to verify it

Manual test
New sonic-mgmt regression cases

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

@zhangyanzhao zhangyanzhao requested a review from mkeda November 7, 2022 03:51
Copy link
Collaborator

@mkeda mkeda left a comment

Choose a reason for hiding this comment

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

Thank you for your work to add this feature!

files/build_templates/init_cfg.json.j2 Show resolved Hide resolved
files/image_config/rsyslog/rsyslog-container.conf.j2 Outdated Show resolved Hide resolved
files/image_config/rsyslog/rsyslog.conf.j2 Show resolved Hide resolved
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saiarcot895
Copy link
Contributor

Please fix the build errors.

@Junchao-Mellanox
Copy link
Collaborator Author

It has a build dependency on #12489 , once that PR is merged, I will rebase this one.

@Junchao-Mellanox
Copy link
Collaborator Author

/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).

@Junchao-Mellanox
Copy link
Collaborator Author

/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).

@Junchao-Mellanox
Copy link
Collaborator Author

/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).

@Junchao-Mellanox
Copy link
Collaborator Author

Hi @saiarcot895, I fixed a typo in containercfgd.py (introduced by previous comment fix), would you please check it?

@Junchao-Mellanox
Copy link
Collaborator Author

/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).

@mssonicbld
Copy link
Collaborator

@Junchao-Mellanox PR conflicts with 202211 branch

@Junchao-Mellanox Junchao-Mellanox deleted the srl-infra branch January 29, 2023 01:09
Junchao-Mellanox added a commit to Junchao-Mellanox/sonic-buildimage that referenced this pull request Jan 29, 2023
- Why I did it
Support syslog rate limit configuration feature

- How I did it
Remove unused rsyslog.conf from containers
Modify docker startup script to generate rsyslog.conf from template files
Add metadata/init data for syslog rate limit configuration

- How to verify it
Manual test
New sonic-mgmt regression cases
Conflicts:
	platform/vs/docker-sonic-vs/Dockerfile.j2
@Junchao-Mellanox
Copy link
Collaborator Author

Created backport PR #13535

liat-grozovik pushed a commit that referenced this pull request Jan 30, 2023
Backport of #12490 into 202211

- Why I did it
Support syslog rate limit configuration feature

- How I did it
Remove unused rsyslog.conf from containers
Modify docker startup script to generate rsyslog.conf from template files
Add metadata/init data for syslog rate limit configuration

- How to verify it
Manual test
New sonic-mgmt regression cases
Junchao-Mellanox added a commit to Junchao-Mellanox/sonic-buildimage that referenced this pull request Dec 5, 2023
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.

7 participants