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

[T2] [Chassis] Skip override_config_table_masic test for upstream line card #14713

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sanjair-git
Copy link
Contributor

@sanjair-git sanjair-git commented Sep 24, 2024

Description of PR

Summary:
Fixes # (issue)
This PR fixes 'test_override_config_table_masic-test_load_minigraph_with_golden_config' failure on upstream line card on T2 topo Chassis.

The above test fails with the following issue on DEVICE_METADATA table when 'config load_minigraph' is done with empty golden config input.

    host_current_config = get_running_config(duthost)
    for table in initial_host_config:
        if table in NON_USER_CONFIG_TABLES:
            continue
        pytest_assert(
            initial_host_config[table] == host_current_config[table],
           "empty input compare fail! {}".format(table)
        )
     E           Failed: empty input compare fail! DEVICE_METADATA

The test passes on downstream linecards.

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

  • 'test_override_config_table_masic-test_load_minigraph_with_golden_config' fails on upstream line card on T2 topo Chassis.
  • 'subtype' changes to 'DownstreamLC' from 'UpstreamLC' in DEVICE_METADATA for Upstream LC after load_minigraph with empty golden_config as input.

How did you do it?

  • Skip the empty input golden config check for upstream line card and do the other checks for upstream line card.
  • Perform the empty input test only if it is downstream line card and verify the golden config functionality.

How did you verify/test it?

Run 'test_override_config_table_masic-test_load_minigraph_with_golden_config' on T2 chassis and verify the test passes without any issues.

Any platform specific information?

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

Documentation

image

@sanjair-git sanjair-git force-pushed the override_config branch 2 times, most recently from 97f4275 to 13b0eef Compare October 1, 2024 14:16
judyjoseph
judyjoseph previously approved these changes Oct 1, 2024
for a_dut in duthosts.frontend_nodes:
minigraph_facts = a_dut.get_extended_minigraph_facts(tbinfo)
minigraph_neighbors = minigraph_facts['minigraph_neighbors']
if tbinfo["topo"]["type"] == "t0":
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be outside the loop ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @judyjoseph, Thanks for reviewing. Corrected the loop now.

Skip override_config_table_masic for upstream LC

Remove redundant changes

enum_upstream_dut_hostname fixture
@judyjoseph
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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