Incorrect openstack host in dashboard settings

Bug #1349354 reported by Sergey Murashov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Critical
Bogdan Dobrelya

Bug Description

ISO: {"build_id": "2014-07-28_00-31-14", "mirantis": "yes", "build_number": "149", "ostf_sha": "09b6bccf7d476771ac859bb3c76c9ebec9da9e1f", "nailgun_sha": "3f19a97e4f250c49742655ef94edd6e33cc9845a", "production": "docker", "api": "1.0", "fuelmain_sha": "9aa2e3f4d60337a4fa75b0dd9e1c904dc1221102", "astute_sha": "6db5f5031b74e67b92fcac1f7998eaa296d68025", "release": "5.0.1", "fuellib_sha": "19acf67997492580beede54d54895c876e1f3f18"}

Steps To Reproduce:
1. Install Openstack in HA mode (Ubuntu, 3 controllers, 1 compute, 1 ceph, Neutron GRE)
2. Login to Horizon dashboard.

Actual Result:
On controllers in file /etc/openstack-dashboard/local_settings.py we can see that OPENSTACK_HOST specified IP of the first controller instead cloud public IP.

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

In the result we can see the HA doesn't work because we have 3 controllers with Horizon, which configured to use API from the first controller. In case of all HA nodes active it will work, but when first controller will going offline we will lost connectivity to Horizon dashboard: we can't login to dashboard and perform any actions, because all API requests will be send to the first contrller.

We can easily fix this issue, need to set VIP address istead of address of first controller in Horizon config:
OPENSTACK_HOST="VIP of OpenStack cloud in HA mode"

Changed in fuel:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Vladimir Kuklin (vkuklin)
milestone: none → 5.1
tags: added: ha horizon low-hanging-fruit
description: updated
Revision history for this message
Artem Panchenko (apanchenko-8) wrote :

Can't reproduce this issue on 5.0.1 (149 iso):

api: '1.0'
astute_sha: 6db5f5031b74e67b92fcac1f7998eaa296d68025
build_id: 2014-07-28_00-31-14
build_number: '149'
fuellib_sha: 19acf67997492580beede54d54895c876e1f3f18
fuelmain_sha: 9aa2e3f4d60337a4fa75b0dd9e1c904dc1221102
mirantis: 'yes'
nailgun_sha: 3f19a97e4f250c49742655ef94edd6e33cc9845a
ostf_sha: 09b6bccf7d476771ac859bb3c76c9ebec9da9e1f
production: docker
release: 5.0.1

HA, Ubuntu, Neutron+Gre, Ceph for images
3 controllers, 1 compute, 1 cinder, 2 ceph nodes

[root@fuelweb ~]# fuel node | awk '/ready.*controller/ {print $1}' | xargs -n1 -i ssh 2>/dev/null node-{} "grep ^OPENSTACK_HOST /etc/openstack-dashboard/local_settings.py"
OPENSTACK_HOST = "192.168.0.2"
OPENSTACK_HOST = "192.168.0.2"
OPENSTACK_HOST = "192.168.0.2"

root@node-1:~# cat /etc/haproxy/conf.d/020-keystone-1.cfg

listen keystone-1
  bind 172.18.166.198:5000
  bind 192.168.0.2:5000
  balance roundrobin
  option httplog
  server node-1 192.168.0.3:5000 check
  server node-2 192.168.0.4:5000 check
  server node-3 192.168.0.5:5000 check

Changed in fuel:
assignee: Vladimir Kuklin (vkuklin) → Fuel Library Team (fuel-library)
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Bogdan Dobrelya (bogdando)
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Changed in fuel:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.