← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1802925] [NEW] Unable to start placement wsgi app without conf file

 

Public bug reported:

oslo_config allows configuration to come from the process environment
(e.g., OS_PLACEMENT_DATABASE__CONNECTION). This was developed to allow
services that use oslo_config to hosted within immutable containers.

However, as currently written, the placement-wsgi app (in both nova and
placement) cannot start if there isn't at least an empty placement.conf,
either in /etc/placement or in the directory defined by
OS_PLACEMENT_CONFIG_DIR.

It's easy enough to work around this: set the empty file in the
container and forget about it.

In placement/wsgi.py:

    conf.CONF(argv[1:], project='placement',
              version=version_info.version_string(),
              default_config_files=default_config_files)

is the call that causes the problem, because default_config_files is
always non-None, even when the original default is being used. We can
fix this by only setting the value when a non default is being used.

(This is possible now that placement is placement, not nova).

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: placement

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1802925

Title:
  Unable to start placement wsgi app without conf file

Status in OpenStack Compute (nova):
  New

Bug description:
  oslo_config allows configuration to come from the process environment
  (e.g., OS_PLACEMENT_DATABASE__CONNECTION). This was developed to allow
  services that use oslo_config to hosted within immutable containers.

  However, as currently written, the placement-wsgi app (in both nova
  and placement) cannot start if there isn't at least an empty
  placement.conf, either in /etc/placement or in the directory defined
  by OS_PLACEMENT_CONFIG_DIR.

  It's easy enough to work around this: set the empty file in the
  container and forget about it.

  In placement/wsgi.py:

      conf.CONF(argv[1:], project='placement',
                version=version_info.version_string(),
                default_config_files=default_config_files)

  is the call that causes the problem, because default_config_files is
  always non-None, even when the original default is being used. We can
  fix this by only setting the value when a non default is being used.

  (This is possible now that placement is placement, not nova).

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


Follow ups