From d5bfd9106148eec91f1109ea7f88b6fb41cd69d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jason=20K=C3=B6lker?= Date: Mon, 28 Jan 2013 17:06:11 -0600 Subject: [PATCH] Set default lock_path in state_path * Set the default lock_path to be within quantum's state_path * Fixes bug 1107950 Change-Id: I346d6088d773b508b4a7ba925fdc91fd4f5bf160 --- quantum/agent/linux/iptables_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quantum/agent/linux/iptables_manager.py b/quantum/agent/linux/iptables_manager.py index 835fc36e4..67942bed7 100644 --- a/quantum/agent/linux/iptables_manager.py +++ b/quantum/agent/linux/iptables_manager.py @@ -25,6 +25,7 @@ import inspect import os from quantum.agent.linux import utils +from quantum.openstack.common import cfg from quantum.openstack.common import lockutils from quantum.openstack.common import log as logging @@ -34,6 +35,7 @@ LOG = logging.getLogger(__name__) # so we limit it to 16 characters. # (max_chain_name_length - len('-POSTROUTING') == 16) binary_name = os.path.basename(inspect.stack()[-1][1])[:16] +cfg.CONF.set_default('lock_path', '$state_path/lock') class IptablesRule(object): -- 2.45.2