Executing task: devfile: Molecule: Run Scenario for Backup Role INFO default scenario test matrix: syntax, create, converge, idempotence, verify INFO Performing prerun with role_name_check=0... INFO Running ansible-galaxy collection install -v -r requirements.yml INFO Set ANSIBLE_LIBRARY=/home/runner/.cache/ansible-compat/b26d1e/modules:/home/runner/.ansible/plugins/modules:/usr/share/ansible/plugins/modules INFO Set ANSIBLE_ROLES_PATH=/home/runner/.cache/ansible-compat/b26d1e/roles:/home/runner/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles INFO Using /home/runner/.cache/ansible-compat/b26d1e/roles/demo.backup_file symlink to current repository in order to enable Ansible to find the role using its expected full name. INFO Running default > syntax playbook: /projects/ansible-devspaces-demo/roles/backup_file/molecule/default/converge.yml INFO Running default > create PLAY [Create] ****************************************************************** TASK [Create molecule instance as containers] ********************************** ok: [localhost] => (item={'image': 'registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad', 'name': 'molecule-ubi8-init-1', 'workingDir': '/tmp'}) TASK [Debug molecule creations] ************************************************ ok: [localhost] => { "server": { "changed": false, "msg": "All items completed", "results": [ { "ansible_loop_var": "item", "changed": false, "duration": 0, "failed": false, "invocation": { "module_args": { "api_key": null, "api_version": "v1", "append_hash": false, "apply": false, "ca_cert": null, "client_cert": null, "client_key": null, "context": null, "continue_on_error": false, "definition": { "apiVersion": "v1", "kind": "Pod", "metadata": { "labels": { "app": "molecule-test-container" }, "name": "molecule-ubi8-init-1", "namespace": "admin-devspaces" }, "spec": { "containers": [ { "capabilities": [ "SYS_ADMIN" ], "command": [ "/usr/sbin/init" ], "image": "registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad", "name": "molecule", "pre_build_image": true, "tmpfs": [ "/run", "/tmp" ], "volumes": [ "/sys/fs/cgroup:/sys/fs/cgroup:ro" ], "workingDir": "/tmp" } ] } }, "delete_options": null, "force": false, "host": null, "impersonate_groups": null, "impersonate_user": null, "kind": null, "kubeconfig": "/home/runner/.kube/config", "merge_type": null, "name": null, "namespace": null, "no_proxy": null, "password": null, "persist_config": null, "proxy": null, "proxy_headers": null, "resource_definition": { "apiVersion": "v1", "kind": "Pod", "metadata": { "labels": { "app": "molecule-test-container" }, "name": "molecule-ubi8-init-1", "namespace": "admin-devspaces" }, "spec": { "containers": [ { "capabilities": [ "SYS_ADMIN" ], "command": [ "/usr/sbin/init" ], "image": "registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad", "name": "molecule", "pre_build_image": true, "tmpfs": [ "/run", "/tmp" ], "volumes": [ "/sys/fs/cgroup:/sys/fs/cgroup:ro" ], "workingDir": "/tmp" } ] } }, "src": null, "state": "present", "template": null, "username": null, "validate": null, "validate_certs": null, "wait": true, "wait_condition": null, "wait_sleep": 5, "wait_timeout": 120 } }, "item": { "image": "registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad", "name": "molecule-ubi8-init-1", "workingDir": "/tmp" }, "method": "update", "result": { "apiVersion": "v1", "kind": "Pod", "metadata": { "annotations": { "k8s.v1.cni.cncf.io/network-status": "[{\n \"name\": \"openshift-sdn\",\n \"interface\": \"eth0\",\n \"ips\": [\n \"10.131.0.48\"\n ],\n \"default\": true,\n \"dns\": {}\n}]", "openshift.io/scc": "anyuid" }, "creationTimestamp": "2023-06-29T14:33:06Z", "labels": { "app": "molecule-test-container" }, "managedFields": [ { "apiVersion": "v1", "fieldsType": "FieldsV1", "fieldsV1": { "f:metadata": { "f:labels": { ".": {}, "f:app": {} } }, "f:spec": { "f:containers": { "k:{\"name\":\"molecule\"}": { ".": {}, "f:command": {}, "f:image": {}, "f:imagePullPolicy": {}, "f:name": {}, "f:resources": {}, "f:terminationMessagePath": {}, "f:terminationMessagePolicy": {}, "f:workingDir": {} } }, "f:dnsPolicy": {}, "f:enableServiceLinks": {}, "f:restartPolicy": {}, "f:schedulerName": {}, "f:securityContext": {}, "f:terminationGracePeriodSeconds": {} } }, "manager": "OpenAPI-Generator", "operation": "Update", "time": "2023-06-29T14:33:06Z" }, { "apiVersion": "v1", "fieldsType": "FieldsV1", "fieldsV1": { "f:metadata": { "f:annotations": { "f:k8s.v1.cni.cncf.io/network-status": {} } } }, "manager": "multus", "operation": "Update", "subresource": "status", "time": "2023-06-29T14:33:08Z" }, { "apiVersion": "v1", "fieldsType": "FieldsV1", "fieldsV1": { "f:status": { "f:conditions": { "k:{\"type\":\"ContainersReady\"}": { ".": {}, "f:lastProbeTime": {}, "f:lastTransitionTime": {}, "f:status": {}, "f:type": {} }, "k:{\"type\":\"Initialized\"}": { ".": {}, "f:lastProbeTime": {}, "f:lastTransitionTime": {}, "f:status": {}, "f:type": {} }, "k:{\"type\":\"Ready\"}": { ".": {}, "f:lastProbeTime": {}, "f:lastTransitionTime": {}, "f:status": {}, "f:type": {} } }, "f:containerStatuses": {}, "f:hostIP": {}, "f:phase": {}, "f:podIP": {}, "f:podIPs": { ".": {}, "k:{\"ip\":\"10.131.0.48\"}": { ".": {}, "f:ip": {} } }, "f:startTime": {} } }, "manager": "kubelet", "operation": "Update", "subresource": "status", "time": "2023-06-29T14:33:09Z" } ], "name": "molecule-ubi8-init-1", "namespace": "admin-devspaces", "resourceVersion": "21198188", "uid": "bbb82452-cc95-44fd-9a84-c03139be1bdc" }, "spec": { "containers": [ { "command": [ "/usr/sbin/init" ], "image": "registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad", "imagePullPolicy": "IfNotPresent", "name": "molecule", "resources": {}, "securityContext": { "capabilities": { "drop": [ "MKNOD" ] } }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", "name": "kube-api-access-gl7qm", "readOnly": true } ], "workingDir": "/tmp" } ], "dnsPolicy": "ClusterFirst", "enableServiceLinks": true, "imagePullSecrets": [ { "name": "default-dockercfg-wns94" } ], "nodeName": "ip-10-0-75-86.us-east-2.compute.internal", "preemptionPolicy": "PreemptLowerPriority", "priority": 0, "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": { "seLinuxOptions": { "level": "s0:c26,c25" } }, "serviceAccount": "default", "serviceAccountName": "default", "terminationGracePeriodSeconds": 30, "tolerations": [ { "effect": "NoExecute", "key": "node.kubernetes.io/not-ready", "operator": "Exists", "tolerationSeconds": 300 }, { "effect": "NoExecute", "key": "node.kubernetes.io/unreachable", "operator": "Exists", "tolerationSeconds": 300 } ], "volumes": [ { "name": "kube-api-access-gl7qm", "projected": { "defaultMode": 420, "sources": [ { "serviceAccountToken": { "expirationSeconds": 3607, "path": "token" } }, { "configMap": { "items": [ { "key": "ca.crt", "path": "ca.crt" } ], "name": "kube-root-ca.crt" } }, { "downwardAPI": { "items": [ { "fieldRef": { "apiVersion": "v1", "fieldPath": "metadata.namespace" }, "path": "namespace" } ] } }, { "configMap": { "items": [ { "key": "service-ca.crt", "path": "service-ca.crt" } ], "name": "openshift-service-ca.crt" } } ] } } ] }, "status": { "conditions": [ { "lastProbeTime": null, "lastTransitionTime": "2023-06-29T14:33:06Z", "status": "True", "type": "Initialized" }, { "lastProbeTime": null, "lastTransitionTime": "2023-06-29T14:33:09Z", "status": "True", "type": "Ready" }, { "lastProbeTime": null, "lastTransitionTime": "2023-06-29T14:33:09Z", "status": "True", "type": "ContainersReady" }, { "lastProbeTime": null, "lastTransitionTime": "2023-06-29T14:33:06Z", "status": "True", "type": "PodScheduled" } ], "containerStatuses": [ { "containerID": "cri-o://b398dd076e3fa9fb3077fa43dc24cb69463195be4d116239e26bd0c84cee49ef", "image": "registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad", "imageID": "registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad", "lastState": {}, "name": "molecule", "ready": true, "restartCount": 0, "started": true, "state": { "running": { "startedAt": "2023-06-29T14:33:08Z" } } } ], "hostIP": "10.0.75.86", "phase": "Running", "podIP": "10.131.0.48", "podIPs": [ { "ip": "10.131.0.48" } ], "qosClass": "BestEffort", "startTime": "2023-06-29T14:33:06Z" } } } ], "skipped": false } } TASK [Populate instance config dict] ******************************************* skipping: [localhost] => (item={'changed': False, 'result': {'kind': 'Pod', 'apiVersion': 'v1', 'metadata': {'name': 'molecule-ubi8-init-1', 'namespace': 'admin-devspaces', 'uid': 'bbb82452-cc95-44fd-9a84-c03139be1bdc', 'resourceVersion': '21198188', 'creationTimestamp': '2023-06-29T14:33:06Z', 'labels': {'app': 'molecule-test-container'}, 'annotations': {'k8s.v1.cni.cncf.io/network-status': '[{\n "name": "openshift-sdn",\n "interface": "eth0",\n "ips": [\n "10.131.0.48"\n ],\n "default": true,\n "dns": {}\n}]', 'openshift.io/scc': 'anyuid'}, 'managedFields': [{'manager': 'OpenAPI-Generator', 'operation': 'Update', 'apiVersion': 'v1', 'time': '2023-06-29T14:33:06Z', 'fieldsType': 'FieldsV1', 'fieldsV1': {'f:metadata': {'f:labels': {'.': {}, 'f:app': {}}}, 'f:spec': {'f:containers': {'k:{"name":"molecule"}': {'.': {}, 'f:command': {}, 'f:image': {}, 'f:imagePullPolicy': {}, 'f:name': {}, 'f:resources': {}, 'f:terminationMessagePath': {}, 'f:terminationMessagePolicy': {}, 'f:workingDir': {}}}, 'f:dnsPolicy': {}, 'f:enableServiceLinks': {}, 'f:restartPolicy': {}, 'f:schedulerName': {}, 'f:securityContext': {}, 'f:terminationGracePeriodSeconds': {}}}}, {'manager': 'multus', 'operation': 'Update', 'apiVersion': 'v1', 'time': '2023-06-29T14:33:08Z', 'fieldsType': 'FieldsV1', 'fieldsV1': {'f:metadata': {'f:annotations': {'f:k8s.v1.cni.cncf.io/network-status': {}}}}, 'subresource': 'status'}, {'manager': 'kubelet', 'operation': 'Update', 'apiVersion': 'v1', 'time': '2023-06-29T14:33:09Z', 'fieldsType': 'FieldsV1', 'fieldsV1': {'f:status': {'f:conditions': {'k:{"type":"ContainersReady"}': {'.': {}, 'f:lastProbeTime': {}, 'f:lastTransitionTime': {}, 'f:status': {}, 'f:type': {}}, 'k:{"type":"Initialized"}': {'.': {}, 'f:lastProbeTime': {}, 'f:lastTransitionTime': {}, 'f:status': {}, 'f:type': {}}, 'k:{"type":"Ready"}': {'.': {}, 'f:lastProbeTime': {}, 'f:lastTransitionTime': {}, 'f:status': {}, 'f:type': {}}}, 'f:containerStatuses': {}, 'f:hostIP': {}, 'f:phase': {}, 'f:podIP': {}, 'f:podIPs': {'.': {}, 'k:{"ip":"10.131.0.48"}': {'.': {}, 'f:ip': {}}}, 'f:startTime': {}}}, 'subresource': 'status'}]}, 'spec': {'volumes': [{'name': 'kube-api-access-gl7qm', 'projected': {'sources': [{'serviceAccountToken': {'expirationSeconds': 3607, 'path': 'token'}}, {'configMap': {'name': 'kube-root-ca.crt', 'items': [{'key': 'ca.crt', 'path': 'ca.crt'}]}}, {'downwardAPI': {'items': [{'path': 'namespace', 'fieldRef': {'apiVersion': 'v1', 'fieldPath': 'metadata.namespace'}}]}}, {'configMap': {'name': 'openshift-service-ca.crt', 'items': [{'key': 'service-ca.crt', 'path': 'service-ca.crt'}]}}], 'defaultMode': 420}}], 'containers': [{'name': 'molecule', 'image': 'registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad', 'command': ['/usr/sbin/init'], 'workingDir': '/tmp', 'resources': {}, 'volumeMounts': [{'name': 'kube-api-access-gl7qm', 'readOnly': True, 'mountPath': '/var/run/secrets/kubernetes.io/serviceaccount'}], 'terminationMessagePath': '/dev/termination-log', 'terminationMessagePolicy': 'File', 'imagePullPolicy': 'IfNotPresent', 'securityContext': {'capabilities': {'drop': ['MKNOD']}}}], 'restartPolicy': 'Always', 'terminationGracePeriodSeconds': 30, 'dnsPolicy': 'ClusterFirst', 'serviceAccountName': 'default', 'serviceAccount': 'default', 'nodeName': 'ip-10-0-75-86.us-east-2.compute.internal', 'securityContext': {'seLinuxOptions': {'level': 's0:c26,c25'}}, 'imagePullSecrets': [{'name': 'default-dockercfg-wns94'}], 'schedulerName': 'default-scheduler', 'tolerations': [{'key': 'node.kubernetes.io/not-ready', 'operator': 'Exists', 'effect': 'NoExecute', 'tolerationSeconds': 300}, {'key': 'node.kubernetes.io/unreachable', 'operator': 'Exists', 'effect': 'NoExecute', 'tolerationSeconds': 300}], 'priority': 0, 'enableServiceLinks': True, 'preemptionPolicy': 'PreemptLowerPriority'}, 'status': {'phase': 'Running', 'conditions': [{'type': 'Initialized', 'status': 'True', 'lastProbeTime': None, 'lastTransitionTime': '2023-06-29T14:33:06Z'}, {'type': 'Ready', 'status': 'True', 'lastProbeTime': None, 'lastTransitionTime': '2023-06-29T14:33:09Z'}, {'type': 'ContainersReady', 'status': 'True', 'lastProbeTime': None, 'lastTransitionTime': '2023-06-29T14:33:09Z'}, {'type': 'PodScheduled', 'status': 'True', 'lastProbeTime': None, 'lastTransitionTime': '2023-06-29T14:33:06Z'}], 'hostIP': '10.0.75.86', 'podIP': '10.131.0.48', 'podIPs': [{'ip': '10.131.0.48'}], 'startTime': '2023-06-29T14:33:06Z', 'containerStatuses': [{'name': 'molecule', 'state': {'running': {'startedAt': '2023-06-29T14:33:08Z'}}, 'lastState': {}, 'ready': True, 'restartCount': 0, 'image': 'registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad', 'imageID': 'registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad', 'containerID': 'cri-o://b398dd076e3fa9fb3077fa43dc24cb69463195be4d116239e26bd0c84cee49ef', 'started': True}], 'qosClass': 'BestEffort'}}, 'method': 'update', 'duration': 0, 'invocation': {'module_args': {'kubeconfig': '/home/runner/.kube/config', 'state': 'present', 'definition': {'apiVersion': 'v1', 'kind': 'Pod', 'metadata': {'name': 'molecule-ubi8-init-1', 'namespace': 'admin-devspaces', 'labels': {'app': 'molecule-test-container'}}, 'spec': {'containers': [{'name': 'molecule', 'image': 'registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad', 'workingDir': '/tmp', 'tmpfs': ['/run', '/tmp'], 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro'], 'capabilities': ['SYS_ADMIN'], 'command': ['/usr/sbin/init'], 'pre_build_image': True}]}}, 'wait': True, 'resource_definition': {'apiVersion': 'v1', 'kind': 'Pod', 'metadata': {'name': 'molecule-ubi8-init-1', 'namespace': 'admin-devspaces', 'labels': {'app': 'molecule-test-container'}}, 'spec': {'containers': [{'name': 'molecule', 'image': 'registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad', 'workingDir': '/tmp', 'tmpfs': ['/run', '/tmp'], 'volumes': ['/sys/fs/cgroup:/sys/fs/cgroup:ro'], 'capabilities': ['SYS_ADMIN'], 'command': ['/usr/sbin/init'], 'pre_build_image': True}]}}, 'api_version': 'v1', 'wait_sleep': 5, 'wait_timeout': 120, 'append_hash': False, 'apply': False, 'continue_on_error': False, 'force': False, 'kind': None, 'name': None, 'namespace': None, 'src': None, 'context': None, 'host': None, 'api_key': None, 'username': None, 'password': None, 'validate_certs': None, 'ca_cert': None, 'client_cert': None, 'client_key': None, 'proxy': None, 'no_proxy': None, 'proxy_headers': None, 'persist_config': None, 'impersonate_user': None, 'impersonate_groups': None, 'wait_condition': None, 'merge_type': None, 'validate': None, 'template': None, 'delete_options': None}}, 'failed': False, 'item': {'image': 'registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad', 'name': 'molecule-ubi8-init-1', 'workingDir': '/tmp'}, 'ansible_loop_var': 'item'}) skipping: [localhost] TASK [Convert instance config dict to a list] ********************************** skipping: [localhost] TASK [Dump instance config] **************************************************** skipping: [localhost] PLAY RECAP ********************************************************************* localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 INFO Running default > converge PLAY [Converge] **************************************************************** TASK [Gathering Facts] ********************************************************* ok: [molecule-ubi8-init-1] TASK [Include backup_file] ***************************************************** TASK [backup_file : Ping the host] ********************************************* ok: [molecule-ubi8-init-1] PLAY RECAP ********************************************************************* molecule-ubi8-init-1 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 INFO Running default > idempotence PLAY [Converge] **************************************************************** TASK [Gathering Facts] ********************************************************* ok: [molecule-ubi8-init-1] TASK [Include backup_file] ***************************************************** TASK [backup_file : Ping the host] ********************************************* ok: [molecule-ubi8-init-1] PLAY RECAP ********************************************************************* molecule-ubi8-init-1 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 INFO Idempotence completed successfully. INFO Running default > verify INFO Running Ansible Verifier PLAY [Verify] ****************************************************************** TASK [Example assertion] ******************************************************* ok: [molecule-ubi8-init-1] => { "changed": false, "msg": "All assertions passed" } PLAY RECAP ********************************************************************* molecule-ubi8-init-1 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 INFO Verifier completed successfully. * Terminal will be reused by tasks, press any key to close it. * Executing task: devfile: Molecule: Validate Backup File Role INFO default scenario test matrix: verify INFO Performing prerun with role_name_check=0... INFO Running ansible-galaxy collection install -v -r requirements.yml INFO Set ANSIBLE_LIBRARY=/home/runner/.cache/ansible-compat/b26d1e/modules:/home/runner/.ansible/plugins/modules:/usr/share/ansible/plugins/modules INFO Set ANSIBLE_ROLES_PATH=/home/runner/.cache/ansible-compat/b26d1e/roles:/home/runner/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles INFO Using /home/runner/.cache/ansible-compat/b26d1e/roles/demo.backup_file symlink to current repository in order to enable Ansible to find the role using its expected full name. INFO Running default > verify INFO Running Ansible Verifier PLAY [Verify] ****************************************************************** TASK [Example assertion] ******************************************************* ok: [molecule-ubi8-init-1] => { "changed": false, "msg": "All assertions passed" } PLAY RECAP ********************************************************************* molecule-ubi8-init-1 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 INFO Verifier completed successfully. * Terminal will be reused by tasks, press any key to close it. * Executing task: devfile: oc-install [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' PLAY [Create] ****************************************************************** TASK [Store user ENVs] ********************************************************* ok: [localhost] TASK [Create local bin directory] ********************************************** ok: [localhost] TASK [Download oc binary from OCP downloads svc endpoint] ********************** ok: [localhost] TASK [Add another bin dir to system-wide $PATH.] ******************************* ok: [localhost] TASK [Ensure python dependencies are installed] ******************************** ok: [localhost] PLAY RECAP ********************************************************************* localhost : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 * Terminal will be reused by tasks, press any key to close it.