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

Unable to start vm using start-vms or start-topo-vms in testbed-cli.sh. Observing error "'VMTopology' object has no attribute 'host_ifaces'" #2498

Closed
mdasari-brcm opened this issue Nov 10, 2020 · 1 comment · Fixed by #2504

Comments

@mdasari-brcm
Copy link

Description

Hi,

I am trying to start the VMS using the command "./testbed-cli.sh start-vms server_1 password.txt" as given in the following link:
https://github.com/Azure/sonic-mgmt/blob/master/ansible/doc/README.testbed.Setup.md
But, I am seeing an error.

TASK [vm_set : Create VMs network] **********************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:39
Tuesday 10 November 2020 12:33:56 +0000 (0:00:00.037) 0:00:22.388 ******
Using module file /var/tauser/sonic-mgmt/ansible/roles/vm_set/library/vm_topology.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=dsxlewytnkalmqcaacuqonyuwabtnbyc] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-dsxlewytnkalmqcaacuqonyuwabtnbyc ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (1, '\n{"msg": "'VMTopology' object has no attribute 'host_ifaces'", "failed": true, "exception": "WARNING: The below traceback may not be related to the actual failure.\n File \"/tmp/ansible_vm_topology_payload_SQeM5C/main.py\", line 937, in main\n net.create_bridges()\n File \"/tmp/ansible_vm_topology_payload_SQeM5C/main.py\", line 238, in create_bridges\n self.create_ovs_bridge(fp_br_name, self.fp_mtu)\n File \"/tmp/ansible_vm_topology_payload_SQeM5C/main.py\", line 243, in create_ovs_bridge\n if bridge_name not in self.host_ifaces:\n", "invocation": {"module_args": {"max_fp_num": 4, "fp_mtu": 9216, "ptf_bp_ip_addr": null, "ptf_bp_ipv6_addr": null, "duts_mgmt_port": null, "vm_names": ["VM0100", "VM0101", "VM0102", "VM0103", "VM0104", "VM0105", "VM0106", "VM0107", "VM0108", "VM0109", "VM0110", "VM0111", "VM0112", "VM0113", "VM0114", "VM0115", "VM0116", "VM0117", "VM0118", "VM0119", "VM0120", "VM0121", "VM0122", "VM0123", "VM0124", "VM0125", "VM0126", "VM0127", "VM0128", "VM0129", "VM0130", "VM0131"], "cmd": "create", "vm_base": null, "topo": null, "ptf_mgmt_ip_gw": null, "vm_set_name": null, "duts_fp_ports": null, "ptf_mgmt_ip_addr": null, "mgmt_bridge": null, "duts_name": null, "ptf_mgmt_ipv6_addr": null}}}\n', '/usr/local/lib/python2.7/dist-packages/cryptography/init.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n CryptographyDeprecationWarning,\n')
<10.250.0.245> Failed to connect to the host via ssh: /usr/local/lib/python2.7/dist-packages/cryptography/init.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
CryptographyDeprecationWarning,
The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File "/tmp/ansible_vm_topology_payload_SQeM5C/main.py", line 937, in main
net.create_bridges()
File "/tmp/ansible_vm_topology_payload_SQeM5C/main.py", line 238, in create_bridges
self.create_ovs_bridge(fp_br_name, self.fp_mtu)
File "/tmp/ansible_vm_topology_payload_SQeM5C/main.py", line 243, in create_ovs_bridge
if bridge_name not in self.host_ifaces:

fatal: [STR-ACS-SERV-01]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"cmd": "create",
"duts_fp_ports": null,
"duts_mgmt_port": null,
"duts_name": null,
"fp_mtu": 9216,
"max_fp_num": 4,
"mgmt_bridge": null,
"ptf_bp_ip_addr": null,
"ptf_bp_ipv6_addr": null,
"ptf_mgmt_ip_addr": null,
"ptf_mgmt_ip_gw": null,
"ptf_mgmt_ipv6_addr": null,
"topo": null,
"vm_base": null,
"vm_names": [
"VM0100",
"VM0101",
"VM0102",
"VM0103",
"VM0104",
"VM0105",
"VM0106",
"VM0107",
"VM0108",
"VM0109",
"VM0110",
"VM0111",
"VM0112",
"VM0113",
"VM0114",
"VM0115",
"VM0116",
"VM0117",
"VM0118",
"VM0119",
"VM0120",
"VM0121",
"VM0122",
"VM0123",
"VM0124",
"VM0125",
"VM0126",
"VM0127",
"VM0128",
"VM0129",
"VM0130",
"VM0131"
],
"vm_set_name": null
}
},
"msg": "'VMTopology' object has no attribute 'host_ifaces'"
}

It seems that there was an issue(variable not setting properly) while setting the variable "self.host_ifaces" in "ansible/roles/vm_set/library/vm_topology.py", during the "create" command call. During the call to the below functions "def create_bridges" and "def create_ovs_bridge", the variable "self.host_ifaces" didn't got set. I guess this is the reason, we are seeing this issue.

Steps to reproduce the issue:

  1. ./testbed-cli.sh start-vms server_1 password.txt

Describe the results you received:
VM's didn't came up.

Describe the results you expected:
VM's should be up.

Additional information you deem important:

Complete Output with -vvv option:

tauser@testing-inst:~/sonic-mgmt/ansible$ 
tauser@testing-inst:~/sonic-mgmt/ansible$ 
tauser@testing-inst:~/sonic-mgmt/ansible$ ./testbed-cli.sh start-vms server_1 password.txt -vvv
Starting VMs on server 'server_1'
/usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
  from cryptography.exceptions import InvalidSignature
ansible-playbook 2.8.12
  config file = /var/tauser/sonic-mgmt/ansible/ansible.cfg
  configured module search path = [u'/var/tauser/sonic-mgmt/ansible/library', u'/var/tauser/sonic-mgmt/ansible/library/ixia']
  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
  executable location = /usr/local/bin/ansible-playbook
  python version = 2.7.17 (default, Sep 30 2020, 13:38:04) [GCC 7.5.0]
Using /var/tauser/sonic-mgmt/ansible/ansible.cfg as config file
host_list declined parsing /var/tauser/sonic-mgmt/ansible/veos as it did not pass it's verify_file() method
script declined parsing /var/tauser/sonic-mgmt/ansible/veos as it did not pass it's verify_file() method
auto declined parsing /var/tauser/sonic-mgmt/ansible/veos as it did not pass it's verify_file() method
Parsed /var/tauser/sonic-mgmt/ansible/veos inventory source with yaml plugin
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'

PLAYBOOK: testbed_start_VMs.yml *************************************************************************************************************************************************************************************************************
1 plays in testbed_start_VMs.yml
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'

PLAY [servers:&vm_host] *********************************************************************************************************************************************************************************************************************
META: ran handlers
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : get host distribution] *******************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:18
Tuesday 10 November 2020  12:33:34 +0000 (0:00:00.182)       0:00:00.182 ****** 
<STR-ACS-SERV-01> Attempting python interpreter discovery
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<10.250.0.245> (0, 'PLATFORM\nLinux\nFOUND\n/usr/bin/python\n/usr/bin/python3.6\n/usr/bin/python3.5\n/usr/bin/python2.7\n/usr/bin/python3\n/usr/bin/python\nENDFOUND\n', '')
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '{"osrelease_content": "NAME=\\"Ubuntu\\"\\nVERSION=\\"18.04.5 LTS (Bionic Beaver)\\"\\nID=ubuntu\\nID_LIKE=debian\\nPRETTY_NAME=\\"Ubuntu 18.04.5 LTS\\"\\nVERSION_ID=\\"18.04\\"\\nHOME_URL=\\"https://www.ubuntu.com/\\"\\nSUPPORT_URL=\\"https://help.ubuntu.com/\\"\\nBUG_REPORT_URL=\\"https://bugs.launchpad.net/ubuntu/\\"\\nPRIVACY_POLICY_URL=\\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\\"\\nVERSION_CODENAME=bionic\\nUBUNTU_CODENAME=bionic\\n", "platform_dist_result": ["Ubuntu", "18.04", "bionic"]}\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"changed": true, "end": "2020-11-10 18:03:34.711356", "stdout": "Ubuntu", "cmd": "grep ^NAME /etc/os-release | awk -F \'=\' \'{print $2}\' | tr -d \'\\"\'", "rc": 0, "start": "2020-11-10 18:03:34.704468", "stderr": "", "delta": "0:00:00.006888", "invocation": {"module_args": {"creates": null, "executable": null, "_uses_shell": true, "strip_empty_ends": true, "_raw_params": "grep ^NAME /etc/os-release | awk -F \'=\' \'{print $2}\' | tr -d \'\\"\'", "removes": null, "argv": null, "warn": true, "chdir": null, "stdin_add_newline": true, "stdin": null}}}\n', '')
ok: [STR-ACS-SERV-01] => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    }, 
    "changed": false, 
    "cmd": "grep ^NAME /etc/os-release | awk -F '=' '{print $2}' | tr -d '\"'", 
    "delta": "0:00:00.006888", 
    "end": "2020-11-10 18:03:34.711356", 
    "invocation": {
        "module_args": {
            "_raw_params": "grep ^NAME /etc/os-release | awk -F '=' '{print $2}' | tr -d '\"'", 
            "_uses_shell": true, 
            "argv": null, 
            "chdir": null, 
            "creates": null, 
            "executable": null, 
            "removes": null, 
            "stdin": null, 
            "stdin_add_newline": true, 
            "strip_empty_ends": true, 
            "warn": true
        }
    }, 
    "rc": 0, 
    "start": "2020-11-10 18:03:34.704468", 
    "stderr": "", 
    "stderr_lines": [], 
    "stdout": "Ubuntu", 
    "stdout_lines": [
        "Ubuntu"
    ]
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : get host distribution version] ***********************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:23
Tuesday 10 November 2020  12:33:34 +0000 (0:00:00.387)       0:00:00.570 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"changed": true, "end": "2020-11-10 18:03:34.888197", "stdout": "18.04", "cmd": "grep ^VERSION_ID /etc/os-release | awk -F \'=\' \'{print $2}\' | tr -d \'\\"\'", "rc": 0, "start": "2020-11-10 18:03:34.880845", "stderr": "", "delta": "0:00:00.007352", "invocation": {"module_args": {"creates": null, "executable": null, "_uses_shell": true, "strip_empty_ends": true, "_raw_params": "grep ^VERSION_ID /etc/os-release | awk -F \'=\' \'{print $2}\' | tr -d \'\\"\'", "removes": null, "argv": null, "warn": true, "chdir": null, "stdin_add_newline": true, "stdin": null}}}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "cmd": "grep ^VERSION_ID /etc/os-release | awk -F '=' '{print $2}' | tr -d '\"'", 
    "delta": "0:00:00.007352", 
    "end": "2020-11-10 18:03:34.888197", 
    "invocation": {
        "module_args": {
            "_raw_params": "grep ^VERSION_ID /etc/os-release | awk -F '=' '{print $2}' | tr -d '\"'", 
            "_uses_shell": true, 
            "argv": null, 
            "chdir": null, 
            "creates": null, 
            "executable": null, 
            "removes": null, 
            "stdin": null, 
            "stdin_add_newline": true, 
            "strip_empty_ends": true, 
            "warn": true
        }
    }, 
    "rc": 0, 
    "start": "2020-11-10 18:03:34.880845", 
    "stderr": "", 
    "stderr_lines": [], 
    "stdout": "18.04", 
    "stdout_lines": [
        "18.04"
    ]
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : get host kernel version] *****************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:28
Tuesday 10 November 2020  12:33:34 +0000 (0:00:00.167)       0:00:00.737 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"changed": true, "end": "2020-11-10 18:03:35.055533", "stdout": "4.15.0-122-generic", "cmd": "uname -r", "rc": 0, "start": "2020-11-10 18:03:35.051542", "stderr": "", "delta": "0:00:00.003991", "invocation": {"module_args": {"creates": null, "executable": null, "_uses_shell": true, "strip_empty_ends": true, "_raw_params": "uname -r", "removes": null, "argv": null, "warn": true, "chdir": null, "stdin_add_newline": true, "stdin": null}}}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "cmd": "uname -r", 
    "delta": "0:00:00.003991", 
    "end": "2020-11-10 18:03:35.055533", 
    "invocation": {
        "module_args": {
            "_raw_params": "uname -r", 
            "_uses_shell": true, 
            "argv": null, 
            "chdir": null, 
            "creates": null, 
            "executable": null, 
            "removes": null, 
            "stdin": null, 
            "stdin_add_newline": true, 
            "strip_empty_ends": true, 
            "warn": true
        }
    }, 
    "rc": 0, 
    "start": "2020-11-10 18:03:35.051542", 
    "stderr": "", 
    "stderr_lines": [], 
    "stdout": "4.15.0-122-generic", 
    "stdout_lines": [
        "4.15.0-122-generic"
    ]
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Check if kernel upgrade needed] **********************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:33
Tuesday 10 November 2020  12:33:35 +0000 (0:00:00.170)       0:00:00.907 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : debug] ***********************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:43
Tuesday 10 November 2020  12:33:35 +0000 (0:00:00.034)       0:00:00.942 ****** 
skipping: [STR-ACS-SERV-01] => {}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Upgrade kernel package] ******************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:45
Tuesday 10 November 2020  12:33:35 +0000 (0:00:00.032)       0:00:00.974 ****** 
skipping: [STR-ACS-SERV-01] => (item=[])  => {
    "ansible_loop_var": "item", 
    "changed": false, 
    "item": [], 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Prompt for rebooting] ********************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:52
