Add Version number in logs at start.
Report the version number on startup of verifier and worker daemons to make debugging of deployments easier. Change-Id: Ib6f9008ab103a67d958004e7151f30065daa5a3d
This commit is contained in:
parent
89ff15391b
commit
69e04b1c3a
@ -10,4 +10,3 @@ requests
|
||||
south
|
||||
sphinxcontrib-httpdomain
|
||||
pbr
|
||||
mock==2.0.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
coverage
|
||||
hacking
|
||||
mock==2.0.0
|
||||
mox
|
||||
nose
|
||||
nose-exclude
|
||||
|
@ -1,5 +1,6 @@
|
||||
[metadata]
|
||||
name = stacktach
|
||||
version = 2.2
|
||||
author = Dark Secret Software Inc., Rackspace Hosting
|
||||
author-email = admin@darksecretsoftware.com
|
||||
summary = OpenStack Monitoring and Billing
|
||||
@ -19,4 +20,4 @@ keywords =
|
||||
distutils
|
||||
[files]
|
||||
packages =
|
||||
stacktach
|
||||
stacktach
|
||||
|
8
stacktach/version.py
Normal file
8
stacktach/version.py
Normal file
@ -0,0 +1,8 @@
|
||||
import pbr.version
|
||||
|
||||
|
||||
version_info = pbr.version.VersionInfo('stacktach')
|
||||
|
||||
|
||||
def get_version():
|
||||
return version_info.version_string()
|
@ -30,6 +30,7 @@ if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'stacktach')):
|
||||
sys.path.insert(0, POSSIBLE_TOPDIR)
|
||||
from stacktach import stacklog
|
||||
from stacktach import reconciler
|
||||
from stacktach import version
|
||||
from verifier import nova_verifier
|
||||
from verifier import glance_verifier
|
||||
import verifier.config as verifier_config
|
||||
@ -186,7 +187,8 @@ if __name__ == '__main__':
|
||||
signal.signal(signal.SIGTERM, kill_time)
|
||||
signal.signal(signal.SIGUSR1, kill_time)
|
||||
|
||||
logger.info("Starting Verifiers...")
|
||||
ver = "(Version: %s )" % version.get_version()
|
||||
logger.info("Starting Verifiers %s..." % ver)
|
||||
while RUNNING:
|
||||
check_or_start_all()
|
||||
time.sleep(30)
|
||||
|
@ -12,6 +12,7 @@ if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'stacktach')):
|
||||
sys.path.insert(0, POSSIBLE_TOPDIR)
|
||||
|
||||
from stacktach import db, stacklog
|
||||
from stacktach import version
|
||||
from django.db import close_connection
|
||||
|
||||
import worker.worker as worker
|
||||
@ -130,7 +131,8 @@ if __name__ == '__main__':
|
||||
signal.signal(signal.SIGINT, kill_time)
|
||||
signal.signal(signal.SIGTERM, kill_time)
|
||||
|
||||
logger.info("Starting Workers...")
|
||||
ver = "(Version: %s )" % version.get_version()
|
||||
logger.info("Starting Workers %s..." % ver)
|
||||
while RUNNING:
|
||||
check_or_start_all()
|
||||
time.sleep(30)
|
||||
|
Loading…
Reference in New Issue
Block a user