Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-966

openstack plugins failed to output log messages

XMLWordPrintable

      multicloud openstack plugins boots up with following exceptions, which results failing to output log message into log file.

          • Operational MODE: preforking ***
            /usr/local/lib/python3.7/site-packages/onaplogging/logWatchDog.py:29: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
            return yaml.load(f.read())
            Traceback (most recent call last):
            File "/usr/local/lib/python3.7/logging/config.py", line 563, in configure
            handler = self.configure_handler(handlers[name])
            File "/usr/local/lib/python3.7/logging/config.py", line 736, in configure_handler
            result = factory(**kwargs)
            File "/usr/local/lib/python3.7/logging/handlers.py", line 146, in _init_
            if maxBytes > 0:
            TypeError: '>' not supported between instances of 'str' and 'int'

      The above exception was the direct cause of the following exception:

      Traceback (most recent call last):
      File "/usr/local/lib/python3.7/site-packages/onaplogging/logWatchDog.py", line 83, in _yamlConfig
      config.dictConfig(dictConfig)
      File "/usr/local/lib/python3.7/logging/config.py", line 800, in dictConfig
      dictConfigClass(config).configure()
      File "/usr/local/lib/python3.7/logging/config.py", line 571, in configure
      '%r' % name) from e
      ValueError: Unable to configure handler 'pike_handler'

      The root cause is that the yml loader does not calc numbers as below:
      handlers:
      titanium_cloud_handler:
      maxBytes: 1024*1024*50

      Change it to a number as below fixes the issue
      maxBytes: 52428800

            biny993 biny993
            biny993 biny993
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: