Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-7226

octavia-tempest-plugin depends on load-balancer_* roles that don't exist when enabling sRBAC

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Moderate

      When enabling keystone_default_roles in octavia and tempest, octavia-tempest-plugin configures users with specific roles:

      https://opendev.org/openstack/octavia-tempest-plugin/src/commit/2ec653f57c62873b02a31003a2587c0206dcadea/octavia_tempest_plugin/tests/test_base.py#L62-L69

                 'admin', 'primary',
                  ['lb_admin', CONF.load_balancer.admin_role, 'admin'],
                  ['lb_observer', CONF.load_balancer.observer_role, 'reader'],
                  ['lb_global_observer', CONF.load_balancer.global_observer_role,
                   'reader'],
                  ['lb_member', CONF.load_balancer.member_role, 'member'],
                  ['lb_member2', CONF.load_balancer.member_role, 'member'],
                  ['lb_member_not_default_member', CONF.load_balancer.member_role]] 

      The default values for the load_balancer.role are the load-balancer roles which are not needed with keystone_default_roles.

      One solution is to set the value of those settings to dummy values (existing roles that don't impact octavia), another fix would be to not use other roles than admin/reader/member.

              rhn-support-gthiemon Gregory Thiemonge
              rhn-support-gthiemon Gregory Thiemonge
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: