← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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.

** Affects: neutron
     Importance: Undecided
     Assignee: Takashi Kajinami (kajinamit)
         Status: In Progress


** Tags: fwaas

** Description changed:

  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)
+   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.

** Changed in: neutron
     Assignee: (unassigned) => Takashi Kajinami (kajinamit)

-- 
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:
  In Progress

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



Follow ups