Browse Source

Add admin credentials in config

Change-Id: I96ba171b27ce7f0a90cd3611fd0aef3a9250ccdd
Sergey Reshetnyak 2 years ago
parent
commit
cd80fd0b33
2 changed files with 11 additions and 10 deletions
  1. 2
    2
      service/files/run-tempest.sh.j2
  2. 9
    8
      service/files/tempest.conf.j2

+ 2
- 2
service/files/run-tempest.sh.j2 View File

@@ -15,10 +15,10 @@ function publish_artifacts {
15 15
 export OS_AUTH_URL={{ address("keystone", keystone.admin_port, with_scheme=True) }}
16 16
 export OS_IDENTITY_API_VERSION=3
17 17
 export OS_PASSWORD={{ openstack.user_password }}
18
-export OS_PROJECT_DOMAIN_NAME=default
18
+export OS_PROJECT_DOMAIN_NAME=Default
19 19
 export OS_PROJECT_NAME={{ openstack.project_name }}
20 20
 export OS_USERNAME={{ openstack.user_name }}
21
-export OS_USER_DOMAIN_NAME=default
21
+export OS_USER_DOMAIN_NAME=Default
22 22
 {% if keystone.tls.enabled %}
23 23
 export OS_CACERT="/opt/ccp/etc/tls/ca.pem"
24 24
 {% endif %}

+ 9
- 8
service/files/tempest.conf.j2 View File

@@ -2,14 +2,7 @@
2 2
 log_file = /var/lib/rally/tempest.log
3 3
 
4 4
 [compute]
5
-min_microversion = 2.1
6
-{% if rally.tempest.openstack_release == "mitaka" %}
7
-max_microversion = 2.25
8
-{% elif rally.tempest.openstack_release == "newton" %}
9
-max_microversion = 2.38
10
-{% elif rally.tempest.openstack_release == "ocata" %}
11
-max_microversion = 2.42
12
-{% endif %}
5
+max_microversion = latest
13 6
 min_compute_nodes = {{ rally.tempest.compute.min_compute_nodes }}
14 7
 
15 8
 {% set compute_feature = rally.tempest.compute_feature %}
@@ -20,6 +13,14 @@ allow_port_security_disabled = {{ compute_feature.allow_port_security_disabled }
20 13
 attach_encrypted_volume = {{ compute_feature.attach_encrypted_volume }}
21 14
 personality = {{ compute_feature.personality }}
22 15
 
16
+[auth]
17
+use_dynamic_credentials = True
18
+tempest_roles = {{ openstack.role_name }}
19
+admin_domain_name = Default
20
+admin_project_name = {{ openstack.project_name }}
21
+admin_password = {{ openstack.user_password }}
22
+admin_username = {{ openstack.user_name }}
23
+
23 24
 [identity]
24 25
 {% if rally.tempest.openstack_release == "mitaka" %}
25 26
 admin_domain_scope = False

Loading…
Cancel
Save