Hide Forgot
Description of problem: packstack configures horizon to only allow the localhost with a real ip to access it. eg: ALLOWED_HOSTS = ['192.168.122.254', ] the fix is to DEBUG = True Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
so if you do a packstack all in one installation the dashboard is 100% useless unless this trick is known.
service httpd restart for changes to take effect
Since prior to the ALLOWED_HOSTS requirement there was no restriction on who could connect (and for something like the dashboard it probably doesn't make sense to have such a restriction by default) you could almost consider this a regression (in that something which worked before doesn't work now). I would suggest that adding ALLOWED_HOSTS=['*']; and leaving DEBUG at False is a better default setting. This also applies to RDO packages.
(In reply to Dave Neary from comment #3) > Since prior to the ALLOWED_HOSTS requirement there was no restriction on who > could connect (and for something like the dashboard it probably doesn't make > sense to have such a restriction by default) you could almost consider this > a regression (in that something which worked before doesn't work now). > > I would suggest that adding ALLOWED_HOSTS=['*']; and leaving DEBUG at False > is a better default setting. This also applies to RDO packages. I strongly recommend not to set ALLOWED_HOSTS= ['*'] since it opens the door for attacks on your service. One should add there the IP address, the full qualified hostname of your horizon node. If you have put horizon behind a load balancer, then you could also add your domain name there.
*** This bug has been marked as a duplicate of bug 988316 ***