Merge "Undercloud - Restart keepalived on update" into stable/rocky

This commit is contained in:
Zuul 2018-10-03 19:30:19 +00:00 committed by Gerrit Code Review
commit 8613791dfc
4 changed files with 39 additions and 0 deletions

View File

@ -2,6 +2,7 @@ resource_registry:
OS::TripleO::Network::Ports::RedisVipPort: ../network/ports/noop.yaml
OS::TripleO::Network::Ports::ControlPlaneVipPort: ../deployed-server/deployed-neutron-port.yaml
OS::TripleO::Undercloud::Net::SoftwareConfig: ../net-config-undercloud.yaml
OS::TripleO::NodeExtraConfig: ../extraconfig/pre_deploy/undercloud_pre.yaml
OS::TripleO::NodeExtraConfigPost: ../extraconfig/post_deploy/undercloud_post.yaml
OS::TripleO::Services::DockerRegistry: ../puppet/services/docker-registry.yaml
OS::TripleO::Services::ContainerImagePrepare: ../puppet/services/container-image-prepare.yaml

View File

@ -0,0 +1,8 @@
#!/bin/bash
# This needs to be run after os-net-config. since os-net-config potentially can
# restart network interfaces, which would affects VIPs controlled by
# keepalived.
# TODO(hjensas): Remove this when we have keepalived 2.0.6 or later.
docker container restart keepalived || true

View File

@ -0,0 +1,23 @@
heat_template_version: rocky
description: >
Pre-deployment for the TripleO undercloud
parameters:
server:
type: string
resources:
UndercloudPreConfig:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: {get_file: ./undercloud_pre.sh}
UndercloudPreDeployment:
type: OS::Heat::SoftwareDeployment
properties:
name: UndercloudPreDeployment
server: {get_param: server}
config: {get_resource: UndercloudPreConfig}

View File

@ -0,0 +1,7 @@
---
fixes:
- |
An issue causing undercloud installer re-run (or update) to fail because
VIP's where lost in case the networking configuration was changed has been
fixed. See `Bug: 1791238
<https://bugs.launchpad.net/tripleo/+bug/1791238>`_.