← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1640335] Re: DisallowedHost: Invalid HTTP_HOST header

 

The above patch will not fix this bug I think. Its a similar issue that
has broken things in the past day or so, but its not the same. IMO,
devstack should just set ALLOWED_HOSTS to ['*'].

** Also affects: devstack
   Importance: Undecided
       Status: New

** Changed in: horizon
       Status: In Progress => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1640335

Title:
  DisallowedHost: Invalid HTTP_HOST header

Status in devstack:
  New
Status in OpenStack Dashboard (Horizon):
  Won't Fix

Bug description:
  Every time I start horizon service, it reports the following exception:
  nicira@htb-1n-eng-dhcp8:~/devstack$ sudo tail -f /var/log/apache2/horizon_error.log | sed 's/\\x1b/\o033/g' & echo $! >/opt/stack/status/stack/horizon.pid; fg || echo "horizon failed to start" | tee "/opt/stack/status/stack/horizon.failure"
  [1] 8876
  sudo tail -f /var/log/apache2/horizon_error.log | sed 's/\\x1b/\o033/g'
  2016-11-08 22:44:54.799461     obj = self.var.resolve(context)
  2016-11-08 22:44:54.799471   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789, in resolve
  2016-11-08 22:44:54.799480     value = self._resolve_lookup(context)
  2016-11-08 22:44:54.799488   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 849, in _resolve_lookup
  2016-11-08 22:44:54.799497     current = current()
  2016-11-08 22:44:54.799506   File "/usr/local/lib/python2.7/dist-packages/django/http/request.py", line 152, in build_absolute_uri
  2016-11-08 22:44:54.799515     host=self.get_host(),
  2016-11-08 22:44:54.799524   File "/usr/local/lib/python2.7/dist-packages/django/http/request.py", line 102, in get_host
  2016-11-08 22:44:54.799540     raise DisallowedHost(msg)
  2016-11-08 22:44:54.799568 DisallowedHost: Invalid HTTP_HOST header: '10.162.63.93'. You may need to add u'10.162.63.93' to ALLOWED_HOSTS.

  Horizon UI also reports "Internal Server Error"

  I am using the latest master code for Horizon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/devstack/+bug/1640335/+subscriptions


References