Set nova disk cachemodes to file directsync 31/52231/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 16 Feb 2018 09:20:41 +0000 (13:20 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 16 Feb 2018 12:13:05 +0000 (16:13 +0400)
Set nova/libvirt disk cache modes to file directsync to bypass the
host page cache & prevent instance's kernel panic due to absent
/dev partition. Caching mode directsync effectively turns all guest
I/O operations into direct I/O operations on the host, which is the
NFS client (virtuals) or GlusterFS (baremetals).
Also return back to hwe kernel as a golden mean between GA & Edge ones.

Change-Id: I51ab7d0ee71c214ff16b756cfee16e918738b6fd
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/scenario/defaults-x86_64.yaml
mcp/reclass/classes/cluster/mcp-pike-common-ha/infra/maas.yml
mcp/reclass/classes/cluster/mcp-pike-common-ha/openstack_compute.yml
mcp/reclass/classes/cluster/mcp-pike-common-noha/openstack_compute.yml

index 18b0826..b9c4072 100644 (file)
@@ -20,6 +20,7 @@ virtual:
         - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.11 xenial main
     pkg:
       install:
+        - linux-generic-hwe-16.04
         - salt-minion
   control:
     pkg:
index 1fd5987..e14d2a9 100644 (file)
@@ -24,7 +24,7 @@ parameters:
     maas_db_password: opnfv_secret
     dns_server01: ${_param:opnfv_dns_server01}
     single_address: ${_param:infra_maas_node01_deploy_address}
-    hwe_kernel: 'ga-16.04'
+    hwe_kernel: 'hwe-16.04'
   maas:
     region:
       salt_master_ip: ${_param:reclass_config_master}
index 7f81d7a..2e79f80 100644 (file)
@@ -56,3 +56,6 @@ parameters:
   neutron:
     gateway:
       vlan_aware_vms: true
+  nova:
+    compute:
+      disk_cachemodes: file=directsync,block=none
index 710dee8..ea2275a 100644 (file)
@@ -25,6 +25,7 @@ parameters:
     compute:
       libvirt_service: libvirtd
       libvirt_bin: /etc/default/libvirtd
+      disk_cachemodes: file=directsync,block=none
       vncproxy_url: http://${_param:cluster_vip_address}:6080
       network:
         region: ${_param:openstack_region}