kolla-ansible/ansible/roles/octavia/tasks
Xing Zhang c2037885e7 Switch octavia to use service project in service_auth
Recently a patch [1] was merged to stop adding the octavia user to the
admin project, and remove it on upgrade. However, the octavia
configuration was not updated to use the service project, causing load
balancer creation to fail.

There is also an issue for existing deployments in simply switching to
the service project. While existing load balancers appear to continue to
work, creating new load balancers fails due to the security group
belonging to the admin project. At a minimum, the deployer needs to
create a security group in the service project, and update
'octavia_amp_secgroup_list' to match its ID. Ideally the flavor and
network would also be recreated in the service project, although this
does not seem to impact operation and will result in downtime for
existing Amphorae.

This change adds a new variable, 'octavia_service_auth_project', that
can be used to set the project. The default in Ussuri is 'service',
switching to the new behaviour. For backports of this patch it should be
switched to 'admin' to maintain compatibility.

If a deployer sets 'octavia_service_auth_project' to 'admin', the
octavia user will be assigned the admin role in the admin project, as
was done previously.

Closes-Bug: #1882643
Related-Bug: #1873176

[1] https://review.opendev.org/720243/

Co-Authored-By: Mark Goddard <mark@stackhpc.com>

Change-Id: I1efd0154ebaee69373ae5bccd391ee9c68d09b30
2020-06-16 12:57:56 +01:00
..
bootstrap.yml During deploy, always sync DB 2019-07-12 08:56:54 +00:00
bootstrap_service.yml Fix handling of docker restart policy 2019-07-18 13:39:06 +00:00
check-containers.yml Add a job that *only* deploys updated containers 2019-09-26 17:51:14 +01:00
check.yml Enable sanity checks from kolla-ansible 2017-03-09 10:37:06 +00:00
config.yml Adapt to Octavia Certificate Configuration Guide. 2020-04-29 08:30:12 +03:00
copy-certs.yml Refactor copy certificates task 2020-04-14 17:26:19 +00:00
deploy-containers.yml Add a job that *only* deploys updated containers 2019-09-26 17:51:14 +01:00
deploy.yml Use include_tasks instead of include 2018-07-25 23:57:22 +08:00
loadbalancer.yml Use "name:" instead of "role:" for *_role modules 2020-03-02 10:01:17 +01:00
main.yml Use include_tasks instead of include 2018-07-25 23:57:22 +08:00
precheck.yml Adapt to Octavia Certificate Configuration Guide. 2020-04-29 08:30:12 +03:00
pull.yml Specify 'become' for all tasks that use kolla_docker module 2018-06-08 12:39:24 +00:00
reconfigure.yml Use include_tasks instead of include 2018-07-25 23:57:22 +08:00
register.yml Switch octavia to use service project in service_auth 2020-06-16 12:57:56 +01:00
stop.yml Use "name:" instead of "role:" for *_role modules 2020-03-02 10:01:17 +01:00
upgrade.yml Remove octavia user from admin project 2020-04-17 09:50:33 +00:00