diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-01-13 13:23:19 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-01-13 13:23:19 +0100 |
commit | 9c14b7d8aed7c055a9ef3495f5e0fe5448202631 (patch) | |
tree | b3e4f33136979c9b87e0ead64ddee4a46c9a678d /ansible | |
parent | cb8f5b24417812e9692d1378588e41a6ddc14db2 (diff) |
Add test scenario for unsafe volatile storage
This tests rke role with etcd storage configured on tmpfs.
Change-Id: I57feb705a38e87c1b2127294c3443d99cc2595aa
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-2259
Diffstat (limited to 'ansible')
l--------- | ansible/roles/rke/molecule/etcd_storage/group_vars | 1 | ||||
-rw-r--r-- | ansible/roles/rke/molecule/etcd_storage/molecule.yml | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/ansible/roles/rke/molecule/etcd_storage/group_vars b/ansible/roles/rke/molecule/etcd_storage/group_vars new file mode 120000 index 00000000..e04e088f --- /dev/null +++ b/ansible/roles/rke/molecule/etcd_storage/group_vars @@ -0,0 +1 @@ +../../../../group_vars/
\ No newline at end of file diff --git a/ansible/roles/rke/molecule/etcd_storage/molecule.yml b/ansible/roles/rke/molecule/etcd_storage/molecule.yml new file mode 100644 index 00000000..3c915284 --- /dev/null +++ b/ansible/roles/rke/molecule/etcd_storage/molecule.yml @@ -0,0 +1,74 @@ +--- +dependency: + name: galaxy +driver: + name: docker +lint: + name: yamllint +platforms: + - name: infrastructure-server + image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6} + pre_build_image: true + privileged: true + override_command: false + restart_policy: unless-stopped + volumes: + - /var/lib/kubelet + - /var/lib/docker + env: + container: docker + groups: + - infrastructure + - kubernetes-etcd + - kubernetes-control-plane + - kubernetes + networks: + - name: rke + purge_networks: true + + - name: kubernetes-node-1 + image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6} + pre_build_image: true + privileged: true + override_command: false + restart_policy: unless-stopped + env: + container: docker + volumes: + - /var/lib/kubelet + - /var/lib/docker + groups: + - kubernetes + - kubernetes-node + networks: + - name: rke + purge_networks: true + +provisioner: + name: ansible + env: + ANSIBLE_ROLES_PATH: ../../../../test/roles + ANSIBLE_LIBRARY: ../../../../library + inventory: + group_vars: + all: + rke_etcd: + enabled_custom_etcd_storage: false + storage_path: /var/lib/etcd-custom + storage_mountpoint: /var/lib/rancher/etcd-custom + enabled_unsafe_volatile_storage: true + tmpfs_size: 5G + playbooks: + prepare: ../default/prepare.yml + converge: ../default/playbook.yml + destroy: ../default/destroy.yml + options: + e: "app_data_path=/opt/onap" + lint: + name: ansible-lint +scenario: + name: etcd_storage +verifier: + name: testinfra + lint: + name: flake8 |