Fuel CCP - Rally deployment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run-tempest.sh.j2 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. set -ex
  3. # OS credentials
  4. export OS_AUTH_URL={{ address("keystone", keystone.admin_port, with_scheme=True) }}
  5. export OS_IDENTITY_API_VERSION=3
  6. export OS_PASSWORD={{ openstack.user_password }}
  7. export OS_PROJECT_DOMAIN_NAME=default
  8. export OS_PROJECT_NAME={{ openstack.project_name }}
  9. export OS_USERNAME={{ openstack.user_name }}
  10. export OS_USER_DOMAIN_NAME=default
  11. function prepare_tempest_conf {
  12. local public_network_id="$(openstack network show {{ neutron.bootstrap.external.net_name }} -f value -c id)"
  13. cat <<EOF >> /var/lib/rally/tempest.conf
  14. [network]
  15. floating_network_name = {{ neutron.bootstrap.external.net_name }}
  16. public_network_id = $public_network_id
  17. EOF
  18. }
  19. rally-manage db create
  20. rally deployment create --fromenv --name=tempest
  21. rally verify install --source /var/lib/rally/tempest
  22. prepare_tempest_conf
  23. rally verify genconfig --override --add-options /var/lib/rally/tempest.conf
  24. rally verify showconfig
  25. os_release="{{ rally.tempest.openstack_release }}"
  26. rally verify start --skip-list "/var/lib/rally/${os_release}-skip-list.list"
  27. rally verify results | /var/lib/rally/check_status.py