Merge "Remove octavia user from admin project"

This commit is contained in:
Zuul 2020-04-17 13:05:17 +00:00 committed by Gerrit Code Review
commit 6c73b863da
3 changed files with 24 additions and 13 deletions

View File

@ -7,19 +7,6 @@
service_ks_register_users: "{{ octavia_ks_users }}" service_ks_register_users: "{{ octavia_ks_users }}"
tags: always tags: always
- name: Adding octavia user into admin project
become: true
kolla_toolbox:
module_name: "os_user_role"
module_args:
user: "{{ octavia_keystone_user }}"
role: admin
project: "{{ keystone_admin_project }}"
auth: "{{ openstack_octavia_auth }}"
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
run_once: True
- name: Adding octavia related roles - name: Adding octavia related roles
become: true become: true
kolla_toolbox: kolla_toolbox:

View File

@ -5,3 +5,18 @@
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers
# TODO(mgoddard): Remove this task in Victoria.
- name: Removing octavia user from admin project
become: true
kolla_toolbox:
module_name: "os_user_role"
module_args:
user: "{{ octavia_keystone_user }}"
role: admin
state: absent
project: "{{ keystone_admin_project }}"
auth: "{{ openstack_octavia_auth }}"
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
run_once: True

View File

@ -0,0 +1,9 @@
---
upgrade:
- |
The octavia user is no longer given the admin role in the admin
project. Octavia does not require this role and instead uses octavia
user with admin role in service project. During an upgrade the octavia
user is removed from the admin project. See
`bug 1873176 <https://bugs.launchpad.net/kolla-ansible/+bug/1873176>`__
for details.