neutron-keepalived-state-change unconditional debug mode

Bug #2003534 reported by Arturo Borrero Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Rodolfo Alonso

Bug Description

In line https://opendev.org/openstack/neutron/src/branch/master/neutron/agent/l3/keepalived_state_change.py#L172 there is a `conf.set_override('debug', True)` which enables debug mode for neutron-keepalived-state-change.

This means any setup by the operator in the configuration file is ignored.

In certain scenarios the log can flood the system with messages like the following:

Jan 18 00:16:57 cloudnet1005 neutron-keepalived-state-change: 2023-01-18 00:16:57.922 3355 DEBUG neutron.agent.linux.ip_lib [-] IP monitor qrouter-d93771ba-2711-4f88-804a-8df6fd03978a; Adding IP address: {'family': 2, '__pad': (), 'ifindex': 3, 'state': 16, 'flags': 0, 'ndm_type': 1, 'attrs': [('NDA_DST', '172.16.7.73'), ('NDA_LLADDR', 'fa:16:3e:5f:59:1d'), ('NDA_PROBES', 1), ('NDA_CACHEINFO', {'ndm_confirmed': 4582, 'ndm_used': 241, 'ndm_updated': 0, 'ndm_refcnt': 2})], 'header': {'length': 76, 'type': 28, 'flags': 0, 'sequence_number': 0, 'pid': 0, 'error': None, 'target': 'qrouter-d93771ba-2711-4f88-804a-8df6fd03978a', 'stats': Stats(qsize=0, delta=0, delay=0)}, 'event': 'RTM_NEWNEIGH'} to the queue. read_ip_updates /usr/lib/python3/dist-packages/neutron/agent/linux/ip_lib.py:1482

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/871274
Committed: https://opendev.org/openstack/neutron/commit/1a3bdff18abef093c0633bd39187f5a0e582535f
Submitter: "Zuul (22348)"
Branch: master

commit 1a3bdff18abef093c0633bd39187f5a0e582535f
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jan 19 20:11:09 2023 +0100

    Honor debug mode in keepalived-state-change script logs

    This patch removes the config option "debug" override done
    during the script initialization.

    Closes-Bug: #2003534
    Change-Id: I403d73a1f35cb6314c814f25628a83d3e111e0fe

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 22.0.0.0rc1

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

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

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/neutron/+/881355

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

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/neutron/+/881356

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

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/neutron/+/881357

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

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/neutron/+/881322

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/881355
Committed: https://opendev.org/openstack/neutron/commit/ecbb69522a15fc4a54a6b8137bfea9b8745cc2d9
Submitter: "Zuul (22348)"
Branch: stable/zed

commit ecbb69522a15fc4a54a6b8137bfea9b8745cc2d9
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jan 19 20:11:09 2023 +0100

    Honor debug mode in keepalived-state-change script logs

    This patch removes the config option "debug" override done
    during the script initialization.

    Closes-Bug: #2003534
    Change-Id: I403d73a1f35cb6314c814f25628a83d3e111e0fe
    (cherry picked from commit 1a3bdff18abef093c0633bd39187f5a0e582535f)

tags: added: in-stable-zed
tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/881322
Committed: https://opendev.org/openstack/neutron/commit/9e088512b499ab7ac4e8c0008579606674b29185
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 9e088512b499ab7ac4e8c0008579606674b29185
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jan 19 20:11:09 2023 +0100

    Honor debug mode in keepalived-state-change script logs

    This patch removes the config option "debug" override done
    during the script initialization.

    Closes-Bug: #2003534
    Change-Id: I403d73a1f35cb6314c814f25628a83d3e111e0fe
    (cherry picked from commit 1a3bdff18abef093c0633bd39187f5a0e582535f)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/881356
Committed: https://opendev.org/openstack/neutron/commit/ed80112890aafc95e5b2efa4b127db85d42dd763
Submitter: "Zuul (22348)"
Branch: stable/xena

commit ed80112890aafc95e5b2efa4b127db85d42dd763
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jan 19 20:11:09 2023 +0100

    Honor debug mode in keepalived-state-change script logs

    This patch removes the config option "debug" override done
    during the script initialization.

    Closes-Bug: #2003534
    Change-Id: I403d73a1f35cb6314c814f25628a83d3e111e0fe
    (cherry picked from commit 1a3bdff18abef093c0633bd39187f5a0e582535f)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/881357
Committed: https://opendev.org/openstack/neutron/commit/a4fa664d919dc13cc5f865114e19b45583951215
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit a4fa664d919dc13cc5f865114e19b45583951215
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jan 19 20:11:09 2023 +0100

    Honor debug mode in keepalived-state-change script logs

    This patch removes the config option "debug" override done
    during the script initialization.

    Closes-Bug: #2003534
    Change-Id: I403d73a1f35cb6314c814f25628a83d3e111e0fe
    (cherry picked from commit 1a3bdff18abef093c0633bd39187f5a0e582535f)

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

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

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

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

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

This issue was fixed in the openstack/neutron wallaby-eom release.

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

This issue was fixed in the openstack/neutron xena-eom 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.