T-Systems solution for customer KPI monitoring for Open Telekom Cloud
This repository contains customer service monitoring test scenarios for Open Telekom Cloud
Infrastructure for test scenarios is built using Ansible.
Existing scripts were checked to be working with:
- Ansible 2.9 (Python 3.7)
- otcextensions 0.13.0
- openstacksdk 0.53.0 (installed via otcextensions)
Ansible can be installed via the following command:
pip install ansible
It is used openstack.cloud and opentelekomcloud.cloud ansible modules collections for building infrastructure. To use these collections firstly you need to install wheel, otcextensions and openstacksdk (installed via otcextensions) using the following command:
pip install wheel otcextensions
Collections will be installed automatically once any playbook is executed, but it is possible to install it manually via following commands from Ansible Galaxy:
ansible-galaxy collection install openstack.cloud
ansible-galaxy collection install opentelekomcloud.cloud
ansible-galaxy collection install ansible.netcommon
Existing scenario infrastructure build can be triggered using ansible-playbook playbooks/*_monitoring_setup.yml
!NB To provide access to OBS, following variables have to be set: AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
E.g. for scenario 2 following should be used:
export AWS_ACCESS_KEY_ID=myau_id
export AWS_SECRET_ACCESS_KEY=sekret_myau
export OS_CLOUD=mycloud
ansible-playbook "playbooks/dns_monitoring_setup.yml"
This script performs the following actions:
- Build required infrastructure using different ansible roles from roles/
- Configure created infrastructure using respective playbook from playbooks/ for infrastructure monitoring
Credentials should be stored in the file called "clouds.yaml". It must locate in one of the next places:
current directory
~/.config/openstack
/etc/openstack
In case of you have more than one cloud you should set environment variableOS_CLOUD
See openstack configuration for details.
Executed playbook also starts test/monitoring for created/refreshed infrastructure.
Implementation of most tests can be found in csm test utils repository