Unable to start placement wsgi app without conf file

Bug #1802925 reported by Chris Dent on 2018-11-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Chris Dent

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',

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

Matt Riedemann (mriedem) on 2018-11-15
Changed in nova:
status: New → Triaged
importance: Undecided → Low
Chris Dent (cdent) wrote :

in progress with https://review.openstack.org/#/c/619049/

not sure why things aren't being automatic

Changed in nova:
status: Triaged → In Progress
assignee: nobody → Chris Dent (cdent)
Chris Dent (cdent) on 2019-03-04
Changed in nova:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers