Skip to content

bgp_gr_helper Test suite Execution Fails in Latest MSFT Sonic Testbed #3511

@DhinakaranDayalan

Description

@DhinakaranDayalan

Description

Issue:

I was trying to run the bgp_gr_helper test suite form the MSFT Test bed Suite.
bgp_gr_helper.yml

Steps to reproduce the issue:
When I was executing the script the test case failed at the Following Location.

# When RIBD up and send bgp open message it will set F bit to 1. Which means that during restart
# all routes were preserved in FIB. When DUT receives open message with F bit set to 1 it also
# should preserve all routes (no route update should happens).
- name: Force stop RIBD to simulate GR.
  shell: "killall -9 ribd; sleep 0.5; ifconfig et1 down"
  delegate_to: "{{ vm_ip }}"

When I executed with the detailed verbose I see the script is trying to login into the DUT with the User=root
But the lab config file is using login=admin

TASK [test : Force stop RIBD to simulate GR.] **********************************
task path: /var/azure/sonic-mgmt/ansible/roles/test/tasks/bgp_gr_helper.yml:49
Wednesday 25 September 2019 17:18:48 +0000 (0:00:00.997) 0:01:25.666 ***
<10.28.XX.XX> ESTABLISH SSH CONNECTION FOR USER: root
<10.28.XX.XX> SSH: ansible.cfg set ssh_args: (-o)(ControlMaster=auto)(-o)(ControlPersist=120s)(-o)(UserKnownHostsFile=/dev/null)
<10.28.XX.XX> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<120.228.XX.XX> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=root)
<120.228.XX.XX> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=30)
<120.228.XX.XX> SSH: PlayContext set ssh_common_args: ()
<120.228.XX.XX> SSH: PlayContext set ssh_extra_args: ()
<120.228.XX.XX> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/var/azure/.ansible/cp/ansible-ssh-%h-%p-%r)
<120.228.XX.XX> SSH: EXEC sshpass -d15 ssh -C -vvv -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=30 -o ControlPath=/var/azure/.ansible/cp/ansible-ssh-%h-%p-%r 120.228.XX.XX 'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python'
fatal: [et6448m-M0]: UNREACHABLE! => {"changed": false, "msg": "ERROR! SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}

Describe the results you received:
Test Execution Failed

Describe the results you expected:
Test Execution to Pass

Additional information you deem important (e.g. issue happens only occasionally):

**Sonic Management GIT Version**

commit a3f24588b4785263c588211aa88baed228a01509
Author: Stephen Sun [email protected]
Date: Sat Sep 21 00:47:42 2019 +0800

[tests/platform/test_reboot.py] add testcases for reboot cause (#1079)


(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions