vnc console can't be connected 97/3297/2
authorbaigk <baiguoku@huawei.com>
Mon, 16 Nov 2015 06:59:39 +0000 (22:59 -0800)
committerbaigk <baiguoku@huawei.com>
Mon, 16 Nov 2015 07:03:13 +0000 (07:03 +0000)
JIRA: COMPASS-153

Change-Id: I99e85aea7c35ae6d82fac7b667eadd9577351e01
Signed-off-by: baigk <baiguoku@huawei.com>
deploy/adapters/ansible/openstack/templates/nova.conf
deploy/adapters/ansible/roles/dashboard/tasks/main.yml
deploy/adapters/ansible/roles/dashboard/vars/main.yml

index ed41591..b15032f 100644 (file)
@@ -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
index dd5c6fd..01c7ebb 100644 (file)
             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)
index b6a965c..39843a3 100644 (file)
@@ -3,4 +3,5 @@ packages_noarch:
   - memcached
   - openstack-dashboard
 
-services_noarch: []
+services_noarch:
+  - memcached