Tuesday 10 November 2020  12:33:35 +0000 (0:00:00.043)       0:00:01.018 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Install necessary packages] **************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:57
Tuesday 10 November 2020  12:33:35 +0000 (0:00:00.027)       0:00:01.046 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=boxwtzymdqwbehsegpphwsnvzcavayxh] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-boxwtzymdqwbehsegpphwsnvzcavayxh ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"dpkg_options": "force-confdef,force-confold", "autoremove": false, "force": false, "force_apt_get": false, "policy_rc_d": null, "package": ["ifupdown", "qemu", "openvswitch-switch", "net-tools", "bridge-utils", "util-linux", "iproute2", "vlan", "apt-transport-https", "ca-certificates", "curl", "software-properties-common", "libvirt-clients"], "autoclean": false, "install_recommends": null, "name": ["ifupdown", "qemu", "openvswitch-switch", "net-tools", "bridge-utils", "util-linux", "iproute2", "vlan", "apt-transport-https", "ca-certificates", "curl", "software-properties-common", "libvirt-clients"], "purge": false, "allow_unauthenticated": false, "state": "present", "upgrade": null, "update_cache": true, "default_release": null, "only_upgrade": false, "deb": null, "cache_valid_time": 86400}}, "changed": false, "cache_update_time": 1605011560, "cache_updated": false}\n', '/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n  CryptographyDeprecationWarning,\n')
ok: [STR-ACS-SERV-01] => (item=[u'ifupdown', u'qemu', u'openvswitch-switch', u'net-tools', u'bridge-utils', u'util-linux', u'iproute2', u'vlan', u'apt-transport-https', u'ca-certificates', u'curl', u'software-properties-common', u'libvirt-clients']) => {
    "ansible_loop_var": "item", 
    "cache_update_time": 1605011560, 
    "cache_updated": false, 
    "changed": false, 
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false, 
            "autoclean": false, 
            "autoremove": false, 
            "cache_valid_time": 86400, 
            "deb": null, 
            "default_release": null, 
            "dpkg_options": "force-confdef,force-confold", 
            "force": false, 
            "force_apt_get": false, 
            "install_recommends": null, 
            "name": [
                "ifupdown", 
                "qemu", 
                "openvswitch-switch", 
                "net-tools", 
                "bridge-utils", 
                "util-linux", 
                "iproute2", 
                "vlan", 
                "apt-transport-https", 
                "ca-certificates", 
                "curl", 
                "software-properties-common", 
                "libvirt-clients"
            ], 
            "only_upgrade": false, 
            "package": [
                "ifupdown", 
                "qemu", 
                "openvswitch-switch", 
                "net-tools", 
                "bridge-utils", 
                "util-linux", 
                "iproute2", 
                "vlan", 
                "apt-transport-https", 
                "ca-certificates", 
                "curl", 
                "software-properties-common", 
                "libvirt-clients"
            ], 
            "policy_rc_d": null, 
            "purge": false, 
            "state": "present", 
            "update_cache": true, 
            "upgrade": null
        }
    }, 
    "item": [
        "ifupdown", 
        "qemu", 
        "openvswitch-switch", 
        "net-tools", 
        "bridge-utils", 
        "util-linux", 
        "iproute2", 
        "vlan", 
        "apt-transport-https", 
        "ca-certificates", 
        "curl", 
        "software-properties-common", 
        "libvirt-clients"
    ]
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : apt] *************************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:75
Tuesday 10 November 2020  12:33:36 +0000 (0:00:01.350)       0:00:02.396 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=ejzituyyxxgjdzxhtjgcpfefjjgvyrxa] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ejzituyyxxgjdzxhtjgcpfefjjgvyrxa ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"dpkg_options": "force-confdef,force-confold", "autoremove": false, "force": false, "force_apt_get": false, "policy_rc_d": null, "package": ["python", "libvirt-bin", "python-libvirt", "python-pip"], "autoclean": false, "install_recommends": null, "purge": false, "allow_unauthenticated": false, "state": "present", "upgrade": null, "update_cache": null, "pkg": ["python", "libvirt-bin", "python-libvirt", "python-pip"], "default_release": null, "only_upgrade": false, "deb": null, "cache_valid_time": 0}}, "changed": false, "cache_update_time": 1605011560, "cache_updated": false}\n', '/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n  CryptographyDeprecationWarning,\n')
ok: [STR-ACS-SERV-01] => {
    "cache_update_time": 1605011560, 
    "cache_updated": false, 
    "changed": false, 
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false, 
            "autoclean": false, 
            "autoremove": false, 
            "cache_valid_time": 0, 
            "deb": null, 
            "default_release": null, 
            "dpkg_options": "force-confdef,force-confold", 
            "force": false, 
            "force_apt_get": false, 
            "install_recommends": null, 
            "only_upgrade": false, 
            "package": [
                "python", 
                "libvirt-bin", 
                "python-libvirt", 
                "python-pip"
            ], 
            "pkg": [
                "python", 
                "libvirt-bin", 
                "python-libvirt", 
                "python-pip"
            ], 
            "policy_rc_d": null, 
            "purge": false, 
            "state": "present", 
            "update_cache": null, 
            "upgrade": null
        }
    }
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : apt] *************************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:85
Tuesday 10 November 2020  12:33:37 +0000 (0:00:01.163)       0:00:03.559 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : include_tasks] ***************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:95
Tuesday 10 November 2020  12:33:37 +0000 (0:00:00.034)       0:00:03.593 ****** 
Read vars_file 'vars/azure_storage.yml'
included: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml for STR-ACS-SERV-01
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Add docker official GPG key] *************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:1
Tuesday 10 November 2020  12:33:37 +0000 (0:00:00.056)       0:00:03.650 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt_key.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=rbkekhfvwaitvwuhovvamckzbjrypror] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-rbkekhfvwaitvwuhovvamckzbjrypror ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"file": null, "keyserver": null, "url": "https://download.docker.com/linux/ubuntu/gpg", "validate_certs": true, "keyring": null, "state": "present", "key": null, "data": null, "id": null}}, "changed": false}\n', '/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n  CryptographyDeprecationWarning,\n')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "data": null, 
            "file": null, 
            "id": null, 
            "key": null, 
            "keyring": null, 
            "keyserver": null, 
            "state": "present", 
            "url": "https://download.docker.com/linux/ubuntu/gpg", 
            "validate_certs": true
        }
    }
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Add docker repository for 16.04] *********************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:6
Tuesday 10 November 2020  12:33:41 +0000 (0:00:03.975)       0:00:07.625 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Add docker repository for 17.04] *********************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:13
Tuesday 10 November 2020  12:33:41 +0000 (0:00:00.034)       0:00:07.660 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Add docker repository for 18.04] *********************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:20
Tuesday 10 November 2020  12:33:41 +0000 (0:00:00.038)       0:00:07.698 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt_repository.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=reyumilicduoyxvayurtzwxuijqbrkwg] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-reyumilicduoyxvayurtzwxuijqbrkwg ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"repo": "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable", "diff": {}, "state": "present", "changed": false, "invocation": {"module_args": {"install_python_apt": true, "filename": null, "repo": "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable", "state": "present", "update_cache": true, "mode": null, "codename": null, "validate_certs": true}}}\n', '/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n  CryptographyDeprecationWarning,\n')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "diff": {}, 
    "invocation": {
        "module_args": {
            "codename": null, 
            "filename": null, 
            "install_python_apt": true, 
            "mode": null, 
            "repo": "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable", 
            "state": "present", 
            "update_cache": true, 
            "validate_certs": true
        }
    }, 
    "repo": "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable", 
    "state": "present"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Add docker repository for 20.04] *********************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:27
