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

[rsyslog] Fixing pretest and posttest checks for multiasic boards #3764

Merged
merged 1 commit into from Nov 5, 2021

Conversation

tcusto
Copy link
Contributor

@tcusto tcusto commented Jul 9, 2021

Description of PR

Summary:
Fixing pretest and posttest check rsyslog_rate_limit for multiasic boards

Type of change

  • [x ] Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

When disabling/enabling rsyslog rate limit, we are using 'show feature status'. The output of this command is being used for 'docker exec -i ....' to disable/enable rsyslog rate limit. For masic, the show feature status doesn't show the namespace features (like bgp0, bgp1, etc.), but only 'bgp'. Thus, when we go and do 'docker exec -i bgp' it fails.

How did you do it?

Fix is to use output of 'docker ps' instead of 'show feature status'

How did you verify/test it?

Verified on VoQ system.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@tcusto tcusto requested a review from a team as a code owner July 9, 2021 21:49
continue
cmds = []
cmds.append(cmd_disable_rate_limit.format(feature_name))
cmds.append(cmd_reload.format(feature_name))
cmds.append(cmd_disable_rate_limit.format(docker_name))
Copy link
Contributor

Choose a reason for hiding this comment

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

why it is not running ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be fixed by sonic-net/sonic-buildimage#8390, will update for when that is merged.

@rlhui rlhui requested a review from smaheshm September 8, 2021 18:47
@tcusto
Copy link
Contributor Author

tcusto commented Sep 14, 2021

Rebased to latest and adapted to new test_pretest.py, changed test_posttest.py to follow same approach.

Copy link
Contributor

@smaheshm smaheshm left a comment

Choose a reason for hiding this comment

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

Looks good. Wait for the builds to pass.

@wangxin
Copy link
Collaborator

wangxin commented Nov 2, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@smaheshm smaheshm merged commit fde029d into sonic-net:master Nov 5, 2021
harish-kalyanaraman pushed a commit to harish-kalyanaraman/sonic-mgmt that referenced this pull request Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants