# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [test - local setup] ****************************************************** TASK [Download current linux-system-roles.certificate] ************************* ok: [127.0.0.1] => { "after": "52866a726f7467e5144ce20c3a30a6ed9da0f59e", "before": "52866a726f7467e5144ce20c3a30a6ed9da0f59e", "changed": false, "remote_url_changed": false } PLAY [Install cockpit] ********************************************************* TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [linux-system-roles.cockpit : Set version specific variables] ************* ok: [sut] => (item=/WORKDIR/dist-git-cockpit-test-ci-rhel7-extras-khD10v/vars/CentOS-7.yml) => { "ansible_facts": { "__cockpit_packages": { "default": "{{ __cockpit_packages_minimal + __cockpit_packages_default }}", "full": "{{ __cockpit_packages_minimal + __cockpit_packages_default + __cockpit_packages_full }}", "minimal": "{{ __cockpit_packages_minimal }}" }, "__cockpit_packages_default": [ "cockpit", "cockpit-networkmanager", "cockpit-packagekit", "cockpit-selinux", "cockpit-storaged" ], "__cockpit_packages_exclude": [ "cockpit-machines-ovirt" ], "__cockpit_packages_full": [ "cockpit-composer", "cockpit-dashboard", "cockpit-doc", "cockpit-docker", "cockpit-machines", "cockpit-pcp", "cockpit-shell" ], "__cockpit_packages_minimal": [ "cockpit-system", "cockpit-ws" ] }, "ansible_included_var_files": [ "/WORKDIR/dist-git-cockpit-test-ci-rhel7-extras-khD10v/vars/CentOS-7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/WORKDIR/dist-git-cockpit-test-ci-rhel7-extras-khD10v/vars/CentOS-7.yml" } TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Manage cockpit packages using platform specific package manager if applicable] *** included: /WORKDIR/dist-git-cockpit-test-ci-rhel7-extras-khD10v/tasks/setup-yum.yml for sut TASK [linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** ok: [sut] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** changed: [sut] => { "changed": true, "changes": { "installed": [ "cockpit-system", "cockpit-ws" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.12-1.el7.centos will be installed\n--> Processing Dependency: cockpit-bridge >= 195.12-1.el7.centos for package: cockpit-system-195.12-1.el7.centos.noarch\n---> Package cockpit-ws.x86_64 0:195.12-1.el7.centos will be installed\n--> Processing Dependency: glib-networking for package: cockpit-ws-195.12-1.el7.centos.x86_64\n--> Processing Dependency: libjson-glib-1.0.so.0()(64bit) for package: cockpit-ws-195.12-1.el7.centos.x86_64\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.12-1.el7.centos will be installed\n---> Package glib-networking.x86_64 0:2.56.1-1.el7 will be installed\n--> Processing Dependency: libgnutls.so.28(GNUTLS_3_1_0)(64bit) for package: glib-networking-2.56.1-1.el7.x86_64\n--> Processing Dependency: libgnutls.so.28(GNUTLS_3_0_0)(64bit) for package: glib-networking-2.56.1-1.el7.x86_64\n--> Processing Dependency: libgnutls.so.28(GNUTLS_2_12)(64bit) for package: glib-networking-2.56.1-1.el7.x86_64\n--> Processing Dependency: libgnutls.so.28(GNUTLS_1_4)(64bit) for package: glib-networking-2.56.1-1.el7.x86_64\n--> Processing Dependency: gsettings-desktop-schemas for package: glib-networking-2.56.1-1.el7.x86_64\n--> Processing Dependency: libproxy.so.1()(64bit) for package: glib-networking-2.56.1-1.el7.x86_64\n--> Processing Dependency: libgnutls.so.28()(64bit) for package: glib-networking-2.56.1-1.el7.x86_64\n---> Package json-glib.x86_64 0:1.4.2-2.el7 will be installed\n--> Running transaction check\n---> Package gnutls.x86_64 0:3.3.29-9.el7_6 will be installed\n--> Processing Dependency: trousers >= 0.3.11.2 for package: gnutls-3.3.29-9.el7_6.x86_64\n--> Processing Dependency: libnettle.so.4()(64bit) for package: gnutls-3.3.29-9.el7_6.x86_64\n--> Processing Dependency: libhogweed.so.2()(64bit) for package: gnutls-3.3.29-9.el7_6.x86_64\n---> Package gsettings-desktop-schemas.x86_64 0:3.28.0-3.el7 will be installed\n---> Package libproxy.x86_64 0:0.4.11-11.el7 will be installed\n--> Processing Dependency: libmodman.so.1()(64bit) for package: libproxy-0.4.11-11.el7.x86_64\n--> Running transaction check\n---> Package libmodman.x86_64 0:2.0.1-8.el7 will be installed\n---> Package nettle.x86_64 0:2.7.1-9.el7_9 will be installed\n---> Package trousers.x86_64 0:0.3.14-2.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n cockpit-system noarch 195.12-1.el7.centos extras 1.7 M\n cockpit-ws x86_64 195.12-1.el7.centos extras 808 k\nInstalling for dependencies:\n cockpit-bridge x86_64 195.12-1.el7.centos extras 555 k\n glib-networking x86_64 2.56.1-1.el7 base 145 k\n gnutls x86_64 3.3.29-9.el7_6 base 680 k\n gsettings-desktop-schemas x86_64 3.28.0-3.el7 base 606 k\n json-glib x86_64 1.4.2-2.el7 base 134 k\n libmodman x86_64 2.0.1-8.el7 base 28 k\n libproxy x86_64 0.4.11-11.el7 base 64 k\n nettle x86_64 2.7.1-9.el7_9 updates 328 k\n trousers x86_64 0.3.14-2.el7 base 289 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+9 Dependent packages)\n\nTotal download size: 5.2 M\nInstalled size: 13 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 2.7 MB/s | 5.2 MB 00:01 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : json-glib-1.4.2-2.el7.x86_64 1/11 \n Installing : libmodman-2.0.1-8.el7.x86_64 2/11 \n Installing : libproxy-0.4.11-11.el7.x86_64 3/11 \n Installing : gsettings-desktop-schemas-3.28.0-3.el7.x86_64 4/11 \n Installing : nettle-2.7.1-9.el7_9.x86_64 5/11 \n Installing : trousers-0.3.14-2.el7.x86_64 6/11 \n Installing : gnutls-3.3.29-9.el7_6.x86_64 7/11 \n Installing : glib-networking-2.56.1-1.el7.x86_64 8/11 \n Installing : cockpit-bridge-195.12-1.el7.centos.x86_64 9/11 \n Installing : cockpit-system-195.12-1.el7.centos.noarch 10/11 \n Installing : cockpit-ws-195.12-1.el7.centos.x86_64 11/11 \n Verifying : trousers-0.3.14-2.el7.x86_64 1/11 \n Verifying : nettle-2.7.1-9.el7_9.x86_64 2/11 \n Verifying : gsettings-desktop-schemas-3.28.0-3.el7.x86_64 3/11 \n Verifying : cockpit-ws-195.12-1.el7.centos.x86_64 4/11 \n Verifying : cockpit-system-195.12-1.el7.centos.noarch 5/11 \n Verifying : cockpit-bridge-195.12-1.el7.centos.x86_64 6/11 \n Verifying : libmodman-2.0.1-8.el7.x86_64 7/11 \n Verifying : json-glib-1.4.2-2.el7.x86_64 8/11 \n Verifying : gnutls-3.3.29-9.el7_6.x86_64 9/11 \n Verifying : glib-networking-2.56.1-1.el7.x86_64 10/11 \n Verifying : libproxy-0.4.11-11.el7.x86_64 11/11 \n\nInstalled:\n cockpit-system.noarch 0:195.12-1.el7.centos \n cockpit-ws.x86_64 0:195.12-1.el7.centos \n\nDependency Installed:\n cockpit-bridge.x86_64 0:195.12-1.el7.centos \n glib-networking.x86_64 0:2.56.1-1.el7 \n gnutls.x86_64 0:3.3.29-9.el7_6 \n gsettings-desktop-schemas.x86_64 0:3.28.0-3.el7 \n json-glib.x86_64 0:1.4.2-2.el7 \n libmodman.x86_64 0:2.0.1-8.el7 \n libproxy.x86_64 0:0.4.11-11.el7 \n nettle.x86_64 0:2.7.1-9.el7_9 \n trousers.x86_64 0:0.3.14-2.el7 \n\nComplete!\n" ] } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled] *** changed: [sut] => { "changed": true, "enabled": true, "name": "cockpit.socket", "state": "started", "status": { "Accept": "no", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "128", "Before": "cockpit-motd.service cockpit.service sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "Broadcast": "no", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Cockpit Web Service Socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "Documentation": "man:cockpit-ws(8)", "ExecStartPost": "{ path=/bin/ln ; argv[]=/bin/ln -snf active.motd /run/cockpit/motd ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStopPost": "{ path=/bin/ln ; argv[]=/bin/ln -snf /usr/share/cockpit/motd/inactive.motd /run/cockpit/motd ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FragmentPath": "/usr/lib/systemd/system/cockpit.socket", "FreeBind": "no", "IOScheduling": "0", "IPTOS": "-1", "IPTTL": "-1", "Id": "cockpit.socket", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14312", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14312", "LimitSTACK": "18446744073709551615", "ListenStream": "[::]:9090", "LoadState": "loaded", "Mark": "-1", "MaxConnections": "64", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "NAccepted": "0", "NConnections": "0", "Names": "cockpit.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveOnStop": "no", "RequiredBy": "cockpit.service", "Requires": "sysinit.target system.slice", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StopWhenUnneeded": "no", "SubState": "dead", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "Triggers": "cockpit.service", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "Wants": "cockpit-motd.service" } } TASK [linux-system-roles.cockpit : Create cockpit.conf configuration file] ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY [Generate local certmonger certificate] *********************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [Allow certmonger to write into Cockpit's certificate directory] ********** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/cockpit/ws-certs.d/", "secontext": "system_u:object_r:cert_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Generate certificate with linux-system-roles.certificate] **************** TASK [linux-system-roles.certificate : Set version specific variables] ********* ok: [sut] => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/WORKDIR/dist-git-cockpit-test-ci-rhel7-extras-khD10v/tests/roles/linux-system-roles.certificate/vars/CentOS_7.yml" ], "changed": false } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** changed: [sut] => { "changed": true, "changes": { "installed": [ "python-pyasn1", "python-cryptography" ] }, "rc": 0, "results": [ "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed", "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-cryptography x86_64 1.7.2-2.el7 base 502 k\n python2-pyasn1 noarch 0.1.9-7.el7 base 100 k\nInstalling for dependencies:\n python-cffi x86_64 1.6.0-5.el7 base 218 k\n python-idna noarch 2.4-1.el7 base 94 k\n python-ply noarch 3.4-11.el7 base 123 k\n python-pycparser noarch 2.14-1.el7 base 104 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 5.8 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 1.6 MB/s | 1.1 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/6 \n Installing : python-ply-3.4-11.el7.noarch 2/6 \n Installing : python-pycparser-2.14-1.el7.noarch 3/6 \n Installing : python-cffi-1.6.0-5.el7.x86_64 4/6 \n Installing : python-idna-2.4-1.el7.noarch 5/6 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 6/6 \n Verifying : python-idna-2.4-1.el7.noarch 1/6 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/6 \n Verifying : python-ply-3.4-11.el7.noarch 3/6 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/6 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 5/6 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 6/6 \n\nInstalled:\n python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n python-cffi.x86_64 0:1.6.0-5.el7 python-idna.noarch 0:2.4-1.el7 \n python-ply.noarch 0:3.4-11.el7 python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "changes": { "installed": [ "certmonger" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package certmonger.x86_64 0:0.78.4-16.el7_9 will be installed\n--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: certmonger-0.78.4-16.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: certmonger-0.78.4-16.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_util.so.3()(64bit) for package: certmonger-0.78.4-16.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_client.so.3()(64bit) for package: certmonger-0.78.4-16.el7_9.x86_64\n--> Processing Dependency: libxmlrpc.so.3()(64bit) for package: certmonger-0.78.4-16.el7_9.x86_64\n--> Processing Dependency: libtevent.so.0()(64bit) for package: certmonger-0.78.4-16.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2()(64bit) for package: certmonger-0.78.4-16.el7_9.x86_64\n--> Running transaction check\n---> Package libtalloc.x86_64 0:2.1.16-1.el7 will be installed\n---> Package libtevent.x86_64 0:0.9.39-1.el7 will be installed\n---> Package xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n---> Package xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n certmonger x86_64 0.78.4-16.el7_9 updates 604 k\nInstalling for dependencies:\n libtalloc x86_64 2.1.16-1.el7 base 33 k\n libtevent x86_64 0.9.39-1.el7 base 41 k\n xmlrpc-c x86_64 1.32.5-1905.svn2451.el7 base 130 k\n xmlrpc-c-client x86_64 1.32.5-1905.svn2451.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+4 Dependent packages)\n\nTotal download size: 839 k\nInstalled size: 3.3 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 1.2 MB/s | 839 kB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtalloc-2.1.16-1.el7.x86_64 1/5 \n Installing : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 2/5 \n Installing : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 3/5 \n Installing : libtevent-0.9.39-1.el7.x86_64 4/5 \n Installing : certmonger-0.78.4-16.el7_9.x86_64 5/5 \n Verifying : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 1/5 \n Verifying : libtalloc-2.1.16-1.el7.x86_64 2/5 \n Verifying : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 3/5 \n Verifying : libtevent-0.9.39-1.el7.x86_64 4/5 \n Verifying : certmonger-0.78.4-16.el7_9.x86_64 5/5 \n\nInstalled:\n certmonger.x86_64 0:0.78.4-16.el7_9 \n\nDependency Installed:\n libtalloc.x86_64 0:2.1.16-1.el7 \n libtevent.x86_64 0:0.9.39-1.el7 \n xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 \n xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 \n\nComplete!\n" ] } TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.service basic.target network.target syslog.target system.slice systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; 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/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14312", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14312", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "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": "disabled", "UnitFileState": "disabled", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ changed: [sut] => (item={u'ca': u'local', u'group': u'cockpit-ws', u'name': u'monger-cockpit', u'dns': [u'localhost', u'www.example.com'], u'run_after': u'DEST=/etc/cockpit/ws-certs.d/monger-cockpit.cert\ncat /etc/pki/tls/certs/monger-cockpit.crt \\\n/etc/pki/tls/private/monger-cockpit.key > $DEST\nchmod 640 $DEST\nchown root:cockpit-ws $DEST\n'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "local", "dns": [ "localhost", "www.example.com" ], "group": "cockpit-ws", "name": "monger-cockpit", "run_after": "DEST=/etc/cockpit/ws-certs.d/monger-cockpit.cert\ncat /etc/pki/tls/certs/monger-cockpit.crt \\\n/etc/pki/tls/private/monger-cockpit.key > $DEST\nchmod 640 $DEST\nchown root:cockpit-ws $DEST\n" } } MSG: Certificate requested (new). Pre/Post run hooks updated. File attributes updated. PLAY [Validate installation] *************************************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [Get PEM of certmonger's local CA] **************************************** changed: [sut] => { "changed": true, "cmd": [ "openssl", "pkcs12", "-in", "/var/lib/certmonger/local/creds", "-out", "/var/lib/certmonger/local/ca.pem", "-nokeys", "-nodes", "-passin", "pass:" ], "delta": "0:00:00.086904", "end": "2021-11-10 14:01:46.164457", "rc": 0, "start": "2021-11-10 14:01:46.077553" } STDERR: MAC verified OK TASK [test - cockpit works with TLS and expected certificate] ****************** ok: [sut] => { "changed": false, "cmd": [ "curl", "--cacert", "/var/lib/certmonger/local/ca.pem", "https://localhost:9090" ], "delta": "0:00:00.251547", "end": "2021-11-10 14:01:46.600788", "rc": 0, "start": "2021-11-10 14:01:46.349241" } STDOUT: Loading...

STDERR: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 39036 0 39036 0 0 156k 0 --:--:-- --:--:-- --:--:-- 156k TASK [test - get certmonger tracking status] *********************************** ok: [sut] => { "changed": false, "cmd": [ "getcert", "list", "--tracking-only", "-f", "/etc/pki/tls/certs/monger-cockpit.crt" ], "delta": "0:00:00.053376", "end": "2021-11-10 14:01:46.895748", "rc": 0, "start": "2021-11-10 14:01:46.842372" } STDOUT: Number of certificates and requests being tracked: 1. Request ID '20211110140144': status: MONITORING stuck: no key pair storage: type=FILE,location='/etc/pki/tls/private/monger-cockpit.key' certificate: type=FILE,location='/etc/pki/tls/certs/monger-cockpit.crt' CA: local issuer: CN=19b47e4e-579e4f09-81693019-d0a19b75,CN=Local Signing Authority subject: CN=localhost expires: 2022-11-10 14:01:44 UTC dns: localhost,www.example.com key usage: digitalSignature,keyEncipherment eku: id-kp-serverAuth,id-kp-clientAuth pre-save command: post-save command: /etc/certmonger/post-scripts/monger-cockpit-59d1099.sh track: yes auto-renew: yes TASK [test - ensure certificate generation succeeded] ************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [test - clean up tracked certificate] ************************************* ok: [sut] => { "changed": false, "cmd": [ "getcert", "stop-tracking", "-f", "/etc/pki/tls/certs/monger-cockpit.crt" ], "delta": "0:00:00.039538", "end": "2021-11-10 14:01:47.218261", "rc": 0, "start": "2021-11-10 14:01:47.178723" } STDOUT: Request "20211110140144" removed. TASK [test - clean up generated certificate] *********************************** changed: [sut] => { "changed": true, "path": "/etc/pki/tls/certs/monger-cockpit.crt", "state": "absent" } TASK [test - clean up generated private key] *********************************** changed: [sut] => { "changed": true, "path": "/etc/pki/tls/private/monger-cockpit.key", "state": "absent" } TASK [test - clean up copied certificate] ************************************** changed: [sut] => { "changed": true, "path": "/etc/cockpit/ws-certs.d/monger-cockpit.cert", "state": "absent" } TASK [test - generic cleanup] ************************************************** included: /WORKDIR/dist-git-cockpit-test-ci-rhel7-extras-khD10v/tests/tasks/cleanup.yml for sut TASK [cleanup - packages] ****************************************************** changed: [sut] => { "changed": true, "changes": { "removed": [ "cockpit-bridge", "cockpit-ws" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nResolving Dependencies\n--> Running transaction check\n---> Package cockpit-bridge.x86_64 0:195.12-1.el7.centos will be erased\n--> Processing Dependency: cockpit-bridge >= 195.12-1.el7.centos for package: cockpit-system-195.12-1.el7.centos.noarch\n---> Package cockpit-ws.x86_64 0:195.12-1.el7.centos will be erased\n--> Running transaction check\n---> Package cockpit-system.noarch 0:195.12-1.el7.centos will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nRemoving:\n cockpit-bridge x86_64 195.12-1.el7.centos @extras 868 k\n cockpit-ws x86_64 195.12-1.el7.centos @extras 1.6 M\nRemoving for dependencies:\n cockpit-system noarch 195.12-1.el7.centos @extras 1.7 M\n\nTransaction Summary\n================================================================================\nRemove 2 Packages (+1 Dependent package)\n\nInstalled size: 4.1 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Erasing : cockpit-system-195.12-1.el7.centos.noarch 1/3 \n Erasing : cockpit-bridge-195.12-1.el7.centos.x86_64 2/3 \n Erasing : cockpit-ws-195.12-1.el7.centos.x86_64 3/3 \n Verifying : cockpit-ws-195.12-1.el7.centos.x86_64 1/3 \n Verifying : cockpit-system-195.12-1.el7.centos.noarch 2/3 \n Verifying : cockpit-bridge-195.12-1.el7.centos.x86_64 3/3 \n\nRemoved:\n cockpit-bridge.x86_64 0:195.12-1.el7.centos \n cockpit-ws.x86_64 0:195.12-1.el7.centos \n\nDependency Removed:\n cockpit-system.noarch 0:195.12-1.el7.centos \n\nComplete!\n" ] } TASK [cleanup - config file] *************************************************** ok: [sut] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } PLAY RECAP ********************************************************************* 127.0.0.1 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 sut : ok=27 changed=14 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 ---^---^---^---^---^--- # 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 ---^---^---^---^---^---