|
| 1 | +apiVersion: test.openstack.org/v1beta1 |
| 2 | +kind: AnsibleTest |
| 3 | +metadata: |
| 4 | + name: ansible-fvt |
| 5 | + namespace: openstack |
| 6 | +spec: |
| 7 | + #ansibleGitRepo: 'http://github.com/infrawatch/feature-verification-tests' |
| 8 | + #ansibleGitRepo: 'http://github.com/elfiesmelfie/feature-verification-tests" -b "test_operator_changes' |
| 9 | + # I pushed test_operator_changes to master |
| 10 | + ansibleGitRepo: 'http://github.com/elfiesmelfie/feature-verification-tests' |
| 11 | + debug: true |
| 12 | + containerImage: quay.io/podified-antelope-centos9/openstack-ansible-tests:current-podified |
| 13 | + #ansiblePlaybookPath: ci/run_verify_metrics_osp18.yml |
| 14 | + storageClass: crc-csi-hostpath-provisioner |
| 15 | + computeSSHKeySecretName: dataplane-ansible-ssh-private-key-secret |
| 16 | + workloadSSHKeySecretName: dataplane-ansible-ssh-private-key-secret |
| 17 | + # ansibleExtraVars: "ANSIBLE_ROLES_PATH=roles" |
| 18 | + ansibleVarFiles: | |
| 19 | + cifmw_openshift_kubeconfig: ~/.kube.config |
| 20 | + cifmw_path: "{{ ansible_env.PATH }}:/var/lib/ansible/bin" |
| 21 | + cifmw_openshift_api: api.crc.testing:6443 |
| 22 | + cifmw_openshift_password: '12345678' |
| 23 | + cifmw_openshift_user: kubeadmin |
| 24 | + openstack_cmd: "oc -n openstack rsh openstackclient openstack" |
| 25 | + telemetry_verify_metrics_metric_sources_to_test: |
| 26 | + #- ceilometer_compute_agent |
| 27 | + #- ceilometer_central_agent |
| 28 | + #- ksm |
| 29 | + - node_exporter |
| 30 | + - podman_exporter |
| 31 | + #- rabbitmq |
| 32 | + #- kepler |
| 33 | + #- openstack_network_exporter |
| 34 | + #- ceilometer_prom_exporter |
| 35 | + #- mariadb |
| 36 | + #ansibleCollections: "git+https://github.com/infrawatch/feature-verification-tests.git,master" |
| 37 | + #ansibleCollections: 'git+https://github.com/elfiesmelfie/feature-verification-tests.git,test_operator_changes" "git+https://github.com/openstack-k8s-operators/ci-framework' |
| 38 | + #ansibleCollections: 'git+https://github.com/elfiesmelfie/feature-verification-tests.git,test_operator_changes' |
| 39 | + ansibleCollections: 'git+https://github.com/elfiesmelfie/feature-verification-tests.git,master' |
| 40 | + # allow privilige escalation so ci_setup/tasks/packages can be run, even if we don't install any packages. |
| 41 | + privileged: true |
| 42 | + extraMounts: |
| 43 | + - extraVol: |
| 44 | + - mounts: |
| 45 | + - name: test-operator-logs |
| 46 | + mountPath: /var/lib/ansible/ci-framework-data/tests/feature-verification-tests |
| 47 | + volumes: [] |
| 48 | + ansibleInventory: | |
| 49 | + localhost ansible_connection=local ansible_python_interpreter=python3 |
| 50 | + compute-0 ansible_host=192.168.122.100 ansible_user=root ansible_ssh_private_key_file=/var/lib/ansible/.ssh/compute_id |
| 51 | + compute-1 ansible_host=192.168.122.101 ansible_user=root ansible_ssh_private_key_file=/var/lib/ansible/.ssh/compute_id |
| 52 | + [compute] |
| 53 | + compute-0 |
| 54 | + compute-1 |
| 55 | + [controller] |
| 56 | + localhost |
| 57 | + [local] |
| 58 | + localhost |
| 59 | + workflow: |
| 60 | + - stepName: verify-metrics |
| 61 | + ansiblePlaybookPath: ci/run_verify_metrics_osp18.yml |
| 62 | + - stepName: report-results |
| 63 | + ansiblePlaybookPath: ci/report_result.yml |
| 64 | + #FIELDS: |
| 65 | + # SELinuxLevel <string> |
| 66 | + # A SELinuxLevel that should be used for test pods spawned by the test |
| 67 | + # operator. |
| 68 | + # |
| 69 | + # ansibleCollections <string> |
| 70 | + # AnsibleCollections - extra ansible collections to instal in additionn to the |
| 71 | + # ones exist in the requirements.yaml |
| 72 | + # |
| 73 | + # ansibleExtraVars <string> |
| 74 | + # AnsibleExtraVars - string to pass parameters to ansible using |
| 75 | + # |
| 76 | + # ansibleGitRepo <string> -required- |
| 77 | + # AnsibleGitRepo - git repo to clone into container |
| 78 | + # ansibleInventory <string> |
| 79 | + # AnsibleInventory - string that contains the inventory file content |
| 80 | + # |
| 81 | + # ansiblePlaybookPath <string> -required- |
| 82 | + # AnsiblePlaybookPath - path to ansible playbook |
| 83 | + # |
| 84 | + # ansibleVarFiles <string> |
| 85 | + # AnsibleVarFiles - interface to create ansible var files Those get added to |
| 86 | + # the |
| 87 | + # |
| 88 | + # backoffLimit <integer> |
| 89 | + # BackoffLimit allows to define the maximum number of retried executions |
| 90 | + # (defaults to 0). |
| 91 | + # |
| 92 | + # computeSSHKeySecretName <string> |
| 93 | + # ComputeSSHKeySecretName is the name of the k8s secret that contains an ssh |
| 94 | + # key for computes. |
| 95 | + # The key is mounted to ~/.ssh/id_ecdsa in the ansible pod |
| 96 | + # containerImage <string> |
| 97 | + # A URL of a container image that should be used by the test-operator for |
| 98 | + # tests execution. |
| 99 | + # |
| 100 | + # debug <boolean> |
| 101 | + # Run ansible playbook with -vvvv |
| 102 | + # extraConfigmapsMounts <[]Object> |
| 103 | + # Extra configmaps for mounting inside the pod |
| 104 | + # |
| 105 | + # extraMounts <[]Object> |
| 106 | + # ExtraMounts containing conf files, credentials and storage volumes |
| 107 | + # |
| 108 | + # nodeSelector <map[string]string> |
| 109 | + # This value contains a nodeSelector value that is applied to test pods |
| 110 | + # spawned by the test operator. |
| 111 | + # |
| 112 | + # openStackConfigMap <string> |
| 113 | + # OpenStackConfigMap is the name of the ConfigMap containing the clouds.yaml |
| 114 | + # |
| 115 | + # openStackConfigSecret <string> |
| 116 | + # OpenStackConfigSecret is the name of the Secret containing the secure.yaml |
| 117 | + # |
| 118 | + # privileged <boolean> |
| 119 | + # Use with caution! This parameter specifies whether test-operator should |
| 120 | + # spawn |
| 121 | + # test pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: |
| 122 | + # false, |
| 123 | + # runAsNonRoot: false, automountServiceAccountToken: true, and the default |
| 124 | + # capabilities on top of capabilities that are usually needed by the test |
| 125 | + # pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is |
| 126 | + # needed for certain test-operator functionalities to work properly (e.g.: |
| 127 | + # extraRPMs in Tempest CR, or certain set of tobiko tests). |
| 128 | + # |
| 129 | + # resources <Object> |
| 130 | + # The desired amount of resources that should be assigned to each test pod |
| 131 | + # spawned using the AnsibleTest CR. |
| 132 | + # https://pkg.go.dev/k8s.io/api/core/v1#ResourceRequirements |
| 133 | + # |
| 134 | + # storageClass <string> |
| 135 | + # StorageClass used to create any test-operator related PVCs. |
| 136 | + # |
| 137 | + # tolerations <[]Object> |
| 138 | + # This value contains a toleration that is applied to pods spawned by the |
| 139 | + # test pods that are spawned by the test-operator. |
| 140 | + # |
| 141 | + # workflow <[]Object> |
| 142 | + # A parameter that contains a workflow definition. |
| 143 | + # |
| 144 | + # workloadSSHKeySecretName <string> |
| 145 | + # WorkloadSSHKeySecretName is the name of the k8s secret that contains an ssh |
| 146 | + # key for the ansible workload. |
| 147 | + # The key is mounted to ~/test_keypair.key in the ansible pod |
0 commit comments