From 836a67e9d26035f0d4f76a34b0f92fd570d5b8b1 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Tue, 23 Apr 2019 14:42:07 +0400 Subject: Patch dhcp agent to avoid unwanted rescheduling Change-Id: Id49f26a2615e2fc06e94eeaf2e9200e83625e6c9 Signed-off-by: Michael Polenchuk (cherry picked from commit 7522bdb0e898144da2b6dc361dbdd549b39bc025) --- mcp/config/states/neutron_dhcp_agent_patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 mcp/config/states/neutron_dhcp_agent_patch (limited to 'mcp/config/states/neutron_dhcp_agent_patch') diff --git a/mcp/config/states/neutron_dhcp_agent_patch b/mcp/config/states/neutron_dhcp_agent_patch new file mode 100755 index 000000000..a9e14bee7 --- /dev/null +++ b/mcp/config/states/neutron_dhcp_agent_patch @@ -0,0 +1,12 @@ +#!/bin/bash -e +############################################################################## +# Copyright (c) 2019 Mirantis Inc., Enea AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +# regression due to https://bugs.launchpad.net/neutron/+bug/1760047 +salt -I 'neutron:gateway' pkg.install python-neutron +salt -I 'neutron:gateway' file.patch /usr/lib/python2.7/dist-packages/neutron/agent/dhcp/agent.py /var/tmp/dhcp_agent.patch || true -- cgit 1.2.3-korg