[rpm-packaging] logging override in openstack packages
Piotr Mossakowski
piotr.mossakowski at tietoevry.com
Fri Jul 2 10:19:29 UTC 2021
Hello,
There is a logging override in almost all openstack packages, for
example in nova:
https://opendev.org/openstack/rpm-packaging/src/branch/stable/victoria/openstack/nova/openstack-nova.defaultconf
<https://opendev.org/openstack/rpm-packaging/src/branch/stable/victoria/openstack/nova/openstack-nova.defaultconf>
It lands in /etc/nova/nova.conf.d/010-nova.conf as stated in the spec:
https://opendev.org/openstack/rpm-packaging/src/branch/stable/victoria/openstack/nova/nova.spec.j2#L407
<https://opendev.org/openstack/rpm-packaging/src/branch/stable/victoria/openstack/nova/nova.spec.j2#L407>
Let's assume following scenario: in kolla-ansible based deployment I
want to disable logging globally using /etc/kolla/config/global.conf:
[DEFAULT]
log_dir =
log_file =
For kolla images built from RPMs, the file
'/etc/nova/nova.conf.d/010-nova.conf' will override what I want to
achieve by global.conf.
We have a situation when kolla images log inside the container into
'/var/log/nova' where there is no log rotation. There is no easy way to
change that in kolla-ansible based deployments.
Is there any specific reason why default logging has been hardcoded like
that? Can we agree to change that situation to be able to override
logging as expected?
--
Pozdrawiam serdecznie / Best regards,
*Piotr Mossakowski*
Lead System Engineer, Product Development Services, Cloud Infra &
Applications
Email piotr.mossakowski at tietoevry.com
<mailto:piotr.mossakowski at tietoevry.com>, +48795515407 <tel:%2B48795515407>
Aleja Piastów 30, 71-064 Szczecin, Poland, www.tietoevry.com
<http://www.tieto.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210702/b112b18e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4195 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210702/b112b18e/attachment-0001.bin>
More information about the openstack-discuss
mailing list