dlrnapi promoter script failing "ERROR promoter global name 'config_file' is not defined"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
John Trowbridge |
Bug Description
Today (2018-03-08) @ 12:32 the promoters all started failing with the following:
2018-03-20 12:32:01,641 17656 ERROR promoter global name 'config_file' is not defined
Traceback (most recent call last):
File "/home/
promoter(
File "/home/
logger.
NameError: global name 'config_file' is not defined
---
http://
http://
http://
http://
---
This is likely related to:
https:/
https:/
```
-def promoter(
- config = ConfigParser.
- config.
-
- setup_logging(
+def promoter(config):
logger = logging.
release = config.get('main', 'release')
@@ -314,4 +310,11 @@ def promoter(
if len(sys.argv) < 2:
else:
- promoter(
+ config = ConfigParser.
+ config.
+ setup_logging(
+ logger = logging.
+ try:
+ promoter(config)
+ except Exception as e:
+ logger.exception(e)
```
Which was merged on/about the same time
patch uploaded for this...
https:/ /review. rdoproject. org/r/# /c/12998/