Tuesday 10 November 2020  12:33:42 +0000 (0:00:00.601)       0:00:08.300 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Install docker-ce] ***********************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:34
Tuesday 10 November 2020  12:33:42 +0000 (0:00:00.033)       0:00:08.334 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=hhwmzgdoltfpsikphdvvlokinipcnosk] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-hhwmzgdoltfpsikphdvvlokinipcnosk ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"dpkg_options": "force-confdef,force-confold", "autoremove": false, "force": false, "force_apt_get": false, "policy_rc_d": null, "package": ["docker-ce"], "autoclean": false, "install_recommends": null, "purge": false, "allow_unauthenticated": false, "state": "present", "upgrade": null, "update_cache": true, "pkg": "docker-ce", "default_release": null, "only_upgrade": false, "deb": null, "cache_valid_time": 0}}, "changed": false, "cache_update_time": 1605011624, "cache_updated": true}\n', '/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n  CryptographyDeprecationWarning,\n')
ok: [STR-ACS-SERV-01] => {
    "cache_update_time": 1605011624, 
    "cache_updated": true, 
    "changed": false, 
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false, 
            "autoclean": false, 
            "autoremove": false, 
            "cache_valid_time": 0, 
            "deb": null, 
            "default_release": null, 
            "dpkg_options": "force-confdef,force-confold", 
            "force": false, 
            "force_apt_get": false, 
            "install_recommends": null, 
            "only_upgrade": false, 
            "package": [
                "docker-ce"
            ], 
            "pkg": "docker-ce", 
            "policy_rc_d": null, 
            "purge": false, 
            "state": "present", 
            "update_cache": true, 
            "upgrade": null
        }
    }
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Get default pip_executable] **************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:39
Tuesday 10 November 2020  12:33:45 +0000 (0:00:02.880)       0:00:11.215 ****** 
ok: [STR-ACS-SERV-01] => {
    "ansible_facts": {
        "pip_executable": "pip"
    }, 
    "changed": false
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Get default pip_executable] **************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:44
Tuesday 10 November 2020  12:33:45 +0000 (0:00:00.040)       0:00:11.255 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : remove old python packages] **************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:49
Tuesday 10 November 2020  12:33:45 +0000 (0:00:00.036)       0:00:11.292 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/language/pip.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=okzqpyzcwfptvcdbjaohjyatgyxrwqsq] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-okzqpyzcwfptvcdbjaohjyatgyxrwqsq ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"virtualenv": null, "changed": false, "requirements": null, "name": ["docker-py"], "stdout": "", "cmd": ["/usr/bin/pip", "uninstall", "-y", "docker-py"], "state": "absent", "version": null, "stderr": "/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\\n  CryptographyDeprecationWarning,\\nCannot uninstall requirement docker-py, not installed\\n", "invocation": {"module_args": {"virtualenv": null, "extra_args": null, "virtualenv_command": "virtualenv", "chdir": null, "requirements": null, "name": ["docker-py"], "virtualenv_python": null, "umask": null, "editable": false, "executable": "pip", "use_mirrors": true, "virtualenv_site_packages": false, "state": "absent", "version": null}}}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "cmd": [
        "/usr/bin/pip", 
        "uninstall", 
        "-y", 
        "docker-py"
    ], 
    "invocation": {
        "module_args": {
            "chdir": null, 
            "editable": false, 
            "executable": "pip", 
            "extra_args": null, 
            "name": [
                "docker-py"
            ], 
            "requirements": null, 
            "state": "absent", 
            "umask": null, 
            "use_mirrors": true, 
            "version": null, 
            "virtualenv": null, 
            "virtualenv_command": "virtualenv", 
            "virtualenv_python": null, 
            "virtualenv_site_packages": false
        }
    }, 
    "name": [
        "docker-py"
    ], 
    "requirements": null, 
    "state": "absent", 
    "stderr": "/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n  CryptographyDeprecationWarning,\nCannot uninstall requirement docker-py, not installed\n", 
    "stderr_lines": [
        "/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.", 
        "  CryptographyDeprecationWarning,", 
        "Cannot uninstall requirement docker-py, not installed"
    ], 
    "stdout": "", 
    "stdout_lines": [], 
    "version": null, 
    "virtualenv": null
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Install python packages] *****************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:54
Tuesday 10 November 2020  12:33:46 +0000 (0:00:01.228)       0:00:12.521 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/language/pip.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=fvkvshkgxszadpufrxhrvmzpdtjrhwii] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-fvkvshkgxszadpufrxhrvmzpdtjrhwii ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"virtualenv": null, "changed": true, "requirements": null, "name": ["docker"], "stdout": "Collecting docker==4.1.0\\n  Using cached https://files.pythonhosted.org/packages/cc/ca/699d4754a932787ef353a157ada74efd1ceb6d1fc0bfb7989ae1e7b33111/docker-4.1.0-py2.py3-none-any.whl\\nCollecting ipaddress>=1.0.16; python_version < \\"3.3\\" (from docker==4.1.0)\\n  Using cached https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl\\nCollecting requests!=2.18.0,>=2.14.2 (from docker==4.1.0)\\n  Using cached https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl\\nCollecting websocket-client>=0.32.0 (from docker==4.1.0)\\n  Using cached https://files.pythonhosted.org/packages/4c/5f/f61b420143ed1c8dc69f9eaec5ff1ac36109d52c80de49d66e0c36c3dfdf/websocket_client-0.57.0-py2.py3-none-any.whl\\nCollecting six>=1.4.0 (from docker==4.1.0)\\n  Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl\\nCollecting backports.ssl-match-hostname>=3.5; python_version < \\"3.5\\" (from docker==4.1.0)\\nCollecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)\\n  Using cached https://files.pythonhosted.org/packages/56/aa/4ef5aa67a9a62505db124a5cb5262332d1d4153462eb8fd89c9fa41e5d92/urllib3-1.25.11-py2.py3-none-any.whl\\nCollecting chardet<4,>=3.0.2 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)\\n  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl\\nCollecting certifi>=2017.4.17 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)\\n  Using cached https://files.pythonhosted.org/packages/c1/6f/3d85f0850962279a7e4c622695d7b3171e95ac65308a57d3b29738b27149/certifi-2020.11.8-py2.py3-none-any.whl\\nCollecting idna<3,>=2.5 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)\\n  Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl\\nInstalling collected packages: ipaddress, urllib3, chardet, certifi, idna, requests, six, websocket-client, backports.ssl-match-hostname, docker\\n  Found existing installation: ipaddress 1.0.23\\n    Uninstalling ipaddress-1.0.23:\\n      Successfully uninstalled ipaddress-1.0.23\\n  Found existing installation: urllib3 1.25.11\\n    Uninstalling urllib3-1.25.11:\\n      Successfully uninstalled urllib3-1.25.11\\n  Found existing installation: chardet 3.0.4\\n    Uninstalling chardet-3.0.4:\\n      Not removing or modifying (outside of prefix):\\n      /usr/bin/chardetect\\n      Successfully uninstalled chardet-3.0.4\\n  Found existing installation: certifi 2020.11.8\\n    Uninstalling certifi-2020.11.8:\\n      Successfully uninstalled certifi-2020.11.8\\n  Found existing installation: idna 2.10\\n    Uninstalling idna-2.10:\\n      Successfully uninstalled idna-2.10\\n  Found existing installation: requests 2.24.0\\n    Uninstalling requests-2.24.0:\\n      Successfully uninstalled requests-2.24.0\\n  Found existing installation: six 1.15.0\\n    Uninstalling six-1.15.0:\\n      Successfully uninstalled six-1.15.0\\n  Found existing installation: websocket-client 0.57.0\\n    Uninstalling websocket-client-0.57.0:\\n      Successfully uninstalled websocket-client-0.57.0\\n  Found existing installation: backports.ssl-match-hostname 3.7.0.1\\n    Uninstalling backports.ssl-match-hostname-3.7.0.1:\\n      Successfully uninstalled backports.ssl-match-hostname-3.7.0.1\\n  Found existing installation: docker 4.1.0\\n    Uninstalling docker-4.1.0:\\n      Successfully uninstalled docker-4.1.0\\nSuccessfully installed backports.ssl-match-hostname-3.7.0.1 certifi-2020.11.8 chardet-3.0.4 docker-4.1.0 idna-2.10 ipaddress-1.0.23 requests-2.24.0 six-1.15.0 urllib3-1.25.11 websocket-client-0.57.0\\n", "cmd": ["/usr/bin/pip", "install", "-U", "--force-reinstall", "docker==4.1.0"], "state": "forcereinstall", "version": "4.1.0", "stderr": "/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\\n  CryptographyDeprecationWarning,\\n", "invocation": {"module_args": {"virtualenv": null, "extra_args": null, "virtualenv_command": "virtualenv", "chdir": null, "requirements": null, "name": ["docker"], "virtualenv_python": null, "umask": null, "editable": false, "executable": "pip", "use_mirrors": true, "virtualenv_site_packages": false, "state": "forcereinstall", "version": "4.1.0"}}}\n', '')
changed: [STR-ACS-SERV-01] => {
    "changed": true, 
    "cmd": [
        "/usr/bin/pip", 
        "install", 
        "-U", 
        "--force-reinstall", 
        "docker==4.1.0"
    ], 
    "invocation": {
        "module_args": {
            "chdir": null, 
            "editable": false, 
            "executable": "pip", 
            "extra_args": null, 
            "name": [
                "docker"
            ], 
            "requirements": null, 
            "state": "forcereinstall", 
            "umask": null, 
            "use_mirrors": true, 
            "version": "4.1.0", 
            "virtualenv": null, 
            "virtualenv_command": "virtualenv", 
            "virtualenv_python": null, 
            "virtualenv_site_packages": false
        }
    }, 
    "name": [
        "docker"
    ], 
    "requirements": null, 
    "state": "forcereinstall", 
    "stderr": "/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n  CryptographyDeprecationWarning,\n", 
    "stderr_lines": [
        "/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.", 
        "  CryptographyDeprecationWarning,"
    ], 
    "stdout": "Collecting docker==4.1.0\n  Using cached https://files.pythonhosted.org/packages/cc/ca/699d4754a932787ef353a157ada74efd1ceb6d1fc0bfb7989ae1e7b33111/docker-4.1.0-py2.py3-none-any.whl\nCollecting ipaddress>=1.0.16; python_version < \"3.3\" (from docker==4.1.0)\n  Using cached https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl\nCollecting requests!=2.18.0,>=2.14.2 (from docker==4.1.0)\n  Using cached https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl\nCollecting websocket-client>=0.32.0 (from docker==4.1.0)\n  Using cached https://files.pythonhosted.org/packages/4c/5f/f61b420143ed1c8dc69f9eaec5ff1ac36109d52c80de49d66e0c36c3dfdf/websocket_client-0.57.0-py2.py3-none-any.whl\nCollecting six>=1.4.0 (from docker==4.1.0)\n  Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl\nCollecting backports.ssl-match-hostname>=3.5; python_version < \"3.5\" (from docker==4.1.0)\nCollecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)\n  Using cached https://files.pythonhosted.org/packages/56/aa/4ef5aa67a9a62505db124a5cb5262332d1d4153462eb8fd89c9fa41e5d92/urllib3-1.25.11-py2.py3-none-any.whl\nCollecting chardet<4,>=3.0.2 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)\n  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl\nCollecting certifi>=2017.4.17 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)\n  Using cached https://files.pythonhosted.org/packages/c1/6f/3d85f0850962279a7e4c622695d7b3171e95ac65308a57d3b29738b27149/certifi-2020.11.8-py2.py3-none-any.whl\nCollecting idna<3,>=2.5 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)\n  Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl\nInstalling collected packages: ipaddress, urllib3, chardet, certifi, idna, requests, six, websocket-client, backports.ssl-match-hostname, docker\n  Found existing installation: ipaddress 1.0.23\n    Uninstalling ipaddress-1.0.23:\n      Successfully uninstalled ipaddress-1.0.23\n  Found existing installation: urllib3 1.25.11\n    Uninstalling urllib3-1.25.11:\n      Successfully uninstalled urllib3-1.25.11\n  Found existing installation: chardet 3.0.4\n    Uninstalling chardet-3.0.4:\n      Not removing or modifying (outside of prefix):\n      /usr/bin/chardetect\n      Successfully uninstalled chardet-3.0.4\n  Found existing installation: certifi 2020.11.8\n    Uninstalling certifi-2020.11.8:\n      Successfully uninstalled certifi-2020.11.8\n  Found existing installation: idna 2.10\n    Uninstalling idna-2.10:\n      Successfully uninstalled idna-2.10\n  Found existing installation: requests 2.24.0\n    Uninstalling requests-2.24.0:\n      Successfully uninstalled requests-2.24.0\n  Found existing installation: six 1.15.0\n    Uninstalling six-1.15.0:\n      Successfully uninstalled six-1.15.0\n  Found existing installation: websocket-client 0.57.0\n    Uninstalling websocket-client-0.57.0:\n      Successfully uninstalled websocket-client-0.57.0\n  Found existing installation: backports.ssl-match-hostname 3.7.0.1\n    Uninstalling backports.ssl-match-hostname-3.7.0.1:\n      Successfully uninstalled backports.ssl-match-hostname-3.7.0.1\n  Found existing installation: docker 4.1.0\n    Uninstalling docker-4.1.0:\n      Successfully uninstalled docker-4.1.0\nSuccessfully installed backports.ssl-match-hostname-3.7.0.1 certifi-2020.11.8 chardet-3.0.4 docker-4.1.0 idna-2.10 ipaddress-1.0.23 requests-2.24.0 six-1.15.0 urllib3-1.25.11 websocket-client-0.57.0\n", 
    "stdout_lines": [
        "Collecting docker==4.1.0", 
        "  Using cached https://files.pythonhosted.org/packages/cc/ca/699d4754a932787ef353a157ada74efd1ceb6d1fc0bfb7989ae1e7b33111/docker-4.1.0-py2.py3-none-any.whl", 
        "Collecting ipaddress>=1.0.16; python_version < \"3.3\" (from docker==4.1.0)", 
        "  Using cached https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl", 
        "Collecting requests!=2.18.0,>=2.14.2 (from docker==4.1.0)", 
        "  Using cached https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl", 
        "Collecting websocket-client>=0.32.0 (from docker==4.1.0)", 
        "  Using cached https://files.pythonhosted.org/packages/4c/5f/f61b420143ed1c8dc69f9eaec5ff1ac36109d52c80de49d66e0c36c3dfdf/websocket_client-0.57.0-py2.py3-none-any.whl", 
        "Collecting six>=1.4.0 (from docker==4.1.0)", 
        "  Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl", 
        "Collecting backports.ssl-match-hostname>=3.5; python_version < \"3.5\" (from docker==4.1.0)", 
        "Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)", 
        "  Using cached https://files.pythonhosted.org/packages/56/aa/4ef5aa67a9a62505db124a5cb5262332d1d4153462eb8fd89c9fa41e5d92/urllib3-1.25.11-py2.py3-none-any.whl", 
        "Collecting chardet<4,>=3.0.2 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)", 
        "  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl", 
        "Collecting certifi>=2017.4.17 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)", 
        "  Using cached https://files.pythonhosted.org/packages/c1/6f/3d85f0850962279a7e4c622695d7b3171e95ac65308a57d3b29738b27149/certifi-2020.11.8-py2.py3-none-any.whl", 
        "Collecting idna<3,>=2.5 (from requests!=2.18.0,>=2.14.2->docker==4.1.0)", 
        "  Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl", 
        "Installing collected packages: ipaddress, urllib3, chardet, certifi, idna, requests, six, websocket-client, backports.ssl-match-hostname, docker", 
        "  Found existing installation: ipaddress 1.0.23", 
        "    Uninstalling ipaddress-1.0.23:", 
        "      Successfully uninstalled ipaddress-1.0.23", 
        "  Found existing installation: urllib3 1.25.11", 
        "    Uninstalling urllib3-1.25.11:", 
        "      Successfully uninstalled urllib3-1.25.11", 
        "  Found existing installation: chardet 3.0.4", 
        "    Uninstalling chardet-3.0.4:", 
        "      Not removing or modifying (outside of prefix):", 
        "      /usr/bin/chardetect", 
        "      Successfully uninstalled chardet-3.0.4", 
        "  Found existing installation: certifi 2020.11.8", 
        "    Uninstalling certifi-2020.11.8:", 
        "      Successfully uninstalled certifi-2020.11.8", 
        "  Found existing installation: idna 2.10", 
        "    Uninstalling idna-2.10:", 
        "      Successfully uninstalled idna-2.10", 
        "  Found existing installation: requests 2.24.0", 
        "    Uninstalling requests-2.24.0:", 
        "      Successfully uninstalled requests-2.24.0", 
        "  Found existing installation: six 1.15.0", 
        "    Uninstalling six-1.15.0:", 
        "      Successfully uninstalled six-1.15.0", 
        "  Found existing installation: websocket-client 0.57.0", 
        "    Uninstalling websocket-client-0.57.0:", 
        "      Successfully uninstalled websocket-client-0.57.0", 
        "  Found existing installation: backports.ssl-match-hostname 3.7.0.1", 
        "    Uninstalling backports.ssl-match-hostname-3.7.0.1:", 
        "      Successfully uninstalled backports.ssl-match-hostname-3.7.0.1", 
        "  Found existing installation: docker 4.1.0", 
        "    Uninstalling docker-4.1.0:", 
        "      Successfully uninstalled docker-4.1.0", 
        "Successfully installed backports.ssl-match-hostname-3.7.0.1 certifi-2020.11.8 chardet-3.0.4 docker-4.1.0 idna-2.10 ipaddress-1.0.23 requests-2.24.0 six-1.15.0 urllib3-1.25.11 websocket-client-0.57.0"
    ], 
    "version": "4.1.0", 
    "virtualenv": null
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Ensure tauser in docker,sudo group] ******************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:97
Tuesday 10 November 2020  12:33:48 +0000 (0:00:02.257)       0:00:14.778 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/user.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=yxushutgvkfffrjsdadwltrzbjpbzbjk] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-yxushutgvkfffrjsdadwltrzbjpbzbjk ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"comment": "tauser,,,", "shell": "/bin/bash", "group": 1000, "name": "tauser", "changed": false, "state": "present", "groups": "docker,sudo", "invocation": {"module_args": {"comment": null, "ssh_key_bits": 0, "update_password": "always", "non_unique": false, "force": false, "ssh_key_type": "rsa", "create_home": true, "password_lock": null, "ssh_key_passphrase": null, "uid": null, "home": null, "append": true, "skeleton": null, "ssh_key_comment": "ansible-generated on ta-sonic-ptf", "group": null, "system": false, "state": "present", "role": null, "hidden": null, "local": null, "authorization": null, "profile": null, "shell": null, "expires": null, "ssh_key_file": null, "groups": ["docker", "sudo"], "move_home": false, "password": null, "name": "tauser", "seuser": null, "remove": false, "login_class": null, "generate_ssh_key": null}}, "home": "/home/tauser", "move_home": false, "append": true, "uid": 1000}\n', '')
ok: [STR-ACS-SERV-01] => {
    "append": true, 
    "changed": false, 
    "comment": "tauser,,,", 
    "group": 1000, 
    "groups": "docker,sudo", 
    "home": "/home/tauser", 
    "invocation": {
        "module_args": {
            "append": true, 
            "authorization": null, 
            "comment": null, 
            "create_home": true, 
            "expires": null, 
            "force": false, 
            "generate_ssh_key": null, 
            "group": null, 
            "groups": [
                "docker", 
                "sudo"
            ], 
            "hidden": null, 
            "home": null, 
            "local": null, 
            "login_class": null, 
            "move_home": false, 
            "name": "tauser", 
            "non_unique": false, 
            "password": null, 
            "password_lock": null, 
            "profile": null, 
            "remove": false, 
            "role": null, 
            "seuser": null, 
            "shell": null, 
            "skeleton": null, 
            "ssh_key_bits": 0, 
            "ssh_key_comment": "ansible-generated on ta-sonic-ptf", 
            "ssh_key_file": null, 
            "ssh_key_passphrase": null, 
            "ssh_key_type": "rsa", 
            "state": "present", 
            "system": false, 
            "uid": null, 
            "update_password": "always"
        }
    }, 
    "move_home": false, 
    "name": "tauser", 
    "shell": "/bin/bash", 
    "state": "present", 
    "uid": 1000
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Ensure tauser in libvirt group] **********************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:104
Tuesday 10 November 2020  12:33:49 +0000 (0:00:00.445)       0:00:15.224 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Install br_netfilter kernel module] ******************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:112
Tuesday 10 November 2020  12:33:49 +0000 (0:00:00.036)       0:00:15.260 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/modprobe.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=hjbkpazoqznmijcjbhgfaxzpyhijetfp] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-hjbkpazoqznmijcjbhgfaxzpyhijetfp ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"state": "present", "params": "", "name": "br_netfilter"}}, "state": "present", "changed": false, "params": "", "name": "br_netfilter"}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "name": "br_netfilter", 
            "params": "", 
            "state": "present"
        }
    }, 
    "name": "br_netfilter", 
    "params": "", 
    "state": "present"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Set sysctl bridge parameters for testbed] ************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:116
