summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2018-06-22 16:57:44 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2018-06-22 17:16:04 +0400
commit3772a3e49e09f6cf9864c56a3ac0170cc0134329 (patch)
tree4633104a373c13b4f57c1adcb2dec1e080ccf37a /mcp/reclass/classes
parent8c6edbc3875a1574175b7263b566c57704ea718a (diff)
[ha] Update pymysql to version 0.8
* get latest pymysql from UCA repo * set DB connection recycle time to avoid issue with broken database connection during query (MySQL server has gone away) * set haproxy source balacing mode for neutron API to avoid race condition with duplicate security groups * get libvirt/qemu from UCA repo on compute nodes since main process of libvirt exits (is killed by 11/SEGV [segfault]) during volume attaching operation Change-Id: Iead5ecc561683876c476357f4a4de8780775aa7b Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/reclass/classes')
-rw-r--r--mcp/reclass/classes/cluster/mcp-common-ha/openstack_compute.yml3
-rw-r--r--mcp/reclass/classes/cluster/mcp-common-ha/openstack_control.yml.j240
-rw-r--r--mcp/reclass/classes/cluster/mcp-common-ha/openstack_init.yml.j25
3 files changed, 38 insertions, 10 deletions
diff --git a/mcp/reclass/classes/cluster/mcp-common-ha/openstack_compute.yml b/mcp/reclass/classes/cluster/mcp-common-ha/openstack_compute.yml
index 4a0764fd9..90cbb87bb 100644
--- a/mcp/reclass/classes/cluster/mcp-common-ha/openstack_compute.yml
+++ b/mcp/reclass/classes/cluster/mcp-common-ha/openstack_compute.yml
@@ -7,7 +7,6 @@
##############################################################################
---
classes:
- - system.linux.system.repo.mcp.mirror.v1.openstack
- system.linux.system.repo.glusterfs
- system.glusterfs.client.cluster
- system.nova.compute.cluster
@@ -51,6 +50,8 @@ parameters:
lvm-driver:
# Align system.cinder.volume.backend.lvm and MaaS data
volume_group: ${linux:storage:lvm:cinder-vg:name}
+ database:
+ connection_recycle_time: ${_param:db_connection_recycle_time}
linux:
storage:
lvm:
diff --git a/mcp/reclass/classes/cluster/mcp-common-ha/openstack_control.yml.j2 b/mcp/reclass/classes/cluster/mcp-common-ha/openstack_control.yml.j2
index ceb3622b1..38fe06a89 100644
--- a/mcp/reclass/classes/cluster/mcp-common-ha/openstack_control.yml.j2
+++ b/mcp/reclass/classes/cluster/mcp-common-ha/openstack_control.yml.j2
@@ -67,9 +67,37 @@ parameters:
cluster_node03_address: ${_param:openstack_control_node03_address}
nova_vncproxy_url: https://${_param:cluster_public_host}:6080
glusterfs_version: '3.13'
+ nova:
+ controller: &db_conn_recycle_time
+ database:
+ connection_recycle_time: ${_param:db_connection_recycle_time}
+ cinder:
+ controller:
+ <<: *db_conn_recycle_time
+ neutron:
+ server:
+ <<: *db_conn_recycle_time
+ vlan_aware_vms: true
+ root_helper_daemon: false
+ keystone:
+ server:
+ <<: *db_conn_recycle_time
+ cacert: /etc/ssl/certs/mcp_os_cacert
+ openrc_extra:
+ volume_device_name: vdc
+ glance:
+ server:
+ <<: *db_conn_recycle_time
+ aodh:
+ server:
+ <<: *db_conn_recycle_time
+ panko:
+ server:
+ <<: *db_conn_recycle_time
{%- if conf.MCP_VCP %}
heat:
server:
+ <<: *db_conn_recycle_time
metadata:
host: ${_param:openstack_proxy_control_address}
port: 8000
@@ -119,20 +147,14 @@ parameters:
diagnostics.client-log-level: WARNING
diagnostics.brick-log-level: WARNING
{%- endif %}
- neutron:
- server:
- vlan_aware_vms: true
- root_helper_daemon: false
- keystone:
- server:
- cacert: /etc/ssl/certs/mcp_os_cacert
- openrc_extra:
- volume_device_name: vdc
haproxy:
proxy:
listen:
heat_cloudwatch_api:
enabled: false
+ neutron_api:
+ # Set source balancing
+ type: heat
bind:
server:
control:
diff --git a/mcp/reclass/classes/cluster/mcp-common-ha/openstack_init.yml.j2 b/mcp/reclass/classes/cluster/mcp-common-ha/openstack_init.yml.j2
index 15b93187d..1e641b6bd 100644
--- a/mcp/reclass/classes/cluster/mcp-common-ha/openstack_init.yml.j2
+++ b/mcp/reclass/classes/cluster/mcp-common-ha/openstack_init.yml.j2
@@ -123,6 +123,7 @@ parameters:
openstack_region: RegionOne
admin_email: root@localhost
+ db_connection_recycle_time: 300
# Neutron osv/nodvr
neutron_control_dvr: 'False'
neutron_global_physnet_mtu: 1500
@@ -247,6 +248,10 @@ parameters:
source: "deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/${_param:openstack_version} main"
key_id: EC4926EA
key_server: keyserver.ubuntu.com
+ pin:
+ - pin: 'release o=Canonical'
+ priority: 1200
+ package: 'python-pymysql'
kernel:
sysctl:
net.ipv4.tcp_congestion_control: yeah