Add osapi_compute_link_prefix to nova.conf
When a load balancer is used to terminate SSL, it generally strips the https:// from the HTTP_HOST header and changes it to http://. This is used by webob.Request as the request_url that is then used by default when constructing link collections in the OpenStack Compute API. Setting the osapi_compute_link_prefix configuration option allows us to override the URI returned to match the original compute endpoint URI.
This commit is contained in:
@@ -131,7 +131,8 @@ template "/etc/nova/nova.conf" do
|
||||
:glance_api_ipaddress => image_endpoint.host,
|
||||
:glance_api_port => image_endpoint.port,
|
||||
:iscsi_helper => platform_options["iscsi_helper"],
|
||||
:scheduler_default_filters => node["nova"]["scheduler"]["default_filters"].join(",")
|
||||
:scheduler_default_filters => node["nova"]["scheduler"]["default_filters"].join(","),
|
||||
:osapi_compute_link_prefix => nova_api_endpoint.to_s
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user