This patch corrects the project_id handling for POST calls to the
Octavia v1 API. For load balancer create calls we use the specified
project_id if the user is an admin or noauth is specified. If no
project_id is specified in the request we use the project_id from
the context. If no project_id can be found we raise an exception.
For the other object POST methods we use the project_id
from the parent load balancer.
Reviewed: https:/ /review. openstack. org/431207 /git.openstack. org/cgit/ openstack/ octavia/ commit/ ?id=108ab279524 d323552d825387e 34d5ef0520292b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 108ab279524d323 552d825387e34d5 ef0520292b
Author: johnsom <email address hidden>
Date: Wed Feb 8 11:21:52 2017 -0800
Fix Octavia v1 API project_id for POST
This patch corrects the project_id handling for POST calls to the
Octavia v1 API. For load balancer create calls we use the specified
project_id if the user is an admin or noauth is specified. If no
project_id is specified in the request we use the project_id from
the context. If no project_id can be found we raise an exception.
For the other object POST methods we use the project_id
from the parent load balancer.
Change-Id: Ibf59541b8811e3 bbe36cfec039f91 e20036102e4
Closes-Bug: #1624145