summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-06 16:15:30 +0000
committerGerrit Code Review <review@openstack.org>2012-08-06 16:15:30 +0000
commitd752c49ce06ad0dd3f513bc255c2d7e3ea6ee8ae (patch)
treebc5494c47189e9e9bb0b99d7ec330c458972107d /tools
parent51002f0d0f85f077bbbfed1d151df59240775ff8 (diff)
parent2c1524866acb9f9ac3f50dc7d33338cfb03fd08a (diff)
downloadnova-d752c49ce06ad0dd3f513bc255c2d7e3ea6ee8ae.tar.gz
nova-d752c49ce06ad0dd3f513bc255c2d7e3ea6ee8ae.tar.xz
nova-d752c49ce06ad0dd3f513bc255c2d7e3ea6ee8ae.zip
Merge "Improve external lock implementation"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/clean_file_locks.py63
-rw-r--r--tools/pip-requires1
2 files changed, 0 insertions, 64 deletions
diff --git a/tools/clean_file_locks.py b/tools/clean_file_locks.py
deleted file mode 100755
index 39b7d695b..000000000
--- a/tools/clean_file_locks.py
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright 2012 La Honda Research Center, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""clean_file_locks.py - Cleans stale interprocess locks
-
-This rountine can be used to find and delete stale lock files from
-nova's interprocess synchroization. It can be used safely while services
-are running.
-
-"""
-
-import logging
-import optparse
-
-from nova import flags
-from nova.openstack.common import log
-from nova import utils
-
-
-LOG = log.getLogger('nova.utils')
-FLAGS = flags.FLAGS
-
-
-def parse_options():
- """process command line options."""
-
- parser = optparse.OptionParser('usage: %prog [options]')
- parser.add_option('--verbose', action='store_true',
- help='List lock files found and deleted')
-
- options, args = parser.parse_args()
-
- return options, args
-
-
-def main():
- """Main loop."""
- options, args = parse_options()
- verbose = options.verbose
-
- if verbose:
- LOG.logger.setLevel(logging.DEBUG)
- else:
- LOG.logger.setLevel(logging.INFO)
- LOG.info('Cleaning stale locks from %s' % FLAGS.lock_path)
- utils.cleanup_file_locks()
- LOG.info('Finished')
-
-if __name__ == '__main__':
- main()
diff --git a/tools/pip-requires b/tools/pip-requires
index 8e598e84b..9529b278f 100644
--- a/tools/pip-requires
+++ b/tools/pip-requires
@@ -5,7 +5,6 @@ anyjson==0.2.4
boto==2.1.1
eventlet>=0.9.17
kombu==1.0.4
-lockfile==0.8
lxml==2.3
python-daemon==1.5.5
routes==1.12.3