← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2067557] Re: neutron-fwaas-migrate-v1-to-v2 consistently fails becasue oslo.log options are not registerd

 

Reviewed:  https://review.opendev.org/c/openstack/neutron-fwaas/+/920803
Committed: https://opendev.org/openstack/neutron-fwaas/commit/623d66cb0896c9d3ff154b7e8e23d8c9f2674926
Submitter: "Zuul (22348)"
Branch:    master

commit 623d66cb0896c9d3ff154b7e8e23d8c9f2674926
Author: Takashi Kajinami <kajinamit@xxxxxxxxxxxxxxx>
Date:   Thu May 30 12:55:14 2024 +0900

    Fix missing oslo.log options in migration tool
    
    The migration tool does not register the oslo.log options so fails to
    set up its logger. Ensure that the options are loaded before
    setup_logging call to fix it.
    
    Closes-Bug: #2067557
    Change-Id: I902f49f4efa0da80021c2eda4b7fcb63cc1310b0


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2067557

Title:
  neutron-fwaas-migrate-v1-to-v2 consistently fails becasue oslo.log
  options are not registerd

Status in neutron:
  Fix Released

Bug description:
  While attempting to run the neutron-fwaas-migrate-v1-to-v2 tool in CI,
  it was discovered that the tool consistently fails with the following
  traceback.

  ```
  Traceback (most recent call last):
    File "/opt/stack/data/venv/bin/neutron-fwaas-migrate-v1-to-v2", line 8, in <module>
      sys.exit(main())
    File "/opt/stack/neutron-fwaas/neutron_fwaas/cmd/v1_to_v2_db_migration.py", line 127, in main
      config.setup_logging()
    File "/opt/stack/neutron/neutron/common/config.py", line 118, in setup_logging
      logging.setup(cfg.CONF, product_name, fix_eventlet=False)
    File "/opt/stack/data/venv/lib/python3.10/site-packages/oslo_log/log.py", line 293, in setup
      if conf.log_config_append:
    File "/opt/stack/data/venv/lib/python3.10/site-packages/oslo_config/cfg.py", line 2234, in __getattr__
      raise NoSuchOptError(name)
  oslo_config.cfg.NoSuchOptError: no such option log_config_append in group [DEFAULT]
  ```

  An example can be found in
  https://zuul.opendev.org/t/openstack/build/c3ac253e9cb14a4da72d28b9749f0237
  .

  The exception is raised because oslo.log options are not registered
  properly before setting up a logger instance.

  The issue is seen in master but is probably present in stable
  branches.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2067557/+subscriptions



References