[action] [PR:11710] [TACACS] Fix TACACS accounting UT issue caused by auditd log rotate.#12823
Merged
mssonicbld merged 1 commit intosonic-net:202305from May 11, 2024
Merged
Conversation
…#11710) Fix TACACS accounting UT issue caused by auditd log rotate ### Description of PR Fix TACACS accounting UT issue caused by auditd log rotate ##### Work item tracking - Microsoft ADO: 26710599 ### Type of change - [x] Bug fix - [ ] Testbed and Framework(new/improvement) - [] Test case(new/improvement) ## Approach #### What is the motivation for this PR? Fix TACACS accounting UT issue caused by auditd log rotate. There are 2 code issue: 1. when auditd log rotate, some auditd log will missing from output of 'service auditd status' 1. duthost.command() can only run 1 command, so can't handle piping output to grep #### How did you do it? show auditd log with 'sudo journalctl -u auditd --boot' and run command with duthost.shell() to support grep. #### How did you verify/test it? Pass all UT
5 tasks
Collaborator
Author
|
Original PR: #11710 |
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
… debs (sonic-net#12823) Ubuntu 22.04 leverages Zstandard compression to dpkg by default. Debian doesn't support it yet https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664 Fix sonic-net#12822 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
… debs (sonic-net#12823) Ubuntu 22.04 leverages Zstandard compression to dpkg by default. Debian doesn't support it yet https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664 Fix sonic-net#12822 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
… debs (sonic-net#12823) Ubuntu 22.04 leverages Zstandard compression to dpkg by default. Debian doesn't support it yet https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664 Fix sonic-net#12822 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix TACACS accounting UT issue caused by auditd log rotate
Description of PR
Fix TACACS accounting UT issue caused by auditd log rotate
Work item tracking
Type of change
Back port request
Approach
What is the motivation for this PR?
Fix TACACS accounting UT issue caused by auditd log rotate.
There are 2 code issue:
How did you do it?
show auditd log with 'sudo journalctl -u auditd --boot' and run command with duthost.shell() to support grep.
How did you verify/test it?
Pass all UT
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation