Bug 1119920
| Summary: | http://ip/dashboard 404 from all-in-one rdo install on rhel7 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] RDO | Reporter: | wes hayutin <whayutin> | ||||||
| Component: | openstack-packstack | Assignee: | Ivan Chavero <ichavero> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | unspecified | CC: | aortega, apevec, athomas, derekh, ichavero, kmcfate, mrunge, sudhiragarwal619, whayutin, yeylon | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | openstack-puppet-modules-2014.1.1-3.fc21 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 1129379 (view as bug list) | Environment: | |||||||
| Last Closed: | 2016-03-30 23:07:55 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1129379 | ||||||||
| Attachments: |
|
||||||||
|
Description
wes hayutin
2014-07-15 20:48:46 UTC
Is this an unmodified config from packstack? Did you enable SSL? Please attach /etc/httpd/conf.d/openstack-dashboard.conf Thanks. Wes gave me access to the system, I'm leaving the needinfo for the other information request though (re: unmodified config?). There was no /etc/httpd/conf.d/openstack-dashboard.conf file but a /etc/httpd/conf.d/15-horizon_vhost.conf (attached). I noticed this bit at the end: ServerAlias 172.16.7.12 ServerAlias packstack.novalocal ServerAlias localhost Horizon is accessible from localhost but not using http://10.8.52.163/. Adding a new line with: ServerAlias 10.8.52.163 and restarting httpd fixed the problem. This is just a workaround though, we should still figure out how to get this configured correctly from the start. Created attachment 918448 [details]
httpd configuration
Looking at a machine I set up a while back that has /etc/httpd/conf.d/openstack-dashboard.conf, it used to be we didn't have any ServerAlias attribute, which I take it made the dashboard accessible with any URL by default. Do I get it right, the system was set up by packstack, configs were not modified after setup, and trying to access the dashboard just gave a 404? I think someone else hit this issue again: https://ask.openstack.org/en/question/44151/red-hat-rdo-horizon-dashboard-will-not-load-from-internet/ I'm moving this to packstack as I think this is where the new 15-horizon_vhost.conf is set up. I'd like to suggest removing the ServerAlias definitions altogether if possible, to avoid this kind of confusion. in order to avoid this problem we should set: ServerAlias * to accept from all ip's or names. This way if there's some kind of redirection (NAT, load balancer, reverse proxy, etc...) connections always be accepted. icehouse backport created: https://review.openstack.org/#/c/113607/ (In reply to Ivan Chavero from comment #8) > icehouse backport created: https://review.openstack.org/#/c/113607/ Is that right patch for this _horizon_ issue? "Fixed remote DB installations This patch fixes host resolution for MySQL/MariaDB remote installation...." We need this fix pushed into RDO python-django-horizon-2014.1.2-1.el7ost.noarch openstack-packstack-2014.1.1-0.37.dev1238.el7ost.noarch This is still happening because the default vhost overrides the vhost with no ServerAlias:
VirtualHost configuration:
192.0.2.10:80 is a NameVirtualHost
default server default (/etc/httpd/conf.d/15-default.conf:6)
port 80 namevhost default (/etc/httpd/conf.d/15-default.conf:6)
port 80 namevhost overcloud-controller-0.localdomain (/etc/httpd/conf.d/15-horizon_vhost.conf:6)
alias overcloud-controller-0.localdomain
yepp, that happens, e.g. when installing horizon inside an openstack install, i.e. you can not know the floating ip of the instance. Hi, I have installed queens multi node setup. I can see that this bug is still there. i am not able to login to the openstack dashboard. i tried removing all the ServerAlias and also tried giving ServerAlias * . but nothing worked. I don't have openstack-dashboard.conf, instead i have 15-horizon-vhost.conf and 15-horizon-ssl-vhost.conf. |