<div dir="ltr">I went ahead and just included the wildcard in /etc/openstack-dashboard and restarted httpd to no avail:<div>ALLOWED_HOSTS = ['*']<br></div><div><br></div><div>I also noticed that the requests were being logged to access_log:</div><div><div>[root@undercloud httpd]# tail -f access_log</div><div>127.0.0.1 - - [18/May/2016:16:14:22 +0000] "GET /dashboard HTTP/1.1" 404 207 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"</div><div>127.0.0.1 - - [18/May/2016:16:16:26 +0000] "GET /dashboard HTTP/1.1" 404 207 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"</div><div><br></div></div><div><br></div><div>After reviewing what looks to be a similar issue I noticed that I have neither of these:</div><div>/etc/httpd/conf.d/openstack-dashboard.conf <br></div><div>/etc/httpd/conf.d/15-horizon_vhost.conf<br></div><div><br></div><div>I do on the other hand have /etc/httpd/conf.d/15-default.conf in which I added the ScriptAlias lines to math my environment:</div><div><div># ************************************</div><div># Vhost template in module puppetlabs-apache</div><div># Managed by Puppet</div><div># ************************************</div><div><br></div><div><VirtualHost *:80></div><div> ServerName default</div><div> ServerAlias 10.0.120.10</div><div> ServerAlias localhost</div><div> ServerAlias 127.0.0.1</div><div> ServerAdmin root@localhost</div><div><br></div><div> ## Vhost docroot</div><div> DocumentRoot "/var/www/html"</div><div><br></div><div> ## Directories, there should at least be a declaration for /var/www/html</div><div><br></div><div> <Directory "/var/www/html"></div><div> Options Indexes FollowSymLinks MultiViews</div><div> AllowOverride None</div><div> Require all granted</div><div> </Directory></div><div><br></div><div> ## Logging</div><div> ErrorLog "/var/log/httpd/default_error.log"</div><div> ServerSignature Off</div><div> CustomLog "/var/log/httpd/access_log" combined</div><div> ## Script alias directives</div><div> ScriptAlias /cgi-bin "/var/www/cgi-bin"</div><div></VirtualHost></div></div><div><br></div><div><br></div><div>I think I am missing some configuration but am not sure where as of yet....</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div style="font-family:Arial,Helvetica,Tahoma,sans-serif">
<ul style="color:#555555;font-size:13px;padding-left:10px;line-height:20px;margin-bottom:8px"><li style="list-style:none"><b>Paul Kunicki<br></b></li><li style="font-style:italic;list-style:none outside none">Systems Manager<br></li><li style="list-style:none">SproutLoud Media Networks, LLC.</li><li style="list-style:none">954-476-6211 ext.144</li><li style="list-style:none"><a href="mailto:pkunicki@sproutloud.com" target="_blank">pkunicki@sproutloud.com</a></li><li style="list-style:none"><a href="http://www.sproutloud.com/" style="color:#555555" target="_blank">www.sproutloud.com</a></li><li style="list-style:none">
<img alt="inc500-5000" src="http://www.sproutloud.com/sites/sproutloud.com/themes/sproutloud/images/inc500-5000A.jpg" height="31" border="0" width="150">
<span> </span>
<img src="http://www.sproutloud.com/sites/sproutloud.com/files/deloitte_cropped.jpg" height="31" border="0" width="77">
<span> </span>
<img alt="Gartner 2013 Cool Vendor" src="http://www.sproutloud.com/sites/sproutloud.com/files/images/email_signature/gartner-2013.jpg" height="35" border="0" width="68">
</li><li style="list-style:none;color:#999;font-size:10px;line-height:14px">
The information contained in this communication is intended
solely for the use of the individual or entity to whom it is addressed
and for others authorized to receive it. It may contain confidential or
legally privileged information. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution, or
taking any action
in reliance on these contents is strictly prohibited and may be
unlawful. In the event the recipient or recipients of this communication
are under a non-disclosure agreement, any and all information discussed
during phone calls and online presentations fall under the agreements
signed by both parties. If you received this communication in error,
please notify us
immediately by responding to this e-mail.
</li></ul>
</div>
<a href="mailto:pkunicki@sproutloud.com" target="_blank"></a></div></div></div>
<br><div class="gmail_quote">On Wed, May 18, 2016 at 11:57 AM, Sasha Chuzhoy <span dir="ltr"><<a href="mailto:sasha@redhat.com" target="_blank">sasha@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I haven't checked this version, but previously needed to modify the ALLOWED_HOSTS in /etc/openstack-dashboard/local_settings and bounce httpd.<br>
Wondering if the same still applies.<br>
<br>
<br>
Best regards,<br>
Sasha Chuzhoy.<br>
<br>
----- Original Message -----<br>
> From: "Paul Kunicki" <<a href="mailto:pkunicki@sproutloud.com">pkunicki@sproutloud.com</a>><br>
> To: "Marius Cornea" <<a href="mailto:marius@remote-lab.net">marius@remote-lab.net</a>><br>
> Cc: "rdo-list" <<a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a>><br>
> Sent: Wednesday, May 18, 2016 11:29:17 AM<br>
> Subject: Re: [rdo-list] gui port<br>
><br>
> I am having trouble accessing the undercloud dashboard as well. I am getting<br>
> a 404 error via HTTP when I try to access. I created an ssh tunnel from the<br>
> undercloud host so I could access the VM remotely. I can access the httpd<br>
> instance with no problem inside the undercloud VM from a remote net but am<br>
> not getting any content. Here is what I believe to be relevant and hopefully<br>
> sufficient for someone to discern what I am doing wrong:<br>
><br>
> service httpd status -l<br>
> [root@undercloud httpd]# service httpd status -l<br>
> Redirecting to /bin/systemctl status -l httpd.service<br>
> ● httpd.service - The Apache HTTP Server<br>
> Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor<br>
> preset: disabled)<br>
> Drop-In: /usr/lib/systemd/system/httpd.service.d<br>
> └─openstack-dashboard.conf<br>
> Active: active (running) since Wed 2016-05-18 15:11:09 UTC; 9min ago<br>
> Docs: man:httpd(8)<br>
> man:apachectl(8)<br>
> Process: 3920 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,<br>
> status=0/SUCCESS)<br>
> Process: 3957 ExecStartPre=/usr/bin/python<br>
> /usr/share/openstack-dashboard/manage.py compress --force (code=exited,<br>
> status=0/SUCCESS)<br>
> Process: 3933 ExecStartPre=/usr/bin/python<br>
> /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear<br>
> (code=exited, status=0/SUCCESS)<br>
> Main PID: 4093 (httpd)<br>
> Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0<br>
> B/sec"<br>
> CGroup: /system.slice/httpd.service<br>
> ├─4093 /usr/sbin/httpd -DFOREGROUND<br>
> ├─4096 /usr/sbin/httpd -DFOREGROUND<br>
> ├─4097 keystone-admin -DFOREGROUND<br>
> ├─4098 keystone-main -DFOREGROUND<br>
> ├─4099 /usr/sbin/httpd -DFOREGROUND<br>
> ├─4100 /usr/sbin/httpd -DFOREGROUND<br>
> ├─4101 /usr/sbin/httpd -DFOREGROUND<br>
> ├─4102 /usr/sbin/httpd -DFOREGROUND<br>
> ├─4104 /usr/sbin/httpd -DFOREGROUND<br>
> ├─4105 /usr/sbin/httpd -DFOREGROUND<br>
> ├─4106 /usr/sbin/httpd -DFOREGROUND<br>
> └─4107 /usr/sbin/httpd -DFOREGROUND<br>
><br>
> May 18 15:10:37 undercloud python[3933]: Copying<br>
> '/usr/lib/python2.7/site-packages/horizon/static/horizon/tests/jasmine/tables.legacy-spec.js'<br>
> May 18 15:10:37 undercloud python[3933]: Copying<br>
> '/usr/lib/python2.7/site-packages/horizon/static/horizon/tests/jasmine/templates.legacy-spec.js'<br>
> May 18 15:10:37 undercloud python[3933]: 1311 static files copied to<br>
> '/usr/share/openstack-dashboard/static'.<br>
> May 18 15:11:09 undercloud python[3957]: Found 'compress' tags in:<br>
> May 18 15:11:09 undercloud python[3957]:<br>
> /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_conf.html<br>
> May 18 15:11:09 undercloud python[3957]:<br>
> /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html<br>
> May 18 15:11:09 undercloud python[3957]:<br>
> /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html<br>
> May 18 15:11:09 undercloud python[3957]: Compressing... done<br>
> May 18 15:11:09 undercloud python[3957]: Compressed 5 block(s) from 3<br>
> template(s) for 2 context(s).<br>
> May 18 15:11:09 undercloud systemd[1]: Started The Apache HTTP Server.<br>
> [root@undercloud httpd]#<br>
><br>
> Here is my tunnel cmd issued from the undercloud host ie 10.0.120.10 :<br>
> ssh -g -L 8080:localhost:80<br>
><br>
> Here is the URL I am trying to access from my browser:<br>
> <a href="http://10.0.120.10:8080/dashboard" rel="noreferrer" target="_blank">http://10.0.120.10:8080/dashboard</a><br>
><br>
> I am running Mitaka and installed with scripts provided in the stack homedir<br>
> by quickstart.sh.<br>
><br>
> Thanks.<br>
><br>
><br>
><br>
> * Paul Kunicki<br>
> * Systems Manager<br>
> * SproutLoud Media Networks, LLC.<br>
> * 954-476-6211 ext.144<br>
> * <a href="mailto:pkunicki@sproutloud.com">pkunicki@sproutloud.com</a><br>
> * <a href="http://www.sproutloud.com" rel="noreferrer" target="_blank">www.sproutloud.com</a><br>
> *<br>
> * The information contained in this communication is intended solely for<br>
> the use of the individual or entity to whom it is addressed and for<br>
> others authorized to receive it. It may contain confidential or legally<br>
> privileged information. If you are not the intended recipient, you are<br>
> hereby notified that any disclosure, copying, distribution, or taking<br>
> any action in reliance on these contents is strictly prohibited and may<br>
> be unlawful. In the event the recipient or recipients of this<br>
> communication are under a non-disclosure agreement, any and all<br>
> information discussed during phone calls and online presentations fall<br>
> under the agreements signed by both parties. If you received this<br>
> communication in error, please notify us immediately by responding to<br>
> this e-mail.<br>
><br>
> On Wed, May 18, 2016 at 10:14 AM, Marius Cornea < <a href="mailto:marius@remote-lab.net">marius@remote-lab.net</a> ><br>
> wrote:<br>
><br>
><br>
> On Wed, May 18, 2016 at 3:58 PM, Paras pradhan < <a href="mailto:pradhanparas@gmail.com">pradhanparas@gmail.com</a> ><br>
> wrote:<br>
> > Thanks for the replies May be Redhat is coming up with something big that<br>
> > can compete with other vendors?<br>
><br>
> You can check this video[1] out for the upcoming TripleO UI [2]:<br>
><br>
> [1] <a href="https://www.youtube.com/watch?v=1Lc04DKGxCg" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=1Lc04DKGxCg</a><br>
> [2] <a href="https://github.com/openstack/tripleo-ui" rel="noreferrer" target="_blank">https://github.com/openstack/tripleo-ui</a><br>
><br>
> > On Wed, May 18, 2016 at 4:47 AM, Ola Pavlenko < <a href="mailto:opavlenk@redhat.com">opavlenk@redhat.com</a> ><br>
> > wrote:<br>
> >><br>
> >> Marius is right.<br>
> >> There is no undercloud UI (e.g Tuskar) in osp8.<br>
> >><br>
> >> On May 18, 2016 10:36, "Marius Cornea" < <a href="mailto:marius@remote-lab.net">marius@remote-lab.net</a> > wrote:<br>
> >>><br>
> >>> On Tue, May 17, 2016 at 11:30 PM, Dan Sneddon < <a href="mailto:dsneddon@redhat.com">dsneddon@redhat.com</a> ><br>
> >>> wrote:<br>
> >>> > On 05/17/2016 12:13 PM, Paras pradhan wrote:<br>
> >>> >> That works. But not seeing the dashboard . Getting "resource not<br>
> >>> >> found". I am using osp 8.<br>
> >>> >><br>
> >>> >> -Paras.<br>
> >>> >><br>
> >>> >><br>
> >>> >> On Tue, May 17, 2016 at 1:52 PM, Dan Sneddon < <a href="mailto:dsneddon@redhat.com">dsneddon@redhat.com</a><br>
> >>> >> <mailto: <a href="mailto:dsneddon@redhat.com">dsneddon@redhat.com</a> >> wrote:<br>
> >>> >><br>
> >>> >> On 05/16/2016 11:13 AM, Paras pradhan wrote:<br>
> >>> >> > How do we access the undercloud dashboard?<br>
> >>> >> ><br>
> >>> >> ><br>
> >>> >> > _______________________________________________<br>
> >>> >> > rdo-list mailing list<br>
> >>> >> > <a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a> <mailto: <a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a> ><br>
> >>> >> > <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
> >>> >> ><br>
> >>> >> > To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br>
> >>> >> <mailto: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a> ><br>
> >>> >> ><br>
> >>> >><br>
> >>> >> The undercloud dashboard listens on port 8080 on the control plane<br>
> >>> >> interface (br-ctlplane). This IP may not be reachable remotely,<br>
> >>> >> especially if the default route on the Undercloud is a different<br>
> >>> >> interface, or if the Undercloud is actually a VM running in a<br>
> >>> >> virt-host.<br>
> >>> >><br>
> >>> >> In those cases, I usually set up local port forwarding via SSH.<br>
> >>> >> This<br>
> >>> >> allows me to access the Horizon dashboard, and provides encryption<br>
> >>> >> so<br>
> >>> >> the username/password doesn't traverse the wire in cleartext (when<br>
> >>> >> not<br>
> >>> >> running SSL on the Undercloud).<br>
> >>> >><br>
> >>> >> ssh -L 9000:<br-ctlplane_ip>:8080 stack@undercloud_external_ip<br>
> >>> >><br>
> >>> >> Then you can connect to <a href="http://localhost:9000/" rel="noreferrer" target="_blank">http://localhost:9000/</a> to access the<br>
> >>> >> dashboard.<br>
> >>> >><br>
> >>> >> You can even nest these if you are using a virtualized Undercloud:<br>
> >>> >><br>
> >>> >> >From virt-host:<br>
> >>> >> ssh -L 9500:<br-ctlplane_ip>:8080 stack@undercloud_external_ip<br>
> >>> >><br>
> >>> >> >From your workstation:<br>
> >>> >> ssh -L 9000:localhost:9500 stack@virt-host<br>
> >>> >><br>
> >>> >> Then when you connect to port 9000 locally it gets forwarded to<br>
> >>> >> port<br>
> >>> >> 9050 on the virt-host, which is a tunnel to port 8080 on the<br>
> >>> >> Undercloud VM.<br>
> >>> >><br>
> >>> >> You can add "-nNT" before the -L in the ssh commands if you just<br>
> >>> >> want<br>
> >>> >> to create the tunnel without connecting to a remote shell when you<br>
> >>> >> issue the ssh command.<br>
> >>> >><br>
> >>> >> The other (potentially less secure) option is to reconfigure<br>
> >>> >> Apache on<br>
> >>> >> the Undercloud to listen on all interfaces, and then connect<br>
> >>> >> directly<br>
> >>> >> to the IP on the Undercloud interface with the default route. A<br>
> >>> >> similar<br>
> >>> >> option is to disable reverse path filtering [1], and then connect<br>
> >>> >> directly to the br-ctlplane interface. This will only work if the<br>
> >>> >> Undercloud is directly reachable (usually not possible if using a<br>
> >>> >> VM<br>
> >>> >> undercloud). These methods should only be used in production when<br>
> >>> >> SSL<br>
> >>> >> is enabled, because the passwords shouldn't be sent in the clear.<br>
> >>> >><br>
> >>> >> [1] - <a href="https://access.redhat.com/solutions/53031" rel="noreferrer" target="_blank">https://access.redhat.com/solutions/53031</a><br>
> >>> >> --<br>
> >>> >> Dan Sneddon | Principal OpenStack Engineer<br>
> >>> >> <a href="mailto:dsneddon@redhat.com">dsneddon@redhat.com</a> <mailto: <a href="mailto:dsneddon@redhat.com">dsneddon@redhat.com</a> > |<br>
> >>> >> <a href="http://redhat.com/openstack" rel="noreferrer" target="_blank">redhat.com/openstack</a> < <a href="http://redhat.com/openstack" rel="noreferrer" target="_blank">http://redhat.com/openstack</a> ><br>
> >>> >> 650.254.4025 <tel:650.254.4025> | dsneddon:irc<br>
> >>> >> @dxs:twitter<br>
> >>> >><br>
> >>> >> _______________________________________________<br>
> >>> >> rdo-list mailing list<br>
> >>> >> <a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a> <mailto: <a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a> ><br>
> >>> >> <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
> >>> >><br>
> >>> >> To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br>
> >>> >> <mailto: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a> ><br>
> >>> >><br>
> >>> >><br>
> >>> ><br>
> >>> > Hmm, not sure, but you may try adding /dashboard to the end of the URL<br>
> >>> > to see if that helps.<br>
> >>><br>
> >>> I don't think there is an undercloud dashboard in osp 8. I see on my<br>
> >>> environment that swift-proxy is listening on port 8080 and on port 80<br>
> >>> httpd serves an empty directory in /var/www/html/<br>
> >>><br>
> >>> > --<br>
> >>> > Dan Sneddon | Principal OpenStack Engineer<br>
> >>> > <a href="mailto:dsneddon@redhat.com">dsneddon@redhat.com</a> | <a href="http://redhat.com/openstack" rel="noreferrer" target="_blank">redhat.com/openstack</a><br>
> >>> > 650.254.4025 | dsneddon:irc @dxs:twitter<br>
> >>> ><br>
> >>> > _______________________________________________<br>
> >>> > rdo-list mailing list<br>
> >>> > <a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a><br>
> >>> > <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
> >>> ><br>
> >>> > To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br>
> >>><br>
> >>> _______________________________________________<br>
> >>> rdo-list mailing list<br>
> >>> <a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a><br>
> >>> <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
> >>><br>
> >>> To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br>
> ><br>
> ><br>
><br>
> _______________________________________________<br>
> rdo-list mailing list<br>
> <a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
><br>
> To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br>
><br>
><br>
> _______________________________________________<br>
> rdo-list mailing list<br>
> <a href="mailto:rdo-list@redhat.com">rdo-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
><br>
> To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br>
</blockquote></div><br></div>