Move logging output for most services to systemd. Add a hook in snap.openstack to tell OpenStack services to wait until we set database.ready in the snap config before starting. This prevents spamming systemd with error messages before we run microstack.init (See matching PR against snap.openstack, coming soon.) Incidentally fix issue w/ the way that shell.py was running CalledProcessError and parsing output. Order patches part after uca-sources, to work around an issue we discovered with apt update while those two parts are running in parallel. (python-apt segfaults, and no fun is had by anyone.) Remaining gaps in our logging: systemd still displays some errors during init, which might be fixable with further ordering of snapctl start invocations. We're also relying on MySQL and RabbitMQ log output to know when those services are started, so we haven't moved their output to systemd just yet. Dropped in a fix to work w/ updated version of snap.openstack. Change-Id: I130ed730c14ab35b8b677b9c9f573fa6fe1e8f13
14 lines
300 B
Django/Jinja
14 lines
300 B
Django/Jinja
[DEFAULT]
|
|
# Set state path to writable directory
|
|
state_path = {{ snap_common }}/lib
|
|
# Log to systemd journal
|
|
use_journal = True
|
|
|
|
[oslo_concurrency]
|
|
# Oslo Concurrency lock path
|
|
lock_path = {{ snap_common }}/lock
|
|
|
|
[fernet_tokens]
|
|
# Fernet key repository
|
|
key_repository = {{ snap_common }}/fernet-keys
|