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

Fix enabld/disable rsyslog rate limitation. #3279

Merged

Conversation

bingwang-ms
Copy link
Collaborator

Signed-off-by: bingwang [email protected]

Description of PR

Summary:
This PR is to fix test failure of test_disable_rsyslog_rate_limit and test_recover_rsyslog_rate_limit in pretest and posttest.
The state of feature may be always_enabled or always_disabled. Therefore, we have to update the logic to check if a feature is enabled.

admin@str-msn4600c-acs-02:~$ show feature status
Feature     State            AutoRestart     SystemState    UpdateTime           ContainerId    Version           SetOwner    CurrentOwner    RemoteState
----------  ---------------  --------------  -------------  -------------------  -------------  ----------------  ----------  --------------  -------------
acms        enabled          enabled         up             2021-04-06 00:23:35  acms                             local       local           none
bgp         enabled          enabled         up             2021-04-06 00:23:35  bgp                              local       local           none
database    always_enabled   always_enabled                                                                       local
dhcp_relay  enabled          enabled         up             2021-04-06 00:24:26  dhcp_relay     20201231.beta.16  kube        local
lldp        enabled          enabled         up             2021-04-06 00:24:26  lldp           20201231.beta.16  kube        local
mux         always_disabled  enabled                                                                              local
pmon        enabled          enabled         up             2021-04-06 00:24:21  pmon           20201231.beta.16  kube        local
radv        enabled          enabled         up             2021-04-06 00:24:23  radv           20201231.beta.16  kube        local
restapi     enabled          enabled         up             2021-04-06 00:23:35  restapi                          local       local           none
snmp        enabled          enabled         up             2021-04-06 00:26:51  snmp           20201231.beta.16  kube        local
swss        enabled          enabled         up             2021-04-06 00:23:37  swss                             local       local           none
syncd       enabled          enabled         up             2021-04-06 00:24:20  syncd                            local       local           none
teamd       enabled          enabled         up             2021-04-06 00:23:38  teamd                            local       local           none
telemetry   enabled          enabled         up             2021-04-06 00:26:55  telemetry      20201231.beta.16  kube        local

Type of change

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

Approach

What is the motivation for this PR?

This PR is to fix test failure of test_disable_rsyslog_rate_limit and test_recover_rsyslog_rate_limit in pretest and posttest.

How did you do it?

Update the logic to check if a feature is enabled.

How did you verify/test it?

Verified on MSN4600c, T0 testbed.

Any platform specific information?

No.

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

Documentation

@bingwang-ms bingwang-ms requested a review from a team as a code owner April 6, 2021 01:50
@bingwang-ms bingwang-ms merged commit 18dce2d into sonic-net:master Apr 6, 2021
saravanansv pushed a commit to saravanansv/sonic-mgmt that referenced this pull request May 6, 2021
This PR is to fix test failure of test_disable_rsyslog_rate_limit and test_recover_rsyslog_rate_limit in pretest and posttest.
The state of feature may be always_enabled or always_disabled. Therefore, we have to update the logic to check if a feature is enabled.

Signed-off-by: bingwang <[email protected]>
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
This PR is to fix test failure of test_disable_rsyslog_rate_limit and test_recover_rsyslog_rate_limit in pretest and posttest.
The state of feature may be always_enabled or always_disabled. Therefore, we have to update the logic to check if a feature is enabled.

Signed-off-by: bingwang <[email protected]>
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.

2 participants