]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Merge "Add 'conf' param for TextGuruMeditation autorun setup"
authorJenkins <jenkins@review.openstack.org>
Thu, 3 Mar 2016 19:01:46 +0000 (19:01 +0000)
committerGerrit Code Review <review@openstack.org>
Thu, 3 Mar 2016 19:01:46 +0000 (19:01 +0000)
1  2 
cinder/cmd/api.py
cinder/cmd/backup.py
cinder/cmd/scheduler.py
cinder/cmd/volume.py

index 7fe1cb56d5a5d1d8412b6f143a040b45af4cc05b,0115b1f4ea91b4e850299f9bf99a005593628feb..80e25eed496d9baccc85dad0b93ac930ca6ca598
@@@ -48,10 -49,9 +50,10 @@@ def main()
      CONF(sys.argv[1:], project='cinder',
           version=version.version_string())
      logging.setup(CONF, "cinder")
 +    python_logging.captureWarnings(True)
      utils.monkey_patch()
  
-     gmr.TextGuruMeditation.setup_autorun(version)
+     gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
  
      rpc.init(CONF)
      launcher = service.process_launcher()
index 1fb8c1512a0cccbd537345a15e820644b28c61d9,1ac0b2b0049d527bdd08d309eda35173ec8de843..19691b551c03efd5e2bf00a1bc8c289891a6744c
@@@ -46,9 -47,8 +48,9 @@@ def main()
      CONF(sys.argv[1:], project='cinder',
           version=version.version_string())
      logging.setup(CONF, "cinder")
 +    python_logging.captureWarnings(True)
      utils.monkey_patch()
-     gmr.TextGuruMeditation.setup_autorun(version)
+     gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
      server = service.Service.create(binary='cinder-backup')
      service.serve(server)
      service.wait()
index 9692fafe9f5e7002b5f8c2d91c2b02861b829f1a,706330f849ea0c0f5691846751f520855c2b0c3d..3b3c1033268c7d6dc7e558a631c5ac559d24b777
@@@ -46,9 -47,8 +48,9 @@@ def main()
      CONF(sys.argv[1:], project='cinder',
           version=version.version_string())
      logging.setup(CONF, "cinder")
 +    python_logging.captureWarnings(True)
      utils.monkey_patch()
-     gmr.TextGuruMeditation.setup_autorun(version)
+     gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
      server = service.Service.create(binary='cinder-scheduler')
      service.serve(server)
      service.wait()
index a20344c6de3e7a545bfd8be7899c519f8665440d,31013e7d68e6d6451ba7bfce53d7ca65178cbdd9..580c9265cd22ed96a68e04caeebe25e579baac81
@@@ -61,9 -62,8 +63,9 @@@ def main()
      CONF(sys.argv[1:], project='cinder',
           version=version.version_string())
      logging.setup(CONF, "cinder")
 +    python_logging.captureWarnings(True)
      utils.monkey_patch()
-     gmr.TextGuruMeditation.setup_autorun(version)
+     gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
      launcher = service.get_launcher()
      LOG = logging.getLogger(__name__)
      service_started = False