From a8aa85f2a26256938b0057802ac5521edb594791 Mon Sep 17 00:00:00 2001 From: baigk Date: Sun, 15 Nov 2015 22:59:39 -0800 Subject: vnc console can't be connected JIRA: COMPASS-153 Change-Id: I99e85aea7c35ae6d82fac7b667eadd9577351e01 Signed-off-by: baigk --- deploy/adapters/ansible/openstack/templates/nova.conf | 2 ++ deploy/adapters/ansible/roles/dashboard/tasks/main.yml | 5 +++++ deploy/adapters/ansible/roles/dashboard/vars/main.yml | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deploy/adapters/ansible/openstack/templates/nova.conf b/deploy/adapters/ansible/openstack/templates/nova.conf index ed415915..b15032f5 100644 --- a/deploy/adapters/ansible/openstack/templates/nova.conf +++ b/deploy/adapters/ansible/openstack/templates/nova.conf @@ -49,6 +49,8 @@ notify_on_state_change = vm_and_task_state notification_driver = nova.openstack.common.notifier.rpc_notifier notification_driver = ceilometer.compute.nova_notifier +memcached_servers = {{ internal_vip.ip }}:11211 + [database] # The SQLAlchemy connection string used to connect to the database connection = mysql://nova:{{ NOVA_DBPASS }}@{{ db_host }}/nova diff --git a/deploy/adapters/ansible/roles/dashboard/tasks/main.yml b/deploy/adapters/ansible/roles/dashboard/tasks/main.yml index dd5c6fd0..01c7ebb3 100644 --- a/deploy/adapters/ansible/roles/dashboard/tasks/main.yml +++ b/deploy/adapters/ansible/roles/dashboard/tasks/main.yml @@ -23,6 +23,11 @@ dest=/etc/openstack-dashboard/local_settings.py backup=yes +- name: update memcached conf + lineinfile: dest=/etc/memcached.conf state=present + regexp="-l *" + line="-l {{ internal_vip.ip }}" + - name: restart dashboard services service: name={{ item }} state=restarted enabled=yes with_items: services | union(services_noarch) diff --git a/deploy/adapters/ansible/roles/dashboard/vars/main.yml b/deploy/adapters/ansible/roles/dashboard/vars/main.yml index b6a965c2..39843a3e 100644 --- a/deploy/adapters/ansible/roles/dashboard/vars/main.yml +++ b/deploy/adapters/ansible/roles/dashboard/vars/main.yml @@ -3,4 +3,5 @@ packages_noarch: - memcached - openstack-dashboard -services_noarch: [] +services_noarch: + - memcached -- cgit 1.2.3-korg