Rectify nova placement API check 67/58667/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Mon, 18 Jun 2018 12:46:25 +0000 (16:46 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Mon, 18 Jun 2018 13:13:52 +0000 (17:13 +0400)
* make a GET request to placement service as it returns 200 with
  version data starting from nova 17.0
* turn on nova image preallocation mode on baremetal computes
* double salt worker threads by number of available CPU

Change-Id: I509cbab3b4b8460452f5e487e457edfedd5da29a
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml
mcp/reclass/classes/cluster/mcp-common-ha/openstack_compute.yml
mcp/reclass/classes/cluster/mcp-common-ha/openstack_control.yml.j2
mcp/reclass/classes/cluster/mcp-common-noha/haproxy_openstack_api.yml
mcp/reclass/classes/cluster/mcp-common-noha/infra/config.yml

index 06c4ebd..208393e 100644 (file)
@@ -67,7 +67,7 @@ parameters:
     master:
       accept_policy: open_mode
       file_recv: true
-      worker_threads: 4
+      worker_threads: 8
       command_timeout: 20
   reclass:
     storage:
index c793f97..c860546 100644 (file)
@@ -71,3 +71,4 @@ parameters:
   nova:
     compute:
       disk_cachemodes: file=directsync,block=none
+      preallocate_images: space
index 52f5f91..1870cc4 100644 (file)
@@ -21,7 +21,7 @@ classes:
   - system.designate.server.cluster
   - system.designate.server.backend.bind
   - system.bind.server.single
-  - system.haproxy.proxy.listen.openstack.nova-placement
+  - system.haproxy.proxy.listen.openstack.placement
   - system.glusterfs.client.cluster
   - system.glusterfs.client.volume.glance
   - system.glusterfs.client.volume.keystone
@@ -134,11 +134,6 @@ parameters:
   haproxy:
     proxy:
       listen:
-        nova_placement_api:
-          health-check:
-            http:
-              ~options:
-                - expect status 405
         heat_cloudwatch_api:
           enabled: false
   bind:
index 881d90d..9fe5247 100644 (file)
@@ -101,17 +101,10 @@ parameters:
               port: 9696
               params: ${_param:haproxy_check}
         nova_placement_api:
-          mode: http
+          type: openstack-service
           binds:
             - address: ${_param:cluster_vip_address}
               port: 8778
-          options:
-            - httpclose
-            - httplog
-          health-check:
-            http:
-              options:
-                - expect status 405
           servers:
             - name: ctl01
               host: ${_param:cluster_node01_address}
index 22bf6d8..0a2924b 100644 (file)
@@ -54,7 +54,7 @@ parameters:
   salt:
     master:
       file_recv: true
-      worker_threads: 2
+      worker_threads: 4
       command_timeout: 20
   reclass:
     storage: