# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_host_to_host_psk.yml ******************************************* 1 plays in /WORKDIR/git-weekly-cij1uybfz8/tests/tests_host_to_host_psk.yml PLAY [Test host to host tunnel with generated PSK] ***************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tests_host_to_host_psk.yml:2 Sunday 07 July 2024 12:58:32 +0000 (0:00:00.012) 0:00:00.012 *********** ok: [sut] META: ran handlers TASK [Set up test environment] ************************************************* task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tests_host_to_host_psk.yml:13 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.516) 0:00:00.529 *********** included: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml for sut TASK [Set platform/version specific variables] ********************************* task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:2 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.014) 0:00:00.543 *********** TASK [linux-system-roles.vpn : Ensure ansible_facts used by role] ************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:2 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.027) 0:00:00.571 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.vpn : Check if system is ostree] ********************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:11 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.019) 0:00:00.591 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.vpn : Set flag to indicate system is ostree] ********** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:16 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.183) 0:00:00.774 *********** ok: [sut] => { "ansible_facts": { "__vpn_is_ostree": false }, "changed": false } TASK [linux-system-roles.vpn : Set platform/version specific variables] ******** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:20 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.021) 0:00:00.795 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_7.yml) => { "ansible_facts": { "__vpn_nss_location": "/etc/ipsec.d" }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [Change inventory_hostname] *********************************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:11 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.032) 0:00:00.828 *********** ok: [sut] => { "ansible_facts": { "inventory_hostname": "mainhost.local" }, "changed": false } TASK [Add sample main host] **************************************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:18 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.020) 0:00:00.848 *********** creating host via 'add_host': hostname=mainhost.local changed: [sut] => { "add_host": { "groups": [], "host_name": "mainhost.local", "host_vars": {} }, "changed": true } TASK [Create nss directory for testing] **************************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:22 Sunday 07 July 2024 12:58:33 +0000 (0:00:00.019) 0:00:00.868 *********** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/etc/ipsec.d", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create /etc/ipsec.d directory for testing] ******************************* task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:28 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.194) 0:00:01.062 *********** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/etc/ipsec.d", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Dynamically add more hosts] ********************************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:34 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.135) 0:00:01.198 *********** included: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/add_hosts.yml for sut TASK [Dynamically add multiple hosts for testing] ****************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/add_hosts.yml:2 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.010) 0:00:01.208 *********** creating host via 'add_host': hostname=host01.local changed: [sut] => (item=1) => { "add_host": { "groups": [ "testing" ], "host_name": "host01.local", "host_vars": { "cert_name": "dyn_cert", "current_ip": "169.254.1.1", "current_subnet": "169.254.0.0/16" } }, "ansible_loop_var": "item", "changed": true, "item": 1 } creating host via 'add_host': hostname=host02.local changed: [sut] => (item=2) => { "add_host": { "groups": [ "testing" ], "host_name": "host02.local", "host_vars": { "cert_name": "dyn_cert", "current_ip": "169.254.1.1", "current_subnet": "169.254.0.0/16" } }, "ansible_loop_var": "item", "changed": true, "item": 2 } TASK [Create mock vpn_connections] ********************************************* task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/add_hosts.yml:11 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.024) 0:00:01.232 *********** ok: [sut] => { "ansible_facts": { "vpn_connections": [ { "hosts": { "host01.local": "", "host02.local": "", "mainhost.local": "", "sut": "" } } ] }, "changed": false } TASK [Create sample policies directory for testing] **************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:40 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.019) 0:00:01.252 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create sample policy files for testing] ********************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:46 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.017) 0:00:01.269 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create sample policy files for testing] ********************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:52 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.017) 0:00:01.286 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create sample policy files for testing] ********************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:58 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.018) 0:00:01.305 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure firewalld not running if not testing firewall] ******************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:67 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.018) 0:00:01.324 *********** ok: [sut] => { "changed": false, "enabled": false, "failed_when_result": false, "name": "firewalld", "state": "stopped", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice basic.target polkit.service dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target ip6tables.service ebtables.service ipset.service iptables.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "disabled", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [Add extra options to check] ********************************************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tests_host_to_host_psk.yml:16 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.343) 0:00:01.667 *********** ok: [sut] => { "ansible_facts": { "vpn_connections": [ { "auto": "start", "hosts": { "host01.local": "", "host02.local": "", "mainhost.local": "", "sut": "" } } ] }, "changed": false } TASK [Use vpn role] ************************************************************ task path: /WORKDIR/git-weekly-cij1uybfz8/tests/tests_host_to_host_psk.yml:24 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.019) 0:00:01.687 *********** TASK [linux-system-roles.vpn : Set platform/version specific variables] ******** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/main.yml:3 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.022) 0:00:01.710 *********** included: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml for sut TASK [linux-system-roles.vpn : Ensure ansible_facts used by role] ************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:2 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.011) 0:00:01.722 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.vpn : Check if system is ostree] ********************** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:11 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.019) 0:00:01.741 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.vpn : Set flag to indicate system is ostree] ********** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:16 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.019) 0:00:01.760 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.vpn : Set platform/version specific variables] ******** task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:20 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.017) 0:00:01.778 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_7.yml) => { "ansible_facts": { "__vpn_nss_location": "/etc/ipsec.d" }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.vpn : Ensure required packages are installed] ********* task path: /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/main.yml:6 Sunday 07 July 2024 12:58:34 +0000 (0:00:00.031) 0:00:01.809 *********** fatal: [sut]: FAILED! => { "changed": false } MSG: Failure talking to yum: Cannot find a valid baseurl for repo: base/7/x86_64 to retry, use: --limit @/tmp/tests_host_to_host_psk.retry PLAY RECAP ********************************************************************* sut : ok=16 changed=3 unreachable=0 failed=1 skipped=8 rescued=0 ignored=0 Sunday 07 July 2024 12:58:35 +0000 (0:00:00.451) 0:00:02.261 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 0.52s /WORKDIR/git-weekly-cij1uybfz8/tests/tests_host_to_host_psk.yml:2 ------------- linux-system-roles.vpn : Ensure required packages are installed --------- 0.45s /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/main.yml:6 Ensure firewalld not running if not testing firewall -------------------- 0.34s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:67 ------------------ Create nss directory for testing ---------------------------------------- 0.19s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:22 ------------------ linux-system-roles.vpn : Check if system is ostree ---------------------- 0.18s /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:11 Create /etc/ipsec.d directory for testing ------------------------------- 0.14s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:28 ------------------ linux-system-roles.vpn : Set platform/version specific variables -------- 0.03s /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:20 linux-system-roles.vpn : Set platform/version specific variables -------- 0.03s /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:20 Set platform/version specific variables --------------------------------- 0.03s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:2 ------------------- Dynamically add multiple hosts for testing ------------------------------ 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/add_hosts.yml:2 -------------------- Use vpn role ------------------------------------------------------------ 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/tests_host_to_host_psk.yml:24 ------------ linux-system-roles.vpn : Set flag to indicate system is ostree ---------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:16 Change inventory_hostname ----------------------------------------------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:11 ------------------ linux-system-roles.vpn : Ensure ansible_facts used by role -------------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:2 Add extra options to check ---------------------------------------------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/tests_host_to_host_psk.yml:16 ------------ Create mock vpn_connections --------------------------------------------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/add_hosts.yml:11 ------------------- Add sample main host ---------------------------------------------------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:18 ------------------ linux-system-roles.vpn : Ensure ansible_facts used by role -------------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:2 linux-system-roles.vpn : Check if system is ostree ---------------------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/roles/linux-system-roles.vpn/tasks/set_vars.yml:11 Create sample policy files for testing ---------------------------------- 0.02s /WORKDIR/git-weekly-cij1uybfz8/tests/tasks/setup_test.yml:58 ------------------ ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---