Tuesday 10 November 2020  12:33:49 +0000 (0:00:00.337)       0:00:15.598 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/sysctl.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=wexodkvlnqodsjegfzshzzatedbrriqx] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-wexodkvlnqodsjegfzshzzatedbrriqx ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"name": "net.bridge.bridge-nf-call-arptables", "ignoreerrors": false, "value": "0", "reload": true, "state": "present", "sysctl_set": true, "sysctl_file": "/etc/sysctl.conf"}}, "changed": false}\n', '')
ok: [STR-ACS-SERV-01] => (item=net.bridge.bridge-nf-call-arptables) => {
    "ansible_loop_var": "item", 
    "changed": false, 
    "invocation": {
        "module_args": {
            "ignoreerrors": false, 
            "name": "net.bridge.bridge-nf-call-arptables", 
            "reload": true, 
            "state": "present", 
            "sysctl_file": "/etc/sysctl.conf", 
            "sysctl_set": true, 
            "value": "0"
        }
    }, 
    "item": "net.bridge.bridge-nf-call-arptables"
}
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/sysctl.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=marouyapbhdrulnkgxljyhszydncrkcp] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-marouyapbhdrulnkgxljyhszydncrkcp ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"name": "net.bridge.bridge-nf-call-ip6tables", "ignoreerrors": false, "value": "0", "reload": true, "state": "present", "sysctl_set": true, "sysctl_file": "/etc/sysctl.conf"}}, "changed": false}\n', '')
ok: [STR-ACS-SERV-01] => (item=net.bridge.bridge-nf-call-ip6tables) => {
    "ansible_loop_var": "item", 
    "changed": false, 
    "invocation": {
        "module_args": {
            "ignoreerrors": false, 
            "name": "net.bridge.bridge-nf-call-ip6tables", 
            "reload": true, 
            "state": "present", 
            "sysctl_file": "/etc/sysctl.conf", 
            "sysctl_set": true, 
            "value": "0"
        }
    }, 
    "item": "net.bridge.bridge-nf-call-ip6tables"
}
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/sysctl.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=jpgcyqzdqflpkfimxbvtcbkyisthfodo] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-jpgcyqzdqflpkfimxbvtcbkyisthfodo ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"name": "net.bridge.bridge-nf-call-iptables", "ignoreerrors": false, "value": "0", "reload": true, "state": "present", "sysctl_set": true, "sysctl_file": "/etc/sysctl.conf"}}, "changed": false}\n', '')
ok: [STR-ACS-SERV-01] => (item=net.bridge.bridge-nf-call-iptables) => {
    "ansible_loop_var": "item", 
    "changed": false, 
    "invocation": {
        "module_args": {
            "ignoreerrors": false, 
            "name": "net.bridge.bridge-nf-call-iptables", 
            "reload": true, 
            "state": "present", 
            "sysctl_file": "/etc/sysctl.conf", 
            "sysctl_set": true, 
            "value": "0"
        }
    }, 
    "item": "net.bridge.bridge-nf-call-iptables"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Set sysctl RCVBUF max parameter for testbed] *********************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:127
