Skip to content

Commit

Permalink
Set default lock_path in state_path
Browse files Browse the repository at this point in the history
* Set the default lock_path to be within quantum's state_path
* Fixes bug 1107950

Change-Id: I346d6088d773b508b4a7ba925fdc91fd4f5bf160
  • Loading branch information
jkoelker committed Jan 28, 2013
1 parent 5db8a22 commit d5bfd91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quantum/agent/linux/iptables_manager.py
Expand Up @@ -25,6 +25,7 @@
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

Expand All @@ -34,6 +35,7 @@
# 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):
Expand Down

0 comments on commit d5bfd91

Please sign in to comment.