Browse Source

Change role setting for octavia

By default python-tempestconf will set the same role for octavia
as was set in auth.tempest_roles. In case of more roles set in
auth.tempest_roles, the first one will be used.

Story: 2007471
Task: 39159
Change-Id: I9067a27eab04e6ff8a86f15ee71699321992e95e
changes/72/715372/1
Martin Kopec 3 months ago
parent
commit
32b60cc833
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      config_tempest/services/octavia.py

+ 4
- 1
config_tempest/services/octavia.py View File

@@ -23,7 +23,6 @@ class LoadBalancerService(VersionedService):

def set_default_tempest_options(self, conf):
conf.set('load_balancer', 'enable_security_groups', 'True')
conf.set('load_balancer', 'member_role', '_member_')
conf.set('load_balancer', 'admin_role', 'admin')
conf.set('load_balancer', 'RBAC_test_type', 'owner_or_admin')

@@ -34,3 +33,7 @@ class LoadBalancerService(VersionedService):
@staticmethod
def get_codename():
return 'octavia'

def post_configuration(self, conf, is_service):
conf.set('load_balancer', 'member_role',
conf.get('auth', 'tempest_roles').split(',')[0])

Loading…
Cancel
Save