# 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] ********************************************************* Friday 05 August 2022 17:02:28 +0000 (0:00:00.378) 0:00:00.378 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:02:40 +0000 (0:00:11.977) 0:00:12.356 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 17:02:41 +0000 (0:00:01.086) 0:00:13.442 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:02:42 +0000 (0:00:01.266) 0:00:14.708 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 17:02:43 +0000 (0:00:00.915) 0:00:15.624 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 17:02:44 +0000 (0:00:00.755) 0:00:16.379 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 17:02:45 +0000 (0:00:01.433) 0:00:17.813 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 17:02:46 +0000 (0:00:00.675) 0:00:18.489 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 17:02:47 +0000 (0:00:00.680) 0:00:19.170 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:02:48 +0000 (0:00:01.875) 0:00:21.045 ********* ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 05 August 2022 17:02:51 +0000 (0:00:02.767) 0:00:23.813 ********* ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 05 August 2022 17:02:53 +0000 (0:00:01.310) 0:00:25.123 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.85-4.el9.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 17:03:02 +0000 (0:00:09.274) 0:00:34.398 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 17:03:03 +0000 (0:00:01.279) 0:00:35.677 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 05 August 2022 17:03:08 +0000 (0:00:04.964) 0:00:40.642 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail\nip link add test1 type veth peer name test1p\nip link add test2 type veth peer name test2p\nif [ -n \"$(pgrep 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 \"$(pgrep NetworkManager)\" ];then\n # NetworkManager should not manage DHCP server ports\n nmcli d set testbr managed false\nfi\nip link set testbr up\ntimer=0\n# The while loop following is a workaround for the NM bug, which can be\n# tracked in https://bugzilla.redhat.com/show_bug.cgi?id=2079642\nwhile ! ip addr show testbr | grep -q 'inet [1-9]'\ndo\n let \"timer+=1\"\n if [ $timer -eq 30 ]; then break; fi\n sleep 1\n ip addr add 192.0.2.1/24 dev testbr\n ip -6 addr add 2001:DB8::1/32 dev testbr\ndone\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:01.485409", "end": "2022-08-05 17:03:14.357748", "rc": 0, "start": "2022-08-05 17:03:12.872339" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:03:14 +0000 (0:00:06.298) 0:00:46.941 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface test1] ******************************************** Friday 05 August 2022 17:03:16 +0000 (0:00:01.675) 0:00:48.616 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659718992.9316235, "block_size": 4096, "blocks": 0, "ctime": 1659718992.9316235, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22436, "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": 1659718992.9316235, "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] ********************************** Friday 05 August 2022 17:03:23 +0000 (0:00:07.036) 0:00:55.652 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:03:24 +0000 (0:00:01.175) 0:00:56.827 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface test2] ******************************************** Friday 05 August 2022 17:03:26 +0000 (0:00:01.529) 0:00:58.357 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659718992.9405005, "block_size": 4096, "blocks": 0, "ctime": 1659718992.9405005, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23022, "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": 1659718992.9405005, "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] ********************************** Friday 05 August 2022 17:03:28 +0000 (0:00:02.251) 0:01:00.608 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** Friday 05 August 2022 17:03:30 +0000 (0:00:01.607) 0:01:02.216 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST Add Bond with 2 ports] ********************************************** Friday 05 August 2022 17:03:31 +0000 (0:00:00.886) 0:01:03.102 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 17:03:33 +0000 (0:00:02.279) 0:01:05.382 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 17:03:34 +0000 (0:00:01.363) 0:01:06.745 ********* 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 services are running] *********** Friday 05 August 2022 17:03:37 +0000 (0:00:02.602) 0:01:09.348 ********* 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] ********* Friday 05 August 2022 17:03:51 +0000 (0:00:14.637) 0:01:23.986 ********* 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] ********************* Friday 05 August 2022 17:04:01 +0000 (0:00:10.003) 0:01:33.990 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 17:04:03 +0000 (0:00:01.163) 0:01:35.153 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 17:04:04 +0000 (0:00:01.392) 0:01:36.546 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 17:04:06 +0000 (0:00:01.568) 0:01:38.114 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 17:04:09 +0000 (0:00:03.429) 0:01:41.543 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 17:04:10 +0000 (0:00:01.216) 0:01:42.760 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 17:04:11 +0000 (0:00:00.743) 0:01:43.504 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 17:04:12 +0000 (0:00:01.235) 0:01:44.739 ********* 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] ************ Friday 05 August 2022 17:04:23 +0000 (0:00:11.025) 0:01:55.764 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 17:04:25 +0000 (0:00:01.630) 0:01:57.395 ********* 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] *** Friday 05 August 2022 17:04:26 +0000 (0:00:00.824) 0:01:58.219 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 17:04:27 +0000 (0:00:00.997) 0:01:59.216 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "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, 0f73c754-bb45-49d5-a712-cc11cba9dc0b [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, ae91e91d-24bc-467f-ade2-2cfb706fdd64 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 8c014ed8-840b-4e01-a254-d9280080a142 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 0f73c754-bb45-49d5-a712-cc11cba9dc0b (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, ae91e91d-24bc-467f-ade2-2cfb706fdd64 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 8c014ed8-840b-4e01-a254-d9280080a142 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 17:04:36 +0000 (0:00:08.975) 0:02:08.192 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 17:04:37 +0000 (0:00:01.864) 0:02:10.057 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 0f73c754-bb45-49d5-a712-cc11cba9dc0b", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, ae91e91d-24bc-467f-ade2-2cfb706fdd64", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 8c014ed8-840b-4e01-a254-d9280080a142", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 0f73c754-bb45-49d5-a712-cc11cba9dc0b (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, ae91e91d-24bc-467f-ade2-2cfb706fdd64 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 8c014ed8-840b-4e01-a254-d9280080a142 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 17:04:39 +0000 (0:00:01.609) 0:02:11.666 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "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, 0f73c754-bb45-49d5-a712-cc11cba9dc0b\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, ae91e91d-24bc-467f-ade2-2cfb706fdd64\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 8c014ed8-840b-4e01-a254-d9280080a142\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 0f73c754-bb45-49d5-a712-cc11cba9dc0b (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, ae91e91d-24bc-467f-ade2-2cfb706fdd64 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 8c014ed8-840b-4e01-a254-d9280080a142 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 0f73c754-bb45-49d5-a712-cc11cba9dc0b", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, ae91e91d-24bc-467f-ade2-2cfb706fdd64", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 8c014ed8-840b-4e01-a254-d9280080a142", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 0f73c754-bb45-49d5-a712-cc11cba9dc0b (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, ae91e91d-24bc-467f-ade2-2cfb706fdd64 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 8c014ed8-840b-4e01-a254-d9280080a142 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 17:04:41 +0000 (0:00:02.365) 0:02:14.032 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 17:04:43 +0000 (0:00:01.874) 0:02:15.906 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:04:58 +0000 (0:00:14.293) 0:02:30.200 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface nm-bond] ****************************************** Friday 05 August 2022 17:05:00 +0000 (0:00:02.231) 0:02:32.431 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659719075.3550751, "block_size": 4096, "blocks": 0, "ctime": 1659719075.3550751, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23711, "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": 1659719075.3550751, "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] ******************************** Friday 05 August 2022 17:05:02 +0000 (0:00:02.652) 0:02:35.083 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:04 +0000 (0:00:01.472) 0:02:36.556 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0) included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0.0) included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0.1) TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:07 +0000 (0:00:02.651) 0:02:39.207 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 17:05:07 +0000 (0:00:00.342) 0:02:39.549 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 17:05:07 +0000 (0:00:00.165) 0:02:39.714 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 17:05:08 +0000 (0:00:00.552) 0:02:40.267 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 17:05:08 +0000 (0:00:00.263) 0:02:40.530 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.031684", "end": "2022-08-05 17:05:08.874497", "rc": 0, "start": "2022-08-05 17:05:08.842813" } STDOUT: bond0 /etc/NetworkManager/system-connections/bond0.nmconnection bond0.0 /etc/NetworkManager/system-connections/bond0.0.nmconnection bond0.1 /etc/NetworkManager/system-connections/bond0.1.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 17:05:09 +0000 (0:00:00.610) 0:02:41.141 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-bond0] ************************** Friday 05 August 2022 17:05:09 +0000 (0:00:00.205) 0:02:41.346 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 05 August 2022 17:05:09 +0000 (0:00:00.148) 0:02:41.495 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 05 August 2022 17:05:09 +0000 (0:00:00.246) 0:02:41.742 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 05 August 2022 17:05:09 +0000 (0:00:00.339) 0:02:42.081 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:10 +0000 (0:00:00.353) 0:02:42.435 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 17:05:10 +0000 (0:00:00.277) 0:02:42.713 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 17:05:10 +0000 (0:00:00.211) 0:02:42.924 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 17:05:11 +0000 (0:00:00.512) 0:02:43.436 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 17:05:11 +0000 (0:00:00.149) 0:02:43.586 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.028358", "end": "2022-08-05 17:05:11.887804", "rc": 0, "start": "2022-08-05 17:05:11.859446" } STDOUT: bond0.0 /etc/NetworkManager/system-connections/bond0.0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 17:05:12 +0000 (0:00:00.517) 0:02:44.103 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-bond0.0] ************************ Friday 05 August 2022 17:05:12 +0000 (0:00:00.259) 0:02:44.362 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Friday 05 August 2022 17:05:12 +0000 (0:00:00.206) 0:02:44.569 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 05 August 2022 17:05:12 +0000 (0:00:00.127) 0:02:44.696 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 05 August 2022 17:05:12 +0000 (0:00:00.174) 0:02:44.871 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:13 +0000 (0:00:00.356) 0:02:45.228 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 17:05:13 +0000 (0:00:00.326) 0:02:45.555 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 17:05:14 +0000 (0:00:00.565) 0:02:46.120 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 17:05:14 +0000 (0:00:00.506) 0:02:46.627 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 17:05:14 +0000 (0:00:00.114) 0:02:46.742 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.028039", "end": "2022-08-05 17:05:15.017660", "rc": 0, "start": "2022-08-05 17:05:14.989621" } STDOUT: bond0.1 /etc/NetworkManager/system-connections/bond0.1.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 17:05:15 +0000 (0:00:00.494) 0:02:47.236 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-bond0.1] ************************ Friday 05 August 2022 17:05:15 +0000 (0:00:00.211) 0:02:47.448 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Friday 05 August 2022 17:05:15 +0000 (0:00:00.141) 0:02:47.590 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 05 August 2022 17:05:15 +0000 (0:00:00.147) 0:02:47.737 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 05 August 2022 17:05:15 +0000 (0:00:00.156) 0:02:47.894 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Friday 05 August 2022 17:05:15 +0000 (0:00:00.188) 0:02:48.083 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/nm-bond" ], "delta": "0:00:01.005333", "end": "2022-08-05 17:05:17.361358", "rc": 0, "start": "2022-08-05 17:05:16.356025" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Friday 05 August 2022 17:05:17 +0000 (0:00:01.487) 0:02:49.570 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004190", "end": "2022-08-05 17:05:17.786056", "rc": 0, "start": "2022-08-05 17:05:17.781866" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.144/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 201sec preferred_lft 201sec TASK [** TEST check IPv6] ****************************************************** Friday 05 August 2022 17:05:17 +0000 (0:00:00.400) 0:02:49.971 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004179", "end": "2022-08-05 17:05:18.174966", "rc": 0, "start": "2022-08-05 17:05:18.170787" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::94/128 scope global dynamic noprefixroute valid_lft 201sec preferred_lft 201sec inet6 2001:db8::a132:1264:147a:ec68/64 scope global dynamic noprefixroute valid_lft 1760sec preferred_lft 1760sec inet6 fe80::3feb:9f0c:e3e7:f472/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 17:05:18 +0000 (0:00:00.383) 0:02:50.354 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 17:05:18 +0000 (0:00:00.129) 0:02:50.484 ********* 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 services are running] *********** Friday 05 August 2022 17:05:19 +0000 (0:00:00.844) 0:02:51.328 ********* 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] ********* Friday 05 August 2022 17:05:21 +0000 (0:00:01.919) 0:02:53.247 ********* 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] ********************* Friday 05 August 2022 17:05:22 +0000 (0:00:00.879) 0:02:54.127 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 17:05:22 +0000 (0:00:00.102) 0:02:54.229 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 17:05:22 +0000 (0:00:00.106) 0:02:54.336 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 17:05:22 +0000 (0:00:00.135) 0:02:54.471 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 17:05:22 +0000 (0:00:00.185) 0:02:54.657 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 17:05:22 +0000 (0:00:00.153) 0:02:54.811 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 17:05:22 +0000 (0:00:00.165) 0:02:54.976 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 17:05:23 +0000 (0:00:00.177) 0:02:55.154 ********* 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] ************ Friday 05 August 2022 17:05:23 +0000 (0:00:00.719) 0:02:55.873 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 17:05:24 +0000 (0:00:00.235) 0:02:56.109 ********* 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] *** Friday 05 August 2022 17:05:24 +0000 (0:00:00.129) 0:02:56.239 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 17:05:24 +0000 (0:00:00.124) 0:02:56.363 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "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 : Configure networking state] ***************** Friday 05 August 2022 17:05:25 +0000 (0:00:01.133) 0:02:57.497 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 17:05:25 +0000 (0:00:00.086) 0:02:57.584 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 17:05:25 +0000 (0:00:00.241) 0:02:57.825 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "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 : Show debug messages for the network_state] *** Friday 05 August 2022 17:05:25 +0000 (0:00:00.245) 0:02:58.070 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 17:05:26 +0000 (0:00:00.168) 0:02:58.239 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 05 August 2022 17:05:26 +0000 (0:00:00.378) 0:02:58.618 ********* fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.008255", "end": "2022-08-05 17:05:26.785037", "rc": 1, "start": "2022-08-05 17:05:26.776782" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 05 August 2022 17:05:26 +0000 (0:00:00.335) 0:02:58.953 ********* ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.062865", "end": "2022-08-05 17:05:27.170447", "rc": 0, "start": "2022-08-05 17:05:27.107582" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 05 August 2022 17:05:27 +0000 (0:00:00.426) 0:02:59.380 ********* 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.076608", "end": "2022-08-05 17:05:27.634984", "rc": 0, "start": "2022-08-05 17:05:27.558376" } TASK [Restore the /etc/resolv.conf for initscript] ***************************** Friday 05 August 2022 17:05:27 +0000 (0:00:00.514) 0:02:59.894 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=69 changed=7 unreachable=0 failed=0 skipped=39 rescued=0 ignored=1 Friday 05 August 2022 17:05:28 +0000 (0:00:00.354) 0:03:00.249 ********* =============================================================================== linux-system-roles.network : Check which services are running ---------- 14.70s linux-system-roles.network : Re-test connectivity ---------------------- 14.29s Gathering Facts -------------------------------------------------------- 11.98s linux-system-roles.network : Enable and start NetworkManager ----------- 11.03s linux-system-roles.network : Check which packages are installed --------- 9.94s Install dnsmasq --------------------------------------------------------- 9.27s linux-system-roles.network : Configure networking connection profiles --- 8.98s Get stat for interface test1 -------------------------------------------- 7.04s Create test interfaces -------------------------------------------------- 6.30s Install pgrep, sysctl --------------------------------------------------- 4.96s linux-system-roles.network : Install packages --------------------------- 3.43s Gathering Facts --------------------------------------------------------- 2.77s Get stat for interface nm-bond ------------------------------------------ 2.65s include_tasks ----------------------------------------------------------- 2.65s linux-system-roles.network : Ensure ansible_facts used by role are present --- 2.60s linux-system-roles.network : Show debug messages for the network_connections --- 2.37s TEST Add Bond with 2 ports ---------------------------------------------- 2.28s Get stat for interface test2 -------------------------------------------- 2.25s include_tasks ----------------------------------------------------------- 2.23s linux-system-roles.network : Check which services are running ----------- 1.92s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---