Skip to content

Creds access fix for virtual testbed#2256

Merged
vaibhavhd merged 1 commit intosonic-net:masterfrom
vaibhavhd:vtb-creds-fix
Sep 22, 2020
Merged

Creds access fix for virtual testbed#2256
vaibhavhd merged 1 commit intosonic-net:masterfrom
vaibhavhd:vtb-creds-fix

Conversation

@vaibhavhd
Copy link
Copy Markdown
Contributor

Description of PR

Summary: Fix creds access error seen in virtual testbed tests
Fixes # (issue)

        # WA for virtual testbed which has no fanout
>       admin_user = creds['fanout_admin_user']
E       KeyError: 'fanout_admin_user'

Type of change

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

Approach

An unguarded access of fanout creds is done which fails for virtual testbed.

What is the motivation for this PR?

Fixing a regression issue on virtual testbed.

How did you do it?

Fix this by moving the creds access within of try-except block.

How did you verify/test it?

test_bgp_fact which earlier failed is now working fine on virtual testbed.

Any platform specific information?

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

Documentation

@vaibhavhd vaibhavhd requested review from a team and lolyu September 22, 2020 18:08
@vaibhavhd vaibhavhd self-assigned this Sep 22, 2020
@vaibhavhd vaibhavhd merged commit 5260736 into sonic-net:master Sep 22, 2020
@vaibhavhd vaibhavhd deleted the vtb-creds-fix branch September 25, 2020 16:20
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
… submodule head (sonic-net#12494)

utilities:
* 02eb899e 2022-07-12 | [config/load_mgmt_config] Support load IPv6 mgmt IP (sonic-net#2206) (sonic-net#2246) (sonic-net#2256) (HEAD -> 201811, github/201811) [Jing Kan]

platform-daemon:
* fc288cc 2022-05-05 | Mem leak caused by Xcvrd in Send-Q of REDIS-DB socket connection (sonic-net#260) (HEAD -> 201811, github/201811) [Prince George]

platform-common:
* edb062b 2022-02-09 | [sonic_sfp] Interpret sff 'int' element =0 as valid value (sonic-net#261) (HEAD -> 201811, github/201811) [Prince George]

kernel:
* 9d2d1a1 2022-02-11 | [201811] Increase log_buf_len size to 1M (HEAD -> 201811, github/201811) [Sujin Kang]
* b34a213 2022-02-10 | [201811] Increase log_buf_len size to 1M [Samuel Angebault]
* c4684cb 2022-02-11 | [201811] Apply kernel patches to fix emmc unreliability [Sujin Kang]
* df68771 2022-02-03 | [201811] Apply kernel patches to fix emmc unreliability [Samuel Angebault]
* f21cb06 2021-03-26 | [ci]: remove 201811 suffix (sonic-net#204) [lguohan]
* 5439b2a 2021-02-08 | [dni_dps460] Add attributes to retrieve PMBus status command codes (sonic-net#194) [Arun Saravanan Balachandran]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
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.

2 participants