HA metadata proxy PID and config files are created by root

Bug #1907695 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Rodolfo Alonso

Bug Description

Both the PID and the config file for the HA metadata proxy are created by "root" user:

[root@controller-2 pids]# ll /var/lib/neutron/external/pids/
total 8
-rw-r--r--. 1 root root 7 Dec 9 19:34 deb76f07-a202-4f5d-a12f-d388f23a70db.pid.haproxy

Because of this, the deletion of those files should be done with elevated privileges.

Changed in neutron:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :
Changed in neutron:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 16.3.1

This issue was fixed in the openstack/neutron 16.3.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 18.0.0.0rc1

This issue was fixed in the openstack/neutron 18.0.0.0rc1 release candidate.

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/777515
Committed: https://opendev.org/openstack/neutron/commit/d6c375c15ae76745d864e18383d1dc2c27636c57
Submitter: "Zuul (22348)"
Branch: stable/train

commit d6c375c15ae76745d864e18383d1dc2c27636c57
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Dec 10 16:59:46 2020 +0000

    Delete HA metadata proxy PID and config with elevated privileges

    Both files cannot be deleted with the default permissions because
    those files are created by the "root" user.

    Conflicts:
        neutron/agent/metadata/driver.py
        neutron/tests/functional/agent/l3/framework.py
        neutron/tests/unit/agent/dhcp/test_agent.py

    Change-Id: I73dd37b3104fac8d3172f520f71cffd85d040c4b
    Closes-Bug: #1907695
    (cherry picked from commit 0a0f647ea05d3de3820e9dab26ded8c528eee835)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 15.3.4

This issue was fixed in the openstack/neutron 15.3.4 release.

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

This issue was fixed in the openstack/neutron 17.1.2 release.

Changed in neutron:
status: In Progress → Fix Released
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.