Activity log for bug #1399088

Date Who What changed Old value New value Message
2014-12-04 06:56:19 YangLei bug added bug
2014-12-04 07:00:14 YangLei oslo-incubator: assignee YangLei (yanglyy)
2014-12-04 07:16:30 YangLei affects oslo-incubator oslo.log
2014-12-04 07:25:54 OpenStack Infra oslo.log: status New In Progress
2014-12-04 17:06:15 Doug Hellmann oslo.log: status In Progress Incomplete
2014-12-20 08:01:39 OpenStack Infra oslo.log: status Incomplete In Progress
2015-01-06 19:41:17 OpenStack Infra oslo.log: status In Progress Fix Committed
2015-01-15 19:27:58 Doug Hellmann oslo.log: status Fix Committed Fix Released
2015-01-15 19:27:58 Doug Hellmann oslo.log: milestone 0.1.0
2015-01-22 01:48:48 Rochelle Grober bug added subscriber Rochelle Grober
2015-01-29 09:59:35 Simon Pasquier bug task added oslo-incubator
2015-02-02 09:14:59 Simon Pasquier oslo-incubator: assignee Simon Pasquier (simon-pasquier)
2015-02-02 15:34:59 Ben Nemec oslo-incubator: status New Won't Fix
2015-02-02 17:10:14 Ben Nemec oslo-incubator: status Won't Fix Triaged
2015-02-02 17:10:25 Ben Nemec oslo-incubator: importance Undecided Medium
2015-02-03 09:11:29 Simon Pasquier bug added subscriber Patrick Petit
2015-02-03 09:43:06 Simon Pasquier oslo-incubator: status Triaged In Progress
2015-06-16 19:15:45 Liang Chen description correct the position of the syslog Handler syslog Handler should be in front of the line "datefmt = CONF.log_date_format" Then syslog Handler can have the same settings with other handlers. openstack/common/log.py def _setup_logging_from_conf(project, version): log_root = getLogger(None).logger for handler in log_root.handlers: log_root.removeHandler(handler) logpath = _get_log_file_path() if logpath: filelog = logging.handlers.WatchedFileHandler(logpath) log_root.addHandler(filelog) if CONF.use_stderr: streamlog = ColorHandler() log_root.addHandler(streamlog) elif not logpath: # pass sys.stdout as a positional argument # python2.6 calls the argument strm, in 2.7 it's stream streamlog = logging.StreamHandler(sys.stdout) log_root.addHandler(streamlog) if CONF.publish_errors: handler = importutils.import_object( "oslo.messaging.notify.log_handler.PublishErrorsHandler", logging.ERROR) log_root.addHandler(handler) datefmt = CONF.log_date_format for handler in log_root.handlers: # NOTE(alaski): CONF.log_format overrides everything currently. This # should be deprecated in favor of context aware formatting. if CONF.log_format: handler.setFormatter(logging.Formatter(fmt=CONF.log_format, datefmt=datefmt)) log_root.info('Deprecated: log_format is now deprecated and will ' 'be removed in the next release') else: handler.setFormatter(ContextFormatter(project=project, version=version, datefmt=datefmt)) if CONF.debug: log_root.setLevel(logging.DEBUG) elif CONF.verbose: log_root.setLevel(logging.INFO) else: log_root.setLevel(logging.WARNING) for pair in CONF.default_log_levels: mod, _sep, level_name = pair.partition('=') logger = logging.getLogger(mod) # NOTE(AAzza) in python2.6 Logger.setLevel doesn't convert string name # to integer code. if sys.version_info < (2, 7): level = logging.getLevelName(level_name) logger.setLevel(level) else: logger.setLevel(level_name) if CONF.use_syslog: try: facility = _find_facility_from_conf() # TODO(bogdando) use the format provided by RFCSysLogHandler # after existing syslog format deprecation in J if CONF.use_syslog_rfc_format: syslog = RFCSysLogHandler(address='/dev/log', facility=facility) else: syslog = logging.handlers.SysLogHandler(address='/dev/log', facility=facility) log_root.addHandler(syslog) except socket.error: log_root.error('Unable to add syslog handler. Verify that syslog ' 'is running.') [Impact] * syslog handler doesn't have the same settings as other handlers [Test Case] * Set user_syslog to True in nova.conf, restart nova services. Logs written to syslog doesn't have the same format as its own service log [Regression Potential] * none correct the position of the syslog Handler syslog Handler should be in front of the line "datefmt = CONF.log_date_format" Then syslog Handler can have the same settings with other handlers. openstack/common/log.py def _setup_logging_from_conf(project, version):     log_root = getLogger(None).logger     for handler in log_root.handlers:         log_root.removeHandler(handler)     logpath = _get_log_file_path()     if logpath:         filelog = logging.handlers.WatchedFileHandler(logpath)         log_root.addHandler(filelog)     if CONF.use_stderr:         streamlog = ColorHandler()         log_root.addHandler(streamlog)     elif not logpath:         # pass sys.stdout as a positional argument         # python2.6 calls the argument strm, in 2.7 it's stream         streamlog = logging.StreamHandler(sys.stdout)         log_root.addHandler(streamlog)     if CONF.publish_errors:         handler = importutils.import_object(             "oslo.messaging.notify.log_handler.PublishErrorsHandler",             logging.ERROR)         log_root.addHandler(handler)     datefmt = CONF.log_date_format     for handler in log_root.handlers:         # NOTE(alaski): CONF.log_format overrides everything currently. This         # should be deprecated in favor of context aware formatting.         if CONF.log_format:             handler.setFormatter(logging.Formatter(fmt=CONF.log_format,                                                    datefmt=datefmt))             log_root.info('Deprecated: log_format is now deprecated and will '                           'be removed in the next release')         else:             handler.setFormatter(ContextFormatter(project=project,                                                   version=version,                                                   datefmt=datefmt))     if CONF.debug:         log_root.setLevel(logging.DEBUG)     elif CONF.verbose:         log_root.setLevel(logging.INFO)     else:         log_root.setLevel(logging.WARNING)     for pair in CONF.default_log_levels:         mod, _sep, level_name = pair.partition('=')         logger = logging.getLogger(mod)         # NOTE(AAzza) in python2.6 Logger.setLevel doesn't convert string name         # to integer code.         if sys.version_info < (2, 7):             level = logging.getLevelName(level_name)             logger.setLevel(level)         else:             logger.setLevel(level_name)     if CONF.use_syslog:         try:             facility = _find_facility_from_conf()             # TODO(bogdando) use the format provided by RFCSysLogHandler             # after existing syslog format deprecation in J             if CONF.use_syslog_rfc_format:                 syslog = RFCSysLogHandler(address='/dev/log',                                           facility=facility)             else:                 syslog = logging.handlers.SysLogHandler(address='/dev/log',                                                         facility=facility)             log_root.addHandler(syslog)         except socket.error:             log_root.error('Unable to add syslog handler. Verify that syslog '                            'is running.')
2015-06-16 20:40:04 Liang Chen bug task added nova (Ubuntu)
2015-06-16 20:41:12 Liang Chen bug task added cinder (Ubuntu)
2015-06-16 20:42:01 Liang Chen description [Impact] * syslog handler doesn't have the same settings as other handlers [Test Case] * Set user_syslog to True in nova.conf, restart nova services. Logs written to syslog doesn't have the same format as its own service log [Regression Potential] * none correct the position of the syslog Handler syslog Handler should be in front of the line "datefmt = CONF.log_date_format" Then syslog Handler can have the same settings with other handlers. openstack/common/log.py def _setup_logging_from_conf(project, version):     log_root = getLogger(None).logger     for handler in log_root.handlers:         log_root.removeHandler(handler)     logpath = _get_log_file_path()     if logpath:         filelog = logging.handlers.WatchedFileHandler(logpath)         log_root.addHandler(filelog)     if CONF.use_stderr:         streamlog = ColorHandler()         log_root.addHandler(streamlog)     elif not logpath:         # pass sys.stdout as a positional argument         # python2.6 calls the argument strm, in 2.7 it's stream         streamlog = logging.StreamHandler(sys.stdout)         log_root.addHandler(streamlog)     if CONF.publish_errors:         handler = importutils.import_object(             "oslo.messaging.notify.log_handler.PublishErrorsHandler",             logging.ERROR)         log_root.addHandler(handler)     datefmt = CONF.log_date_format     for handler in log_root.handlers:         # NOTE(alaski): CONF.log_format overrides everything currently. This         # should be deprecated in favor of context aware formatting.         if CONF.log_format:             handler.setFormatter(logging.Formatter(fmt=CONF.log_format,                                                    datefmt=datefmt))             log_root.info('Deprecated: log_format is now deprecated and will '                           'be removed in the next release')         else:             handler.setFormatter(ContextFormatter(project=project,                                                   version=version,                                                   datefmt=datefmt))     if CONF.debug:         log_root.setLevel(logging.DEBUG)     elif CONF.verbose:         log_root.setLevel(logging.INFO)     else:         log_root.setLevel(logging.WARNING)     for pair in CONF.default_log_levels:         mod, _sep, level_name = pair.partition('=')         logger = logging.getLogger(mod)         # NOTE(AAzza) in python2.6 Logger.setLevel doesn't convert string name         # to integer code.         if sys.version_info < (2, 7):             level = logging.getLevelName(level_name)             logger.setLevel(level)         else:             logger.setLevel(level_name)     if CONF.use_syslog:         try:             facility = _find_facility_from_conf()             # TODO(bogdando) use the format provided by RFCSysLogHandler             # after existing syslog format deprecation in J             if CONF.use_syslog_rfc_format:                 syslog = RFCSysLogHandler(address='/dev/log',                                           facility=facility)             else:                 syslog = logging.handlers.SysLogHandler(address='/dev/log',                                                         facility=facility)             log_root.addHandler(syslog)         except socket.error:             log_root.error('Unable to add syslog handler. Verify that syslog '                            'is running.') [Impact]  * syslog handler doesn't have the same settings as other handlers [Test Case]  * Set user_syslog to True in nova.conf, restart nova services. Logs    written to syslog doesn't have the same format as its own service    log [Regression Potential]  * none correct the position of the syslog Handler syslog Handler should be in front of the line "datefmt = CONF.log_date_format" Then syslog Handler can have the same settings with other handlers. openstack/common/log.py def _setup_logging_from_conf(project, version):     log_root = getLogger(None).logger     for handler in log_root.handlers:         log_root.removeHandler(handler)     logpath = _get_log_file_path()     if logpath:         filelog = logging.handlers.WatchedFileHandler(logpath)         log_root.addHandler(filelog)     if CONF.use_stderr:         streamlog = ColorHandler()         log_root.addHandler(streamlog)     elif not logpath:         # pass sys.stdout as a positional argument         # python2.6 calls the argument strm, in 2.7 it's stream         streamlog = logging.StreamHandler(sys.stdout)         log_root.addHandler(streamlog)     if CONF.publish_errors:         handler = importutils.import_object(             "oslo.messaging.notify.log_handler.PublishErrorsHandler",             logging.ERROR)         log_root.addHandler(handler)     datefmt = CONF.log_date_format     for handler in log_root.handlers:         # NOTE(alaski): CONF.log_format overrides everything currently. This         # should be deprecated in favor of context aware formatting.         if CONF.log_format:             handler.setFormatter(logging.Formatter(fmt=CONF.log_format,                                                    datefmt=datefmt))             log_root.info('Deprecated: log_format is now deprecated and will '                           'be removed in the next release')         else:             handler.setFormatter(ContextFormatter(project=project,                                                   version=version,                                                   datefmt=datefmt))     if CONF.debug:         log_root.setLevel(logging.DEBUG)     elif CONF.verbose:         log_root.setLevel(logging.INFO)     else:         log_root.setLevel(logging.WARNING)     for pair in CONF.default_log_levels:         mod, _sep, level_name = pair.partition('=')         logger = logging.getLogger(mod)         # NOTE(AAzza) in python2.6 Logger.setLevel doesn't convert string name         # to integer code.         if sys.version_info < (2, 7):             level = logging.getLevelName(level_name)             logger.setLevel(level)         else:             logger.setLevel(level_name)     if CONF.use_syslog:         try:             facility = _find_facility_from_conf()             # TODO(bogdando) use the format provided by RFCSysLogHandler             # after existing syslog format deprecation in J             if CONF.use_syslog_rfc_format:                 syslog = RFCSysLogHandler(address='/dev/log',                                           facility=facility)             else:                 syslog = logging.handlers.SysLogHandler(address='/dev/log',                                                         facility=facility)             log_root.addHandler(syslog)         except socket.error:             log_root.error('Unable to add syslog handler. Verify that syslog '                            'is running.')
2015-06-16 20:46:40 Liang Chen description [Impact]  * syslog handler doesn't have the same settings as other handlers [Test Case]  * Set user_syslog to True in nova.conf, restart nova services. Logs    written to syslog doesn't have the same format as its own service    log [Regression Potential]  * none correct the position of the syslog Handler syslog Handler should be in front of the line "datefmt = CONF.log_date_format" Then syslog Handler can have the same settings with other handlers. openstack/common/log.py def _setup_logging_from_conf(project, version):     log_root = getLogger(None).logger     for handler in log_root.handlers:         log_root.removeHandler(handler)     logpath = _get_log_file_path()     if logpath:         filelog = logging.handlers.WatchedFileHandler(logpath)         log_root.addHandler(filelog)     if CONF.use_stderr:         streamlog = ColorHandler()         log_root.addHandler(streamlog)     elif not logpath:         # pass sys.stdout as a positional argument         # python2.6 calls the argument strm, in 2.7 it's stream         streamlog = logging.StreamHandler(sys.stdout)         log_root.addHandler(streamlog)     if CONF.publish_errors:         handler = importutils.import_object(             "oslo.messaging.notify.log_handler.PublishErrorsHandler",             logging.ERROR)         log_root.addHandler(handler)     datefmt = CONF.log_date_format     for handler in log_root.handlers:         # NOTE(alaski): CONF.log_format overrides everything currently. This         # should be deprecated in favor of context aware formatting.         if CONF.log_format:             handler.setFormatter(logging.Formatter(fmt=CONF.log_format,                                                    datefmt=datefmt))             log_root.info('Deprecated: log_format is now deprecated and will '                           'be removed in the next release')         else:             handler.setFormatter(ContextFormatter(project=project,                                                   version=version,                                                   datefmt=datefmt))     if CONF.debug:         log_root.setLevel(logging.DEBUG)     elif CONF.verbose:         log_root.setLevel(logging.INFO)     else:         log_root.setLevel(logging.WARNING)     for pair in CONF.default_log_levels:         mod, _sep, level_name = pair.partition('=')         logger = logging.getLogger(mod)         # NOTE(AAzza) in python2.6 Logger.setLevel doesn't convert string name         # to integer code.         if sys.version_info < (2, 7):             level = logging.getLevelName(level_name)             logger.setLevel(level)         else:             logger.setLevel(level_name)     if CONF.use_syslog:         try:             facility = _find_facility_from_conf()             # TODO(bogdando) use the format provided by RFCSysLogHandler             # after existing syslog format deprecation in J             if CONF.use_syslog_rfc_format:                 syslog = RFCSysLogHandler(address='/dev/log',                                           facility=facility)             else:                 syslog = logging.handlers.SysLogHandler(address='/dev/log',                                                         facility=facility)             log_root.addHandler(syslog)         except socket.error:             log_root.error('Unable to add syslog handler. Verify that syslog '                            'is running.') Nova SRU: [Impact]  * syslog handler doesn't have the same settings as other handlers [Test Case]  * Set user_syslog to True in nova.conf, restart nova services. Logs    written to syslog doesn't have the same format as its own service    log [Regression Potential]  * none Cinder SRU: [Impact]  * syslog handler doesn't have the same settings as other handlers [Test Case]  * Set user_syslog to True in cinder.conf, restart cinder services. Logs    written to syslog doesn't have the same format as its own service    log [Regression Potential]  * none correct the position of the syslog Handler syslog Handler should be in front of the line "datefmt = CONF.log_date_format" Then syslog Handler can have the same settings with other handlers. openstack/common/log.py def _setup_logging_from_conf(project, version):     log_root = getLogger(None).logger     for handler in log_root.handlers:         log_root.removeHandler(handler)     logpath = _get_log_file_path()     if logpath:         filelog = logging.handlers.WatchedFileHandler(logpath)         log_root.addHandler(filelog)     if CONF.use_stderr:         streamlog = ColorHandler()         log_root.addHandler(streamlog)     elif not logpath:         # pass sys.stdout as a positional argument         # python2.6 calls the argument strm, in 2.7 it's stream         streamlog = logging.StreamHandler(sys.stdout)         log_root.addHandler(streamlog)     if CONF.publish_errors:         handler = importutils.import_object(             "oslo.messaging.notify.log_handler.PublishErrorsHandler",             logging.ERROR)         log_root.addHandler(handler)     datefmt = CONF.log_date_format     for handler in log_root.handlers:         # NOTE(alaski): CONF.log_format overrides everything currently. This         # should be deprecated in favor of context aware formatting.         if CONF.log_format:             handler.setFormatter(logging.Formatter(fmt=CONF.log_format,                                                    datefmt=datefmt))             log_root.info('Deprecated: log_format is now deprecated and will '                           'be removed in the next release')         else:             handler.setFormatter(ContextFormatter(project=project,                                                   version=version,                                                   datefmt=datefmt))     if CONF.debug:         log_root.setLevel(logging.DEBUG)     elif CONF.verbose:         log_root.setLevel(logging.INFO)     else:         log_root.setLevel(logging.WARNING)     for pair in CONF.default_log_levels:         mod, _sep, level_name = pair.partition('=')         logger = logging.getLogger(mod)         # NOTE(AAzza) in python2.6 Logger.setLevel doesn't convert string name         # to integer code.         if sys.version_info < (2, 7):             level = logging.getLevelName(level_name)             logger.setLevel(level)         else:             logger.setLevel(level_name)     if CONF.use_syslog:         try:             facility = _find_facility_from_conf()             # TODO(bogdando) use the format provided by RFCSysLogHandler             # after existing syslog format deprecation in J             if CONF.use_syslog_rfc_format:                 syslog = RFCSysLogHandler(address='/dev/log',                                           facility=facility)             else:                 syslog = logging.handlers.SysLogHandler(address='/dev/log',                                                         facility=facility)             log_root.addHandler(syslog)         except socket.error:             log_root.error('Unable to add syslog handler. Verify that syslog '                            'is running.')
2015-06-18 13:57:51 Edward Hope-Morley description Nova SRU: [Impact]  * syslog handler doesn't have the same settings as other handlers [Test Case]  * Set user_syslog to True in nova.conf, restart nova services. Logs    written to syslog doesn't have the same format as its own service    log [Regression Potential]  * none Cinder SRU: [Impact]  * syslog handler doesn't have the same settings as other handlers [Test Case]  * Set user_syslog to True in cinder.conf, restart cinder services. Logs    written to syslog doesn't have the same format as its own service    log [Regression Potential]  * none correct the position of the syslog Handler syslog Handler should be in front of the line "datefmt = CONF.log_date_format" Then syslog Handler can have the same settings with other handlers. openstack/common/log.py def _setup_logging_from_conf(project, version):     log_root = getLogger(None).logger     for handler in log_root.handlers:         log_root.removeHandler(handler)     logpath = _get_log_file_path()     if logpath:         filelog = logging.handlers.WatchedFileHandler(logpath)         log_root.addHandler(filelog)     if CONF.use_stderr:         streamlog = ColorHandler()         log_root.addHandler(streamlog)     elif not logpath:         # pass sys.stdout as a positional argument         # python2.6 calls the argument strm, in 2.7 it's stream         streamlog = logging.StreamHandler(sys.stdout)         log_root.addHandler(streamlog)     if CONF.publish_errors:         handler = importutils.import_object(             "oslo.messaging.notify.log_handler.PublishErrorsHandler",             logging.ERROR)         log_root.addHandler(handler)     datefmt = CONF.log_date_format     for handler in log_root.handlers:         # NOTE(alaski): CONF.log_format overrides everything currently. This         # should be deprecated in favor of context aware formatting.         if CONF.log_format:             handler.setFormatter(logging.Formatter(fmt=CONF.log_format,                                                    datefmt=datefmt))             log_root.info('Deprecated: log_format is now deprecated and will '                           'be removed in the next release')         else:             handler.setFormatter(ContextFormatter(project=project,                                                   version=version,                                                   datefmt=datefmt))     if CONF.debug:         log_root.setLevel(logging.DEBUG)     elif CONF.verbose:         log_root.setLevel(logging.INFO)     else:         log_root.setLevel(logging.WARNING)     for pair in CONF.default_log_levels:         mod, _sep, level_name = pair.partition('=')         logger = logging.getLogger(mod)         # NOTE(AAzza) in python2.6 Logger.setLevel doesn't convert string name         # to integer code.         if sys.version_info < (2, 7):             level = logging.getLevelName(level_name)             logger.setLevel(level)         else:             logger.setLevel(level_name)     if CONF.use_syslog:         try:             facility = _find_facility_from_conf()             # TODO(bogdando) use the format provided by RFCSysLogHandler             # after existing syslog format deprecation in J             if CONF.use_syslog_rfc_format:                 syslog = RFCSysLogHandler(address='/dev/log',                                           facility=facility)             else:                 syslog = logging.handlers.SysLogHandler(address='/dev/log',                                                         facility=facility)             log_root.addHandler(syslog)         except socket.error:             log_root.error('Unable to add syslog handler. Verify that syslog '                            'is running.') Nova SRU: [Impact]  * syslog handler doesn't have the same settings as other handlers [Test Case]  * Set user_syslog to True in nova.conf, restart nova services. Logs    written to syslog doesn't have the same format as its own service    log [Regression Potential]  * none Cinder SRU: [Impact]  * syslog handler doesn't have the same settings as other handlers [Test Case]  * Set user_syslog to True in cinder.conf, restart cinder services. Logs    written to syslog doesn't have the same format as its own service    log [Regression Potential]  * none
2015-07-13 20:25:12 Davanum Srinivas (DIMS) oslo-incubator: status In Progress Won't Fix
2016-06-09 11:30:01 James Page nova (Ubuntu): status New Fix Released
2016-06-09 11:30:04 James Page cinder (Ubuntu): status New Fix Released