Hi,
I’ve a problem with switching between zones in a federation with apache/passenger. When connecting directly to the OpenNebula sunstone on port 9869 al works fine but when using the apache/passenger frontend it won’t switch to an other zone. I don’t see any relevant messages in the logging, it just stays on the local zone.
We are using OpenNebula 5.2.1
My apache config:
<VirtualHost *:80>
ServerName sunstone
PassengerUser oneadmin
SetEnvIfNoCase ^X.VCENTER.USER$ ^(.*)$ vuser=$1
RequestHeader set X-VCENTER-USER %{vuser}e env=vuser
SetEnvIfNoCase ^X.VCENTER.PASSWORD$ ^(.*)$ vpassword=$1
RequestHeader set X-VCENTER-PASSWORD %{vpassword}e env=vpassword
SetEnvIfNoCase ^X.VCENTER.HOST$ ^(.*)$ vhost=$1
RequestHeader set X-VCENTER-HOST %{vhost}e env=vhost
SetEnvIfNoCase ^X.VCENTER.HOST$ ^(.*)$ vhost=$1
RequestHeader set X-VCENTER-HOST %{vhost}e env=vhost
SetEnvIfNoCase ^HTTP.ZONE.NAME$ ^(.*)$ vhost=$1
RequestHeader set HTTP-ZONE-NAME %{vhost}e env=vhost
DocumentRoot /usr/lib/one/sunstone/public
<Directory /usr/lib/one/sunstone/public>
# This relaxes Apache security settings.
AllowOverride none
# MultiViews must be turned off.
Options -MultiViews
Require all granted
Current results:
When choosing another zone, it will just stay on the current zone.
Expected results:
When choosing another zone, it will switch to the other zone.