fluentd can not read dnsmasq.log

Bug #1693712 reported by shaofeng cheng
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Unassigned

Bug Description

dnsmasq.log mode is 640, which can not be read by other user.

[root@node02 mariadb]# ls -l /var/lib/docker/volumes/kolla_logs/_data/neutron/
总用量 1184
-rw-r----- 1 nobody root 1050 May 26 15:44 dnsmasq.log
-rw-r--r-- 1 42435 42435 1010 May 26 15:44 neutron-dhcp-agent.log
-rw-r--r-- 1 42435 42435 550 May 25 16:32 neutron-l3-agent.log
-rw-r--r-- 1 42435 42435 998 May 25 16:32 neutron-metadata-agent.log
-rw-r--r-- 1 42435 42435 4237 May 26 15:44 neutron-openvswitch-agent.log
-rw-r--r-- 1 42435 42435 1187707 May 26 15:54 neutron-server.log

Changed in kolla:
assignee: nobody → shaofeng cheng (shaofeng-cheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/468307

Changed in kolla:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by shaofeng cheng (<email address hidden>) on branch: master
Review: https://review.openstack.org/468307

Changed in kolla:
assignee: shaofeng cheng (shaofeng-cheng) → nobody
Mark Goddard (mgoddard)
affects: kolla → kolla-ansible
Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi Shaofeng,

Is this still an issue? Did you still want to work on this?

Changed in kolla-ansible:
status: In Progress → Incomplete
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

root@ctrl0:~# la -lan /var/lib/docker/volumes/kolla_logs/_data/neutron/
total 247112
drwxr-sr-x 2 42435 42435 4096 Apr 2 06:36 .
drwxrwsr-x 30 42425 42400 4096 Mar 30 01:39 ..
-rw-r--r-- 1 65534 42435 0 Apr 2 06:36 dnsmasq.log
-rw-r----- 1 65534 42435 41545508 Apr 2 06:36 dnsmasq.log.1

update: after logrotate mode is changed to correct one 644.

Changed in kolla-ansible:
status: Incomplete → Confirmed
affects: kolla-ansible → kolla
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/938351

Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/938351
Committed: https://opendev.org/openstack/kolla/commit/0f5e39954292a51e7a967d4015a6f024d6ba42f9
Submitter: "Zuul (22348)"
Branch: master

commit 0f5e39954292a51e7a967d4015a6f024d6ba42f9
Author: Michal Nasiadka <email address hidden>
Date: Thu Jan 2 10:47:31 2025 +0100

    neutron-dhcp-agent: change dnsmasq.log rights

    Fixes /var/log/kolla/neutron/dnsmasq.log rights so
    fluentd can read logs from that file.

    Closes-Bug: #1693712
    Change-Id: I57e36ef07e8840eead2efde77e0ab9dfd4842931

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/2024.2)

Fix proposed to branch: stable/2024.2
Review: https://review.opendev.org/c/openstack/kolla/+/938562

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/kolla/+/938563

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/kolla/+/938564

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/2024.2)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/938562
Committed: https://opendev.org/openstack/kolla/commit/0972d82a26463c69d0334350b23b558d3b5f3edf
Submitter: "Zuul (22348)"
Branch: stable/2024.2

commit 0972d82a26463c69d0334350b23b558d3b5f3edf
Author: Michal Nasiadka <email address hidden>
Date: Thu Jan 2 10:47:31 2025 +0100

    neutron-dhcp-agent: change dnsmasq.log rights

    Fixes /var/log/kolla/neutron/dnsmasq.log rights so
    fluentd can read logs from that file.

    Closes-Bug: #1693712
    Change-Id: I57e36ef07e8840eead2efde77e0ab9dfd4842931
    (cherry picked from commit 0f5e39954292a51e7a967d4015a6f024d6ba42f9)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/2024.1)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/938563
Committed: https://opendev.org/openstack/kolla/commit/5e942154060cf9865639de6b30413667a23c4e68
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit 5e942154060cf9865639de6b30413667a23c4e68
Author: Michal Nasiadka <email address hidden>
Date: Thu Jan 2 10:47:31 2025 +0100

    neutron-dhcp-agent: change dnsmasq.log rights

    Fixes /var/log/kolla/neutron/dnsmasq.log rights so
    fluentd can read logs from that file.

    Closes-Bug: #1693712
    Change-Id: I57e36ef07e8840eead2efde77e0ab9dfd4842931
    (cherry picked from commit 0f5e39954292a51e7a967d4015a6f024d6ba42f9)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/938564
Committed: https://opendev.org/openstack/kolla/commit/1b880e8f9962692544c3774deb69292946165c58
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 1b880e8f9962692544c3774deb69292946165c58
Author: Michal Nasiadka <email address hidden>
Date: Thu Jan 2 10:47:31 2025 +0100

    neutron-dhcp-agent: change dnsmasq.log rights

    Fixes /var/log/kolla/neutron/dnsmasq.log rights so
    fluentd can read logs from that file.

    Closes-Bug: #1693712
    Change-Id: I57e36ef07e8840eead2efde77e0ab9dfd4842931
    (cherry picked from commit 0f5e39954292a51e7a967d4015a6f024d6ba42f9)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 17.7.0

This issue was fixed in the openstack/kolla 17.7.0 Bobcat release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 18.4.0

This issue was fixed in the openstack/kolla 18.4.0 Caracal release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 19.2.0

This issue was fixed in the openstack/kolla 19.2.0 Dalmatian release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.