# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-test-tox-lsr-2.12-KFJfeH/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-test-tox-lsr-2.12-KFJfeH/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 7] *********************************************************** changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" ], "delta": "0:00:01.626913", "end": "2021-11-09 02:06:10.870194", "rc": 0, "start": "2021-11-09 02:06:09.243281" } STDOUT: Loaded plugins: fastestmirror Examining /var/tmp/yum-root-zj1Ogm/epel-release-latest-7.noarch.rpm: epel-release-7-14.noarch Marking /var/tmp/yum-root-zj1Ogm/epel-release-latest-7.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-14 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: epel-release noarch 7-14 /epel-release-latest-7.noarch 25 k Transaction Summary ================================================================================ Install 1 Package Total size: 25 k Installed size: 25 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-14.noarch 1/1 Verifying : epel-release-7-14.noarch 1/1 Installed: epel-release.noarch 0:7-14 Complete! TASK [Enable EPEL 7] *********************************************************** changed: [sut] => { "changed": true, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.360976", "end": "2021-11-09 02:06:11.449193", "rc": 0, "start": "2021-11-09 02:06:11.088217" } STDOUT: Loaded plugins: fastestmirror ================================== repo: epel ================================== [epel] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7 baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7/epel check_config_file_age = True compare_providers_priority = 80 cost = 1000 deltarpm_metadata_percentage = 100 deltarpm_percentage = enabled = True enablegroups = True exclude = failovermethod = priority ftp_disable_epsv = False gpgcadir = /var/lib/yum/repos/x86_64/7/epel/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7/epel/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 hdrdir = /var/cache/yum/x86_64/7/epel/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 21600 metadata_expire_filter = read-only:present metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos minrate = 0 mirrorlist = mirrorlist_expire = 86400 name = Extra Packages for Enterprise Linux 7 - x86_64 old_base_cache_dir = password = persistdir = /var/lib/yum/repos/x86_64/7/epel pkgdir = /var/cache/yum/x86_64/7/epel/packages proxy = False proxy_dict = proxy_password = proxy_username = repo_gpgcheck = False retries = 10 skip_if_unavailable = False ssl_check_cert_permissions = True sslcacert = sslclientcert = sslclientkey = sslverify = True throttle = 0 timeout = 30.0 ui_id = epel/x86_64 ui_repoid_vars = releasever, basearch username = TASK [Enable EPEL 8] *********************************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [INIT Prepare setup] ****************************************************** ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* changed: [sut] => { "changed": true, "changes": { "installed": [ "dnsmasq" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * epel: dl.fedoraproject.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package dnsmasq.x86_64 0:2.76-17.el7_9.3 will be installed\n--> Processing Dependency: libnettle.so.4()(64bit) for package: dnsmasq-2.76-17.el7_9.3.x86_64\n--> Running transaction check\n---> Package nettle.x86_64 0:2.7.1-9.el7_9 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n dnsmasq x86_64 2.76-17.el7_9.3 updates 281 k\nInstalling for dependencies:\n nettle x86_64 2.7.1-9.el7_9 updates 328 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+1 Dependent package)\n\nTotal download size: 608 k\nInstalled size: 1.3 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 1.8 MB/s | 608 kB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : nettle-2.7.1-9.el7_9.x86_64 1/2 \n Installing : dnsmasq-2.76-17.el7_9.3.x86_64 2/2 \n Verifying : dnsmasq-2.76-17.el7_9.3.x86_64 1/2 \n Verifying : nettle-2.7.1-9.el7_9.x86_64 2/2 \n\nInstalled:\n dnsmasq.x86_64 0:2.76-17.el7_9.3 \n\nDependency Installed:\n nettle.x86_64 0:2.7.1-9.el7_9 \n\nComplete!\n" ] } TASK [Create test interfaces] ************************************************** ok: [sut] => { "changed": false, "cmd": "ip link add test1 type veth peer name test1p\nip link add test2 type veth peer name test2p\nif [ -n \"$(pidof NetworkManager)\" ];then\n nmcli d set test1 managed true\n nmcli d set test2 managed true\n # NetworkManager should not manage DHCP server ports\n nmcli d set test1p managed false\n nmcli d set test2p managed false\nfi\nip link set test1p up\nip link set test2p up\n\n# Create the 'testbr' - providing both 10.x ipv4 and 2620:52:0 ipv6 dhcp\nip link add name testbr type bridge forward_delay 0\nif [ -n \"$(pidof NetworkManager)\" ];then\n # NetworkManager should not manage DHCP server ports\n nmcli d set testbr managed false\nfi\nip link set testbr up\nip addr add 192.0.2.1/24 dev testbr\nip -6 addr add 2001:DB8::1/32 dev testbr\n\nif grep 'release 6' /etc/redhat-release; then\n # We need bridge-utils and radvd only in rhel6\n if ! rpm -q --quiet radvd; then yum -y install radvd; fi\n if ! rpm -q --quiet bridge-utils; then yum -y install bridge-utils; fi\n\n # We need to add iptables rule to allow dhcp request\n iptables -I INPUT -i testbr -p udp --dport 67:68 --sport 67:68 -j ACCEPT\n\n # Add test1, test2 peers into the testbr\n brctl addif testbr test1p\n brctl addif testbr test2p\n\n # in RHEL6 /run is not present\n mkdir -p /run\n\n # and dnsmasq does not support ipv6\n dnsmasq --pid-file=/run/dhcp_testbr.pid --dhcp-leasefile=/run/dhcp_testbr.lease --dhcp-range=192.0.2.1,192.0.2.254,240 --interface=testbr --bind-interfaces\n\n # start radvd for ipv6\n echo 'interface testbr {' > /etc/radvd.conf\n echo ' AdvSendAdvert on;' >> /etc/radvd.conf\n echo ' prefix 2001:DB8::/64 { ' >> /etc/radvd.conf\n echo ' AdvOnLink on; }; ' >> /etc/radvd.conf\n echo ' }; ' >> /etc/radvd.conf\n\n # enable ipv6 forwarding\n sysctl -w net.ipv6.conf.all.forwarding=1\n service radvd restart\n\nelse\n ip link set test1p master testbr\n ip link set test2p master testbr\n # Run joint DHCP4/DHCP6 server with RA enabled in veth namespace\n dnsmasq --pid-file=/run/dhcp_testbr.pid --dhcp-leasefile=/run/dhcp_testbr.lease --dhcp-range=192.0.2.1,192.0.2.254,240 --dhcp-range=2001:DB8::10,2001:DB8::1FF,slaac,64,240 --enable-ra --interface=testbr --bind-interfaces\nfi\n", "delta": "0:00:00.320784", "end": "2021-11-09 02:06:21.739272", "rc": 0, "start": "2021-11-09 02:06:21.418488" } TASK [Get stat for interface test1] ******************************************** ok: [sut] => { "changed": false, "stat": { "atime": 1636423581.4351716, "block_size": 4096, "blocks": 0, "ctime": 1636423581.4351716, "dev": 17, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 17641, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/test1", "lnk_target": "../../devices/virtual/net/test1", "mode": "0777", "mtime": 1636423581.4351716, "nlink": 1, "path": "/sys/class/net/test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface test1 is present] ********************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get stat for interface test2] ******************************************** ok: [sut] => { "changed": false, "stat": { "atime": 1636423581.4511712, "block_size": 4096, "blocks": 0, "ctime": 1636423581.4511712, "dev": 17, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 17801, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/test2", "lnk_target": "../../devices/virtual/net/test2", "mode": "0777", "mtime": 1636423581.4511712, "nlink": 1, "path": "/sys/class/net/test2", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface test2 is present] ********************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST Add Bond with 2 ports] ********************************************** ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Check which services are running] *********** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "connections": [ { "bond": { "miimon": 110, "mode": "active-backup" }, "interface_name": "nm-bond", "name": "bond0", "state": "up", "type": "bond" }, { "controller": "bond0", "interface_name": "test1", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "controller": "bond0", "interface_name": "test2", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [007] #0, state:up persistent_state:present, 'bond0': add connection bond0, c9c7c6a7-267a-467d-a9bb-e7dc6a2b483d [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 2c322196-9e59-4fd2-a563-bf78584287e2 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 8c1adcb8-f65b-4ecd-a9ec-17cf81c79fd5 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, c9c7c6a7-267a-467d-a9bb-e7dc6a2b483d (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 2c322196-9e59-4fd2-a563-bf78584287e2 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 8c1adcb8-f65b-4ecd-a9ec-17cf81c79fd5 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, c9c7c6a7-267a-467d-a9bb-e7dc6a2b483d", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 2c322196-9e59-4fd2-a563-bf78584287e2", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 8c1adcb8-f65b-4ecd-a9ec-17cf81c79fd5", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, c9c7c6a7-267a-467d-a9bb-e7dc6a2b483d (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 2c322196-9e59-4fd2-a563-bf78584287e2 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 8c1adcb8-f65b-4ecd-a9ec-17cf81c79fd5 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "connections": [ { "bond": { "miimon": 110, "mode": "active-backup" }, "interface_name": "nm-bond", "name": "bond0", "state": "up", "type": "bond" }, { "controller": "bond0", "interface_name": "test1", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "controller": "bond0", "interface_name": "test2", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, c9c7c6a7-267a-467d-a9bb-e7dc6a2b483d\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 2c322196-9e59-4fd2-a563-bf78584287e2\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 8c1adcb8-f65b-4ecd-a9ec-17cf81c79fd5\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, c9c7c6a7-267a-467d-a9bb-e7dc6a2b483d (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 2c322196-9e59-4fd2-a563-bf78584287e2 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 8c1adcb8-f65b-4ecd-a9ec-17cf81c79fd5 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, c9c7c6a7-267a-467d-a9bb-e7dc6a2b483d", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 2c322196-9e59-4fd2-a563-bf78584287e2", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 8c1adcb8-f65b-4ecd-a9ec-17cf81c79fd5", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, c9c7c6a7-267a-467d-a9bb-e7dc6a2b483d (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 2c322196-9e59-4fd2-a563-bf78584287e2 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 8c1adcb8-f65b-4ecd-a9ec-17cf81c79fd5 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get stat for interface nm-bond] ****************************************** ok: [sut] => { "changed": false, "stat": { "atime": 1636423589.1369724, "block_size": 4096, "blocks": 0, "ctime": 1636423589.1259727, "dev": 17, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 18212, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/nm-bond", "lnk_target": "../../devices/virtual/net/nm-bond", "mode": "0777", "mtime": 1636423589.1259727, "nlink": 1, "path": "/sys/class/net/nm-bond", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface nm-bond is present] ******************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-test-tox-lsr-2.12-KFJfeH/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-test-tox-lsr-2.12-KFJfeH/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-test-tox-lsr-2.12-KFJfeH/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-test-tox-lsr-2.12-KFJfeH/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist flag] **************************************** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* ok: [sut] => { "changed": false, "stat": { "atime": 1636423589.1039734, "block_size": 4096, "blocks": 8, "ctime": 1636423589.1029732, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 24759, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1636423589.1029732, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 342, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.035515", "end": "2021-11-09 02:06:32.989084", "rc": 0, "start": "2021-11-09 02:06:32.953569" } STDOUT: bond0 /etc/sysconfig/network-scripts/ifcfg-bond0 bond0.0 /etc/sysconfig/network-scripts/ifcfg-bond0.0 bond0.1 /etc/sysconfig/network-scripts/ifcfg-bond0.1 TASK [Set NM profile exist flag based on the nmcli output] ********************* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [assert that profile 'bond0' is present] ********************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-test-tox-lsr-2.12-KFJfeH/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist flag] **************************************** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* ok: [sut] => { "changed": false, "stat": { "atime": 1636423589.1689715, "block_size": 4096, "blocks": 8, "ctime": 1636423589.1689715, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 24774, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1636423589.1689715, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 167, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.032314", "end": "2021-11-09 02:06:35.124412", "rc": 0, "start": "2021-11-09 02:06:35.092098" } STDOUT: bond0.0 /etc/sysconfig/network-scripts/ifcfg-bond0.0 TASK [Set NM profile exist flag based on the nmcli output] ********************* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [assert that profile 'bond0.0' is present] ******************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-test-tox-lsr-2.12-KFJfeH/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist flag] **************************************** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* ok: [sut] => { "changed": false, "stat": { "atime": 1636423589.188971, "block_size": 4096, "blocks": 8, "ctime": 1636423589.188971, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 24777, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1636423589.188971, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.1", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 167, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.032545", "end": "2021-11-09 02:06:37.293407", "rc": 0, "start": "2021-11-09 02:06:37.260862" } STDOUT: bond0.1 /etc/sysconfig/network-scripts/ifcfg-bond0.1 TASK [Set NM profile exist flag based on the nmcli output] ********************* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [assert that profile 'bond0.1' is present] ******************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/nm-bond" ], "delta": "0:00:00.003290", "end": "2021-11-09 02:06:38.136290", "rc": 0, "start": "2021-11-09 02:06:38.133000" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.003667", "end": "2021-11-09 02:06:38.524298", "rc": 0, "start": "2021-11-09 02:06:38.520631" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.23/24 brd 192.0.2.255 scope global noprefixroute dynamic nm-bond valid_lft 234sec preferred_lft 234sec TASK [** TEST check IPv6] ****************************************************** changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004315", "end": "2021-11-09 02:06:38.896493", "rc": 0, "start": "2021-11-09 02:06:38.892178" } STDOUT: 8: nm-bond: mtu 1500 state UP qlen 1000 inet6 2001:db8::91/128 scope global noprefixroute dynamic valid_lft 234sec preferred_lft 234sec inet6 2001:db8::d53b:bc43:c44a:150a/64 scope global noprefixroute dynamic valid_lft 1793sec preferred_lft 1793sec inet6 fe80::2e91:9592:2c8c:3133/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Check which services are running] *********** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "connections": [ { "name": "bond0.1", "persistent_state": "absent", "state": "down" }, { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Show stderr messages] *********************** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "connections": [ { "name": "bond0.1", "persistent_state": "absent", "state": "down" }, { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.011545", "end": "2021-11-09 02:06:45.128044", "rc": 1, "start": "2021-11-09 02:06:45.116499" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.033011", "end": "2021-11-09 02:06:45.515008", "rc": 0, "start": "2021-11-09 02:06:45.481997" } TASK [Stop dnsmasq/radvd services] ********************************************* ok: [sut] => { "changed": false, "cmd": "pkill -F /run/dhcp_testbr.pid\nrm -rf /run/dhcp_testbr.pid\nrm -rf /run/dhcp_testbr.lease\nif grep 'release 6' /etc/redhat-release; then\n # Stop radvd server\n service radvd stop\n iptables -D INPUT -i testbr -p udp --dport 67:68 --sport 67:68 -j ACCEPT\n\nfi\n", "delta": "0:00:00.029277", "end": "2021-11-09 02:06:45.894563", "rc": 0, "start": "2021-11-09 02:06:45.865286" } TASK [Restore the /etc/resolv.conf for initscript] ***************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=63 changed=9 unreachable=0 failed=0 skipped=15 rescued=0 ignored=1 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/gluetool/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:41: 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 the next release. from cryptography.exceptions import InvalidSignature ---^---^---^---^---^---