Tuesday 10 November 2020  12:33:50 +0000 (0:00:00.677)       0:00:16.276 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/sysctl.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=zqngupfkwopbozxhvubwtswrlnrzmfdb] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-zqngupfkwopbozxhvubwtswrlnrzmfdb ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"name": "net.core.rmem_max", "ignoreerrors": false, "value": "509430500", "reload": true, "state": "present", "sysctl_set": true, "sysctl_file": "/etc/sysctl.conf"}}, "changed": false}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "ignoreerrors": false, 
            "name": "net.core.rmem_max", 
            "reload": true, 
            "state": "present", 
            "sysctl_file": "/etc/sysctl.conf", 
            "sysctl_set": true, 
            "value": "509430500"
        }
    }
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Set sysctl RCVBUF default parameter for testbed] *****************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:134
Tuesday 10 November 2020  12:33:50 +0000 (0:00:00.194)       0:00:16.470 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/sysctl.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=sftbhjlrzgzcbxzxzyemvufjwchzridv] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-sftbhjlrzgzcbxzxzyemvufjwchzridv ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"name": "net.core.rmem_default", "ignoreerrors": false, "value": "31457280", "reload": true, "state": "present", "sysctl_set": true, "sysctl_file": "/etc/sysctl.conf"}}, "changed": false}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "ignoreerrors": false, 
            "name": "net.core.rmem_default", 
            "reload": true, 
            "state": "present", 
            "sysctl_file": "/etc/sysctl.conf", 
            "sysctl_set": true, 
            "value": "31457280"
        }
    }
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Setup external front port] ***************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:141
Tuesday 10 November 2020  12:33:50 +0000 (0:00:00.185)       0:00:16.655 ****** 
Read vars_file 'vars/azure_storage.yml'
included: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/external_port.yml for STR-ACS-SERV-01
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : make sure /etc/network/interfaces.d exists] **********************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/external_port.yml:1
Tuesday 10 November 2020  12:33:50 +0000 (0:00:00.053)       0:00:16.708 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=bpwfxziifdivtxvzbwhldtzrlvilqilo] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bpwfxziifdivtxvzbwhldtzrlvilqilo ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"group": "root", "uid": 0, "changed": false, "owner": "root", "state": "directory", "gid": 0, "mode": "0755", "path": "/etc/network/interfaces.d", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "/etc/network/interfaces.d", "owner": null, "follow": true, "group": null, "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "selevel": null, "setype": null, "access_time": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": null, "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "/etc/network/interfaces.d"}, "before": {"path": "/etc/network/interfaces.d"}}, "size": 4096}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "diff": {
        "after": {
            "path": "/etc/network/interfaces.d"
        }, 
        "before": {
            "path": "/etc/network/interfaces.d"
        }
    }, 
    "gid": 0, 
    "group": "root", 
    "invocation": {
        "module_args": {
            "_diff_peek": null, 
            "_original_basename": null, 
            "access_time": null, 
            "access_time_format": "%Y%m%d%H%M.%S", 
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "delimiter": null, 
            "directory_mode": null, 
            "follow": true, 
            "force": false, 
            "group": null, 
            "mode": null, 
            "modification_time": null, 
            "modification_time_format": "%Y%m%d%H%M.%S", 
            "owner": null, 
            "path": "/etc/network/interfaces.d", 
            "recurse": false, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": null, 
            "state": "directory", 
            "unsafe_writes": null
        }
    }, 
    "mode": "0755", 
    "owner": "root", 
    "path": "/etc/network/interfaces.d", 
    "size": 4096, 
    "state": "directory", 
    "uid": 0
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : setup external interface as trunk port] **************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/external_port.yml:7
Tuesday 10 November 2020  12:33:51 +0000 (0:00:00.359)       0:00:17.068 ****** 
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp `"&& mkdir $HOME/.ansible/tmp/ansible-tmp-1605011631.28-1257-271658399072220 && echo ansible-tmp-1605011631.28-1257-271658399072220="` echo $HOME/.ansible/tmp/ansible-tmp-1605011631.28-1257-271658399072220 `" ) && sleep 0'"'"''
<10.250.0.245> (0, 'ansible-tmp-1605011631.28-1257-271658399072220=/home/tauser/.ansible/tmp/ansible-tmp-1605011631.28-1257-271658399072220\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/stat.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=mjhmxvjxhenxjovecglehfjpdaddqocc] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-mjhmxvjxhenxjovecglehfjpdaddqocc ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "/etc/network/interfaces.d/external_port", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "us-ascii", "uid": 0, "exists": true, "attr_flags": "e", "woth": false, "isreg": true, "device_type": 0, "mtime": 1549558693.3290973, "block_size": 4096, "inode": 8653237, "isgid": false, "size": 82, "executable": false, "isuid": false, "readable": true, "version": "251911959", "pw_name": "root", "gid": 0, "ischr": false, "wusr": true, "writeable": true, "mimetype": "text/plain", "blocks": 8, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "root", "path": "/etc/network/interfaces.d/external_port", "xusr": false, "atime": 1605004231.8980043, "isdir": false, "ctime": 1549558693.4491005, "isblk": false, "wgrp": false, "checksum": "ff8d0e3520024f83c47aa29e736c6f24b6f2323c", "dev": 2050, "roth": true, "isfifo": false, "mode": "0644", "xgrp": false, "rusr": true, "attributes": ["extents"]}, "changed": false}\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=asveifrziqydfrkqkkthrvqrdkrmjckb] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-asveifrziqydfrkqkkthrvqrdkrmjckb ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"group": "root", "uid": 0, "changed": false, "owner": "root", "state": "file", "gid": 0, "mode": "0644", "path": "/etc/network/interfaces.d/external_port", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": "external_port.j2", "path": "/etc/network/interfaces.d/external_port", "owner": null, "follow": false, "group": null, "unsafe_writes": null, "state": "file", "content": null, "serole": null, "access_time": null, "setype": null, "dest": "/etc/network/interfaces.d/external_port", "selevel": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": null, "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "/etc/network/interfaces.d/external_port"}, "before": {"path": "/etc/network/interfaces.d/external_port"}}, "size": 82}\n', '')
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'rm -f -r /home/tauser/.ansible/tmp/ansible-tmp-1605011631.28-1257-271658399072220/ > /dev/null 2>&1 && sleep 0'"'"''
<10.250.0.245> (0, '', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "checksum": "ff8d0e3520024f83c47aa29e736c6f24b6f2323c", 
    "dest": "/etc/network/interfaces.d/external_port", 
    "diff": {
        "after": {
            "path": "/etc/network/interfaces.d/external_port"
        }, 
        "before": {
            "path": "/etc/network/interfaces.d/external_port"
        }
    }, 
    "gid": 0, 
    "group": "root", 
    "invocation": {
        "module_args": {
            "_diff_peek": null, 
            "_original_basename": "external_port.j2", 
            "access_time": null, 
            "access_time_format": "%Y%m%d%H%M.%S", 
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "delimiter": null, 
            "dest": "/etc/network/interfaces.d/external_port", 
            "directory_mode": null, 
            "follow": false, 
            "force": false, 
            "group": null, 
            "mode": null, 
            "modification_time": null, 
            "modification_time_format": "%Y%m%d%H%M.%S", 
            "owner": null, 
            "path": "/etc/network/interfaces.d/external_port", 
            "recurse": false, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": null, 
            "state": "file", 
            "unsafe_writes": null
        }
    }, 
    "mode": "0644", 
    "owner": "root", 
    "path": "/etc/network/interfaces.d/external_port", 
    "size": 82, 
    "state": "file", 
    "uid": 0
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : bring up external port] ******************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/external_port.yml:13
Tuesday 10 November 2020  12:33:51 +0000 (0:00:00.596)       0:00:17.665 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Setup internal management network] *******************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:145
Tuesday 10 November 2020  12:33:51 +0000 (0:00:00.035)       0:00:17.701 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : getent] **********************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:150
Tuesday 10 November 2020  12:33:51 +0000 (0:00:00.030)       0:00:17.732 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/getent.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"fail_key": true, "split": ":", "key": "tauser", "database": "passwd"}}, "ansible_facts": {"getent_passwd": {"tauser": ["x", "1000", "1000", "tauser,,,", "/home/tauser", "/bin/bash"]}}}\n', '')
ok: [STR-ACS-SERV-01] => {
    "ansible_facts": {
        "getent_passwd": {
            "tauser": [
                "x", 
                "1000", 
                "1000", 
                "tauser,,,", 
                "/home/tauser", 
                "/bin/bash"
            ]
        }
    }, 
    "changed": false, 
    "invocation": {
        "module_args": {
            "database": "passwd", 
            "fail_key": true, 
            "key": "tauser", 
            "split": ":"
        }
    }
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : set_fact] ********************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:154
Tuesday 10 November 2020  12:33:52 +0000 (0:00:00.318)       0:00:18.050 ****** 
ok: [STR-ACS-SERV-01] => {
    "ansible_facts": {
        "home_path": "/home/tauser"
    }, 
    "changed": false
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : debug] ***********************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:157
Tuesday 10 November 2020  12:33:52 +0000 (0:00:00.040)       0:00:18.091 ****** 
ok: [STR-ACS-SERV-01] => {
    "msg": "/home/tauser"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Require veos VMs by default] *************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:159
Tuesday 10 November 2020  12:33:52 +0000 (0:00:00.034)       0:00:18.125 ****** 
ok: [STR-ACS-SERV-01] => {
    "ansible_facts": {
        "veos_vm_required": true
    }, 
    "changed": false
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : veos VMs not needed when setting up Kubernetes master] ***********************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:163
Tuesday 10 November 2020  12:33:52 +0000 (0:00:00.033)       0:00:18.159 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : VMs not needed in case of Keysight API Server] *******************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:169
Tuesday 10 November 2020  12:33:52 +0000 (0:00:00.038)       0:00:18.197 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Retrieve a list of the defined VMs] ******************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:176
Tuesday 10 November 2020  12:33:52 +0000 (0:00:00.034)       0:00:18.232 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/misc/virt.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=ykqlvxgtnbzsmtfvmuykmzwhjtltwyhx] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ykqlvxgtnbzsmtfvmuykmzwhjtltwyhx ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"xml": null, "name": null, "uri": "qemu:///system", "state": null, "command": "list_vms", "autostart": null}}, "list_vms": []}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "autostart": null, 
            "command": "list_vms", 
            "name": null, 
            "state": null, 
            "uri": "qemu:///system", 
            "xml": null
        }
    }, 
    "list_vms": []
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Retrieve a list of the running VMs] ******************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:182
Tuesday 10 November 2020  12:33:52 +0000 (0:00:00.397)       0:00:18.629 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/misc/virt.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=pyauugfojjjtjlmhebqwfdcqpbztbvsx] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-pyauugfojjjtjlmhebqwfdcqpbztbvsx ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"xml": null, "name": null, "uri": "qemu:///system", "state": "running", "command": "list_vms", "autostart": null}}, "list_vms": []}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "autostart": null, 
            "command": "list_vms", 
            "name": null, 
            "state": "running", 
            "uri": "qemu:///system", 
            "xml": null
        }
    }, 
    "list_vms": []
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Retrieve a list of the paused VMs] *******************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:189
Tuesday 10 November 2020  12:33:53 +0000 (0:00:00.211)       0:00:18.841 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/misc/virt.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=kfwrbltoehthjjtgiwuxnlmqydmlrjxj] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-kfwrbltoehthjjtgiwuxnlmqydmlrjxj ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"xml": null, "name": null, "uri": "qemu:///system", "state": "pause", "command": "list_vms", "autostart": null}}, "list_vms": []}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "autostart": null, 
            "command": "list_vms", 
            "name": null, 
            "state": "pause", 
            "uri": "qemu:///system", 
            "xml": null
        }
    }, 
    "list_vms": []
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Ensure veos-vm exists] *******************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:197
Tuesday 10 November 2020  12:33:53 +0000 (0:00:00.212)       0:00:19.053 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"group": "tauser", "uid": 1000, "changed": false, "owner": "tauser", "state": "directory", "gid": 1000, "mode": "0775", "path": "veos-vm", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "veos-vm", "owner": null, "follow": true, "group": null, "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "selevel": null, "setype": null, "access_time": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": null, "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "veos-vm"}, "before": {"path": "veos-vm"}}, "size": 4096}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "diff": {
        "after": {
            "path": "veos-vm"
        }, 
        "before": {
            "path": "veos-vm"
        }
    }, 
    "gid": 1000, 
    "group": "tauser", 
    "invocation": {
        "module_args": {
            "_diff_peek": null, 
            "_original_basename": null, 
            "access_time": null, 
            "access_time_format": "%Y%m%d%H%M.%S", 
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "delimiter": null, 
            "directory_mode": null, 
            "follow": true, 
            "force": false, 
            "group": null, 
            "mode": null, 
            "modification_time": null, 
            "modification_time_format": "%Y%m%d%H%M.%S", 
            "owner": null, 
            "path": "veos-vm", 
            "recurse": false, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": null, 
            "state": "directory", 
            "unsafe_writes": null
        }
    }, 
    "mode": "0775", 
    "owner": "tauser", 
    "path": "veos-vm", 
    "size": 4096, 
    "state": "directory", 
    "uid": 1000
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Install cleanup script] ******************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:200
Tuesday 10 November 2020  12:33:53 +0000 (0:00:00.161)       0:00:19.215 ****** 
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp `"&& mkdir $HOME/.ansible/tmp/ansible-tmp-1605011633.43-1307-153453474681575 && echo ansible-tmp-1605011633.43-1307-153453474681575="` echo $HOME/.ansible/tmp/ansible-tmp-1605011633.43-1307-153453474681575 `" ) && sleep 0'"'"''
<10.250.0.245> (0, 'ansible-tmp-1605011633.43-1307-153453474681575=/home/tauser/.ansible/tmp/ansible-tmp-1605011633.43-1307-153453474681575\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/stat.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "veos-vm/cleanup.sh", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "us-ascii", "uid": 1000, "exists": true, "attr_flags": "e", "woth": false, "isreg": true, "device_type": 0, "mtime": 1549558695.3891525, "block_size": 4096, "inode": 8653241, "isgid": false, "size": 847, "executable": false, "isuid": false, "readable": true, "version": "251911964", "pw_name": "tauser", "gid": 1000, "ischr": false, "wusr": true, "writeable": true, "mimetype": "text/x-shellscript", "blocks": 8, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "tauser", "path": "veos-vm/cleanup.sh", "xusr": false, "atime": 1605009016.6156318, "isdir": false, "ctime": 1549558695.481155, "isblk": false, "wgrp": true, "checksum": "68236b37808081a51a06fe6ee13279301ef9ccda", "dev": 2050, "roth": true, "isfifo": false, "mode": "0664", "xgrp": false, "rusr": true, "attributes": ["extents"]}, "changed": false}\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"group": "tauser", "uid": 1000, "changed": false, "owner": "tauser", "state": "file", "gid": 1000, "mode": "0664", "path": "veos-vm/cleanup.sh", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": "cleanup.sh.j2", "path": "veos-vm/cleanup.sh", "owner": null, "follow": false, "group": null, "unsafe_writes": null, "state": "file", "content": null, "serole": null, "access_time": null, "setype": null, "dest": "veos-vm/cleanup.sh", "selevel": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": null, "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "veos-vm/cleanup.sh"}, "before": {"path": "veos-vm/cleanup.sh"}}, "size": 847}\n', '')
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'rm -f -r /home/tauser/.ansible/tmp/ansible-tmp-1605011633.43-1307-153453474681575/ > /dev/null 2>&1 && sleep 0'"'"''
<10.250.0.245> (0, '', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "checksum": "68236b37808081a51a06fe6ee13279301ef9ccda", 
    "dest": "veos-vm/cleanup.sh", 
    "diff": {
        "after": {
            "path": "veos-vm/cleanup.sh"
        }, 
        "before": {
            "path": "veos-vm/cleanup.sh"
        }
    }, 
    "gid": 1000, 
    "group": "tauser", 
    "invocation": {
        "module_args": {
            "_diff_peek": null, 
            "_original_basename": "cleanup.sh.j2", 
            "access_time": null, 
            "access_time_format": "%Y%m%d%H%M.%S", 
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "delimiter": null, 
            "dest": "veos-vm/cleanup.sh", 
            "directory_mode": null, 
            "follow": false, 
            "force": false, 
            "group": null, 
            "mode": null, 
            "modification_time": null, 
            "modification_time_format": "%Y%m%d%H%M.%S", 
            "owner": null, 
            "path": "veos-vm/cleanup.sh", 
            "recurse": false, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": null, 
            "state": "file", 
            "unsafe_writes": null
        }
    }, 
    "mode": "0664", 
    "owner": "tauser", 
    "path": "veos-vm/cleanup.sh", 
    "size": 847, 
    "state": "file", 
    "uid": 1000
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Copy vm_resumer.py to the veos-vm] *******************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:204
Tuesday 10 November 2020  12:33:53 +0000 (0:00:00.373)       0:00:19.589 ****** 
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp `"&& mkdir $HOME/.ansible/tmp/ansible-tmp-1605011633.81-1318-95419701459571 && echo ansible-tmp-1605011633.81-1318-95419701459571="` echo $HOME/.ansible/tmp/ansible-tmp-1605011633.81-1318-95419701459571 `" ) && sleep 0'"'"''
<10.250.0.245> (0, 'ansible-tmp-1605011633.81-1318-95419701459571=/home/tauser/.ansible/tmp/ansible-tmp-1605011633.81-1318-95419701459571\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/stat.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=imlnfzklkrtyshxxehyyzaeuzrqyegcb] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-imlnfzklkrtyshxxehyyzaeuzrqyegcb ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "veos-vm", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "binary", "uid": 1000, "exists": true, "attr_flags": "e", "woth": false, "isreg": false, "device_type": 0, "mtime": 1604668011.500885, "block_size": 4096, "inode": 8653239, "isgid": false, "size": 4096, "executable": true, "isuid": false, "readable": true, "version": "251911961", "pw_name": "tauser", "gid": 1000, "ischr": false, "wusr": true, "writeable": true, "mimetype": "inode/directory", "blocks": 8, "xoth": true, "islnk": false, "nlink": 4, "issock": false, "rgrp": true, "gr_name": "tauser", "path": "veos-vm", "xusr": true, "atime": 1604929752.3417556, "isdir": true, "ctime": 1604668011.500885, "isblk": false, "wgrp": true, "xgrp": true, "dev": 2050, "roth": true, "isfifo": false, "mode": "0775", "rusr": true, "attributes": ["extents"]}, "changed": false}\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/stat.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=vozycbjxwizzsfizaejjnhgtseoqumty] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-vozycbjxwizzsfizaejjnhgtseoqumty ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "veos-vm/vm_resumer.py", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "us-ascii", "uid": 0, "exists": true, "attr_flags": "e", "woth": false, "isreg": true, "device_type": 0, "mtime": 1549558695.7171612, "block_size": 4096, "inode": 8653243, "isgid": false, "size": 3964, "executable": true, "isuid": false, "readable": true, "version": "251911966", "pw_name": "root", "gid": 0, "ischr": false, "wusr": true, "writeable": true, "mimetype": "text/x-python", "blocks": 8, "xoth": true, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "root", "path": "veos-vm/vm_resumer.py", "xusr": true, "atime": 1605009017.1396508, "isdir": false, "ctime": 1549558695.8091638, "isblk": false, "wgrp": false, "checksum": "b5f5368388711b811e4667df157efe79ac818ac3", "dev": 2050, "roth": true, "isfifo": false, "mode": "0755", "xgrp": true, "rusr": true, "attributes": ["extents"]}, "changed": false}\n', '')
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=kfkdhpjwbqlgjmmodhheqsmhsyckotvh] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-kfkdhpjwbqlgjmmodhheqsmhsyckotvh ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (0, '\n{"group": "root", "uid": 0, "changed": false, "owner": "root", "state": "file", "gid": 0, "mode": "0755", "path": "veos-vm/vm_resumer.py", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": "vm_resumer.py", "path": "veos-vm/vm_resumer.py", "owner": null, "follow": true, "group": null, "unsafe_writes": null, "setype": null, "content": null, "serole": null, "access_time": null, "state": "file", "dest": "veos-vm", "selevel": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": 493, "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "veos-vm/vm_resumer.py"}, "before": {"path": "veos-vm/vm_resumer.py"}}, "size": 3964}\n', '')
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'rm -f -r /home/tauser/.ansible/tmp/ansible-tmp-1605011633.81-1318-95419701459571/ > /dev/null 2>&1 && sleep 0'"'"''
<10.250.0.245> (0, '', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "checksum": "b5f5368388711b811e4667df157efe79ac818ac3", 
    "dest": "veos-vm/vm_resumer.py", 
    "diff": {
        "after": {
            "path": "veos-vm/vm_resumer.py"
        }, 
        "before": {
            "path": "veos-vm/vm_resumer.py"
        }
    }, 
    "gid": 0, 
    "group": "root", 
    "invocation": {
        "module_args": {
            "_diff_peek": null, 
            "_original_basename": "vm_resumer.py", 
            "access_time": null, 
            "access_time_format": "%Y%m%d%H%M.%S", 
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "delimiter": null, 
            "dest": "veos-vm", 
            "directory_mode": null, 
            "follow": true, 
            "force": false, 
            "group": null, 
            "mode": 493, 
            "modification_time": null, 
            "modification_time_format": "%Y%m%d%H%M.%S", 
            "owner": null, 
            "path": "veos-vm/vm_resumer.py", 
            "recurse": false, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": null, 
            "state": "file", 
            "unsafe_writes": null
        }
    }, 
    "mode": "0755", 
    "owner": "root", 
    "path": "veos-vm/vm_resumer.py", 
    "size": 3964, 
    "state": "file", 
    "uid": 0
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Find current server group] ***************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:211
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.552)       0:00:20.141 ****** 
ok: [STR-ACS-SERV-01] => {
    "ansible_facts": {
        "current_server": "server_1"
    }, 
    "changed": false
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Extract VM names from the inventory] *****************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:214
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.042)       0:00:20.184 ****** 
ok: [STR-ACS-SERV-01] => {
    "ansible_facts": {
        "VM_hosts": [
            "VM0100", 
            "VM0101", 
            "VM0102", 
            "VM0103", 
            "VM0104", 
            "VM0105", 
            "VM0106", 
            "VM0107", 
            "VM0108", 
            "VM0109", 
            "VM0110", 
            "VM0111", 
            "VM0112", 
            "VM0113", 
            "VM0114", 
            "VM0115", 
            "VM0116", 
            "VM0117", 
            "VM0118", 
            "VM0119", 
            "VM0120", 
            "VM0121", 
            "VM0122", 
            "VM0123", 
            "VM0124", 
            "VM0125", 
            "VM0126", 
            "VM0127", 
            "VM0128", 
            "VM0129", 
            "VM0130", 
            "VM0131"
        ]
    }, 
    "changed": false
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Limit VM] ********************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:217
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.043)       0:00:20.227 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Generate vm list of target VMs] **********************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:221
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.042)       0:00:20.270 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Stop VMs] ********************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:225
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.035)       0:00:20.305 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Start VMs] *******************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:229
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.039)       0:00:20.345 ****** 
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
included: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml for STR-ACS-SERV-01
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Load topo variables] *********************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:1
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.082)       0:00:20.427 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Filter VMs for specified topology] *******************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:5
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.035)       0:00:20.463 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Create directory for vm images and vm disks] *********************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:9
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.036)       0:00:20.500 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"group": "tauser", "uid": 1000, "changed": false, "owner": "tauser", "state": "directory", "gid": 1000, "mode": "0755", "path": "veos-vm/images", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "veos-vm/images", "owner": null, "follow": true, "group": null, "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "selevel": null, "setype": null, "access_time": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": "0755", "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "veos-vm/images"}, "before": {"path": "veos-vm/images"}}, "size": 4096}\n', '')
ok: [STR-ACS-SERV-01] => (item=veos-vm/images) => {
    "ansible_loop_var": "item", 
    "changed": false, 
    "diff": {
        "after": {
            "path": "veos-vm/images"
        }, 
        "before": {
            "path": "veos-vm/images"
        }
    }, 
    "gid": 1000, 
    "group": "tauser", 
    "invocation": {
        "module_args": {
            "_diff_peek": null, 
            "_original_basename": null, 
            "access_time": null, 
            "access_time_format": "%Y%m%d%H%M.%S", 
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "delimiter": null, 
            "directory_mode": null, 
            "follow": true, 
            "force": false, 
            "group": null, 
            "mode": "0755", 
            "modification_time": null, 
            "modification_time_format": "%Y%m%d%H%M.%S", 
            "owner": null, 
            "path": "veos-vm/images", 
            "recurse": false, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": null, 
            "state": "directory", 
            "unsafe_writes": null
        }
    }, 
    "item": "veos-vm/images", 
    "mode": "0755", 
    "owner": "tauser", 
    "path": "veos-vm/images", 
    "size": 4096, 
    "state": "directory", 
    "uid": 1000
}
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"group": "tauser", "uid": 1000, "changed": false, "owner": "tauser", "state": "directory", "gid": 1000, "mode": "0755", "path": "veos-vm/disks", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "veos-vm/disks", "owner": null, "follow": true, "group": null, "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "selevel": null, "setype": null, "access_time": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": false, "_diff_peek": null, "delimiter": null, "mode": "0755", "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "veos-vm/disks"}, "before": {"path": "veos-vm/disks"}}, "size": 4096}\n', '')
ok: [STR-ACS-SERV-01] => (item=veos-vm/disks) => {
    "ansible_loop_var": "item", 
    "changed": false, 
    "diff": {
        "after": {
            "path": "veos-vm/disks"
        }, 
        "before": {
            "path": "veos-vm/disks"
        }
    }, 
    "gid": 1000, 
    "group": "tauser", 
    "invocation": {
        "module_args": {
            "_diff_peek": null, 
            "_original_basename": null, 
            "access_time": null, 
            "access_time_format": "%Y%m%d%H%M.%S", 
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "delimiter": null, 
            "directory_mode": null, 
            "follow": true, 
            "force": false, 
            "group": null, 
            "mode": "0755", 
            "modification_time": null, 
            "modification_time_format": "%Y%m%d%H%M.%S", 
            "owner": null, 
            "path": "veos-vm/disks", 
            "recurse": false, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": null, 
            "state": "directory", 
            "unsafe_writes": null
        }
    }, 
    "item": "veos-vm/disks", 
    "mode": "0755", 
    "owner": "tauser", 
    "path": "veos-vm/disks", 
    "size": 4096, 
    "state": "directory", 
    "uid": 1000
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Check hdd image] *************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:15
Tuesday 10 November 2020  12:33:54 +0000 (0:00:00.297)       0:00:20.797 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/stat.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "veos-vm/images/vEOS-lab-4.20.15M.vmdk", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "binary", "uid": 1000, "exists": true, "attr_flags": "e", "woth": false, "isreg": true, "device_type": 0, "mtime": 1605009839.0, "block_size": 4096, "inode": 8659312, "isgid": false, "size": 662503424, "executable": false, "isuid": false, "readable": true, "version": "989241935", "pw_name": "tauser", "gid": 1000, "ischr": false, "wusr": true, "writeable": true, "mimetype": "application/octet-stream", "blocks": 1293960, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "tauser", "path": "veos-vm/images/vEOS-lab-4.20.15M.vmdk", "xusr": false, "atime": 1605009957.713572, "isdir": false, "ctime": 1605009920.1901834, "isblk": false, "wgrp": true, "checksum": "c6b4481f733435a5ce7d9b5e7a48d765df8009e3", "dev": 2050, "roth": true, "isfifo": false, "mode": "0664", "xgrp": false, "rusr": true, "attributes": ["extents"]}, "changed": false}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "checksum_algorithm": "sha1", 
            "follow": false, 
            "get_attributes": true, 
            "get_checksum": true, 
            "get_md5": null, 
            "get_mime": true, 
            "path": "veos-vm/images/vEOS-lab-4.20.15M.vmdk"
        }
    }, 
    "stat": {
        "atime": 1605009957.713572, 
        "attr_flags": "e", 
        "attributes": [
            "extents"
        ], 
        "block_size": 4096, 
        "blocks": 1293960, 
        "charset": "binary", 
        "checksum": "c6b4481f733435a5ce7d9b5e7a48d765df8009e3", 
        "ctime": 1605009920.1901834, 
        "dev": 2050, 
        "device_type": 0, 
        "executable": false, 
        "exists": true, 
        "gid": 1000, 
        "gr_name": "tauser", 
        "inode": 8659312, 
        "isblk": false, 
        "ischr": false, 
        "isdir": false, 
        "isfifo": false, 
        "isgid": false, 
        "islnk": false, 
        "isreg": true, 
        "issock": false, 
        "isuid": false, 
        "mimetype": "application/octet-stream", 
        "mode": "0664", 
        "mtime": 1605009839.0, 
        "nlink": 1, 
        "path": "veos-vm/images/vEOS-lab-4.20.15M.vmdk", 
        "pw_name": "tauser", 
        "readable": true, 
        "rgrp": true, 
        "roth": true, 
        "rusr": true, 
        "size": 662503424, 
        "uid": 1000, 
        "version": "989241935", 
        "wgrp": true, 
        "woth": false, 
        "writeable": true, 
        "wusr": true, 
        "xgrp": false, 
        "xoth": false, 
        "xusr": false
    }
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Fail if there are no hdd image and skip image downloading is active] *********************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:19
Tuesday 10 November 2020  12:33:56 +0000 (0:00:01.243)       0:00:22.041 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Download hdd image] **********************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:23
Tuesday 10 November 2020  12:33:56 +0000 (0:00:00.036)       0:00:22.077 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Check cd image] **************************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:27
Tuesday 10 November 2020  12:33:56 +0000 (0:00:00.038)       0:00:22.115 ****** 
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/stat.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<10.250.0.245> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "veos-vm/images/Aboot-veos-serial-8.0.0.iso", "get_md5": null, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "binary", "uid": 64055, "exists": true, "attr_flags": "e", "woth": false, "isreg": true, "device_type": 0, "mtime": 1549559266.6526875, "block_size": 4096, "inode": 8653250, "isgid": false, "size": 5242880, "executable": false, "isuid": false, "readable": true, "version": "251912260", "pw_name": "libvirt-qemu", "gid": 118, "ischr": false, "wusr": true, "writeable": false, "mimetype": "application/octet-stream", "blocks": 10240, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "kvm", "path": "veos-vm/images/Aboot-veos-serial-8.0.0.iso", "xusr": false, "atime": 1605009959.0176876, "isdir": false, "ctime": 1549559305.757762, "isblk": false, "wgrp": true, "checksum": "16edbb5a460b57bf7b16e9f4376e260b7ff0b349", "dev": 2050, "roth": true, "isfifo": false, "mode": "0664", "xgrp": false, "rusr": true, "attributes": ["extents"]}, "changed": false}\n', '')
ok: [STR-ACS-SERV-01] => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "checksum_algorithm": "sha1", 
            "follow": false, 
            "get_attributes": true, 
            "get_checksum": true, 
            "get_md5": null, 
            "get_mime": true, 
            "path": "veos-vm/images/Aboot-veos-serial-8.0.0.iso"
        }
    }, 
    "stat": {
        "atime": 1605009959.0176876, 
        "attr_flags": "e", 
        "attributes": [
            "extents"
        ], 
        "block_size": 4096, 
        "blocks": 10240, 
        "charset": "binary", 
        "checksum": "16edbb5a460b57bf7b16e9f4376e260b7ff0b349", 
        "ctime": 1549559305.757762, 
        "dev": 2050, 
        "device_type": 0, 
        "executable": false, 
        "exists": true, 
        "gid": 118, 
        "gr_name": "kvm", 
        "inode": 8653250, 
        "isblk": false, 
        "ischr": false, 
        "isdir": false, 
        "isfifo": false, 
        "isgid": false, 
        "islnk": false, 
        "isreg": true, 
        "issock": false, 
        "isuid": false, 
        "mimetype": "application/octet-stream", 
        "mode": "0664", 
        "mtime": 1549559266.6526875, 
        "nlink": 1, 
        "path": "veos-vm/images/Aboot-veos-serial-8.0.0.iso", 
        "pw_name": "libvirt-qemu", 
        "readable": true, 
        "rgrp": true, 
        "roth": true, 
        "rusr": true, 
        "size": 5242880, 
        "uid": 64055, 
        "version": "251912260", 
        "wgrp": true, 
        "woth": false, 
        "writeable": false, 
        "wusr": true, 
        "xgrp": false, 
        "xoth": false, 
        "xusr": false
    }
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Fail if there are no cd image and skip image downloading is active] **********************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:31
Tuesday 10 November 2020  12:33:56 +0000 (0:00:00.199)       0:00:22.314 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Download cd image] ***********************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:35
Tuesday 10 November 2020  12:33:56 +0000 (0:00:00.036)       0:00:22.351 ****** 
skipping: [STR-ACS-SERV-01] => {
    "changed": false, 
    "skip_reason": "Conditional result was False"
}
Read vars_file 'vars/azure_storage.yml'

TASK [vm_set : Create VMs network] **********************************************************************************************************************************************************************************************************
task path: /var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:39
Tuesday 10 November 2020  12:33:56 +0000 (0:00:00.037)       0:00:22.388 ****** 
Using module file /var/tauser/sonic-mgmt/ansible/roles/vm_set/library/vm_topology.py
Pipelining is enabled.
<10.250.0.245> ESTABLISH SSH CONNECTION FOR USER: tauser
<10.250.0.245> SSH: EXEC sshpass -d8 ssh -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o 'User="tauser"' -o ConnectTimeout=30 -o ControlPath=/var/tauser/.ansible/cp/72c32fe0d2 10.250.0.245 '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=dsxlewytnkalmqcaacuqonyuwabtnbyc] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-dsxlewytnkalmqcaacuqonyuwabtnbyc ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.250.0.245> (1, '\n{"msg": "\'VMTopology\' object has no attribute \'host_ifaces\'", "failed": true, "exception": "WARNING: The below traceback may *not* be related to the actual failure.\\n  File \\"/tmp/ansible_vm_topology_payload_SQeM5C/__main__.py\\", line 937, in main\\n    net.create_bridges()\\n  File \\"/tmp/ansible_vm_topology_payload_SQeM5C/__main__.py\\", line 238, in create_bridges\\n    self.create_ovs_bridge(fp_br_name, self.fp_mtu)\\n  File \\"/tmp/ansible_vm_topology_payload_SQeM5C/__main__.py\\", line 243, in create_ovs_bridge\\n    if bridge_name not in self.host_ifaces:\\n", "invocation": {"module_args": {"max_fp_num": 4, "fp_mtu": 9216, "ptf_bp_ip_addr": null, "ptf_bp_ipv6_addr": null, "duts_mgmt_port": null, "vm_names": ["VM0100", "VM0101", "VM0102", "VM0103", "VM0104", "VM0105", "VM0106", "VM0107", "VM0108", "VM0109", "VM0110", "VM0111", "VM0112", "VM0113", "VM0114", "VM0115", "VM0116", "VM0117", "VM0118", "VM0119", "VM0120", "VM0121", "VM0122", "VM0123", "VM0124", "VM0125", "VM0126", "VM0127", "VM0128", "VM0129", "VM0130", "VM0131"], "cmd": "create", "vm_base": null, "topo": null, "ptf_mgmt_ip_gw": null, "vm_set_name": null, "duts_fp_ports": null, "ptf_mgmt_ip_addr": null, "mgmt_bridge": null, "duts_name": null, "ptf_mgmt_ipv6_addr": null}}}\n', '/usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.\n  CryptographyDeprecationWarning,\n')
<10.250.0.245> Failed to connect to the host via ssh: /usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
  CryptographyDeprecationWarning,
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
  File "/tmp/ansible_vm_topology_payload_SQeM5C/__main__.py", line 937, in main
    net.create_bridges()
  File "/tmp/ansible_vm_topology_payload_SQeM5C/__main__.py", line 238, in create_bridges
    self.create_ovs_bridge(fp_br_name, self.fp_mtu)
  File "/tmp/ansible_vm_topology_payload_SQeM5C/__main__.py", line 243, in create_ovs_bridge
    if bridge_name not in self.host_ifaces:

fatal: [STR-ACS-SERV-01]: FAILED! => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "cmd": "create", 
            "duts_fp_ports": null, 
            "duts_mgmt_port": null, 
            "duts_name": null, 
            "fp_mtu": 9216, 
            "max_fp_num": 4, 
            "mgmt_bridge": null, 
            "ptf_bp_ip_addr": null, 
            "ptf_bp_ipv6_addr": null, 
            "ptf_mgmt_ip_addr": null, 
            "ptf_mgmt_ip_gw": null, 
            "ptf_mgmt_ipv6_addr": null, 
            "topo": null, 
            "vm_base": null, 
            "vm_names": [
                "VM0100", 
                "VM0101", 
                "VM0102", 
                "VM0103", 
                "VM0104", 
                "VM0105", 
                "VM0106", 
                "VM0107", 
                "VM0108", 
                "VM0109", 
                "VM0110", 
                "VM0111", 
                "VM0112", 
                "VM0113", 
                "VM0114", 
                "VM0115", 
                "VM0116", 
                "VM0117", 
                "VM0118", 
                "VM0119", 
                "VM0120", 
                "VM0121", 
                "VM0122", 
                "VM0123", 
                "VM0124", 
                "VM0125", 
                "VM0126", 
                "VM0127", 
                "VM0128", 
                "VM0129", 
                "VM0130", 
                "VM0131"
            ], 
            "vm_set_name": null
        }
    }, 
    "msg": "'VMTopology' object has no attribute 'host_ifaces'"
}

PLAY RECAP **********************************************************************************************************************************************************************************************************************************
STR-ACS-SERV-01            : ok=36   changed=1    unreachable=0    failed=1    skipped=23   rescued=0    ignored=0   

Tuesday 10 November 2020  12:33:57 +0000 (0:00:00.501)       0:00:22.890 ****** 
=============================================================================== 
vm_set : Add docker official GPG key ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.98s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:1 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Install docker-ce ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.88s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:34 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Install python packages ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.26s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:54 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Install necessary packages -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.35s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:57 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Check hdd image ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.24s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:15 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : remove old python packages -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.23s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:49 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : apt ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.16s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:75 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Set sysctl bridge parameters for testbed ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.68s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:116 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Add docker repository for 18.04 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.60s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/docker.yml:20 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : setup external interface as trunk port -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.60s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/external_port.yml:7 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Copy vm_resumer.py to the veos-vm ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.55s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:204 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Create VMs network ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.50s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:39 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Ensure tauser in docker,sudo group ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.45s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:97 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Retrieve a list of the defined VMs ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.40s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:176 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : get host distribution ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.39s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:18 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Install cleanup script ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.37s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:200 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : make sure /etc/network/interfaces.d exists ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.36s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/external_port.yml:1 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Install br_netfilter kernel module ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.34s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:112 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : getent ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.32s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/main.yml:150 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vm_set : Create directory for vm images and vm disks --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.30s
/var/tauser/sonic-mgmt/ansible/roles/vm_set/tasks/start.yml:9 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tauser@testing-inst:~/sonic-mgmt/ansible$ 
@mdasari-brcm
Copy link
Author

mdasari-brcm commented Nov 10, 2020

$ git log --pretty=oneline | head -n 20
f031f32 [link flap] replace bring_up_fanout_interfaces with in place restoration (#2484)
10e22c6 [BFN] Fix GRE type in show_techsupport test (#2493)
798bc2e Move location of template file used by test_bgp_speaker (#2491)
5e1b912 [Ansible] Fix connection keyword precedence issue (#2492)
0a244b1 [enumerators] unify naming convention of the parameter enumerators (#2494)
5dcdb48 [pytest/lacp]: use lacp timer if lacp rate cmd is not available (#2488)
b3fd4f8 [platform/sfp]Enhance the LPM test by performing the test only on cables supporting LPM (#2380)
c087041 [bgp_facts]: add back the bgpmon checks (#2490)
8d8c198 [dhcp-pkt-fwd] The src port and dst port of Relayed Packet are both 67 (#2432)
12e4394 [vm_topology]: make debug log more readable (#2485)
e644c33 [kvmtest]: add arp tests to kvm test suite (#2482)
31eb717 [vm_topology]: delete existing vm injected interface if exists (#2486)
262246c [ptf map] address ptf map indexing issue (#2483)
6b917b7 [cont_link_flap] address issue in fixture bring_up_fanout_interfaces (#2481)
df7620f Make CRM counters available for route_perf test (#2477)
6571830 [kvm/docs] Improve KVM setup instructions (#2476)
e6522a5 [SonicHost] Ignore non-zero return code from 'supervisorctl status' in critical_process_status() (#2474)
8c5ea5a [kvmtest]: add script to test minigraph generation (#2465)
8fb9cc9 [vmtopology]: remove host interfaces fetching operations from init method of the VMTopology class (#2446)
0ca783a [multi-dut] Make test_posttest and test_pretest multi-dut ready (#2475)

lguohan pushed a commit that referenced this issue Nov 11, 2020
…2504)

Fixes #2498

In the PR2446, it already removed to get host_ifaces from __init__ method.

For `create_bridge` method, the host_ifaces is not necessary. We can use the ovs
argument `--may-exist` to in case the bridge already exists.

For `destroy_bridge` method, we can use local variable to record the host_ifaces,
then use the `--if-exists` argument in case bridge does not exist.

Signed-off-by: Gord Chen <gord_chen@edge-core.com>
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 a pull request may close this issue.

1 participant