[OVN] - Logging configuration doesn't change after neutron restart

Bug #2017145 reported by Elvira García Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Elvira García Ruiz

Bug Description

Right now adding a new rate and burst limit to the network_log configuration in the ml2_conf.ini file won't make any effect on the system as OVN meter-band will remain unchanged. To make it work you need to remove every logging object (so that the meter entry in OVN is removed) and then recreate them again. This is not how it should work.

100% reproducible

Steps:
- Add log plugin
- Add log object to the project
- change rate and burst limit
- restart the neutron server to see if changes applied

Changed in neutron:
assignee: nobody → Elvira García Ruiz (elviragr)
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/+/880982

Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

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

commit c3602ac19b62b77d3cb763746e124881d4c061e4
Author: Elvira García <email address hidden>
Date: Thu Apr 20 16:39:12 2023 +0200

    [OVN] Update ovn meter when neutron server reloads

    Up until now, we needed to remove all logging objects to see the
    meter-band properties being changed after a server restart. Now we check
    for inconsistencies between the neutron configuration and the OVN
    meter-band object after a restart. The function create_ovn_fair_meter is
    now located in the ovn_driver instead of the log_driver so as to be able
    to call it from the maintenance task.

    Closes-bug: #2017145
    Signed-off-by: Elvira García <email address hidden>
    Change-Id: I24cef85ed68c893a740445707f88296d763c8de8

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

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

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/+/882689

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/+/882527

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/+/882711

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/+/882809

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/882519
Committed: https://opendev.org/openstack/neutron/commit/05ff8ce3eeecbd981258864d324d3b011489df20
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 05ff8ce3eeecbd981258864d324d3b011489df20
Author: Elvira García <email address hidden>
Date: Thu Apr 20 16:39:12 2023 +0200

    [OVN] Update ovn meter when neutron server reloads

    Up until now, we needed to remove all logging objects to see the
    meter-band properties being changed after a server restart. Now we check
    for inconsistencies between the neutron configuration and the OVN
    meter-band object after a restart. The function create_ovn_fair_meter is
    now located in the ovn_driver instead of the log_driver so as to be able
    to call it from the maintenance task.

    Closes-bug: #2017145
    Signed-off-by: Elvira García <email address hidden>
    Change-Id: I24cef85ed68c893a740445707f88296d763c8de8
    (cherry picked from commit c3602ac19b62b77d3cb763746e124881d4c061e4)

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/+/882527
Committed: https://opendev.org/openstack/neutron/commit/46aefebd5dc9c8524fdffba889b4e6b364e4f2dd
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 46aefebd5dc9c8524fdffba889b4e6b364e4f2dd
Author: Elvira García <email address hidden>
Date: Thu Apr 20 16:39:12 2023 +0200

    [OVN] Update ovn meter when neutron server reloads

    Up until now, we needed to remove all logging objects to see the
    meter-band properties being changed after a server restart. Now we check
    for inconsistencies between the neutron configuration and the OVN
    meter-band object after a restart. The function create_ovn_fair_meter is
    now located in the ovn_driver instead of the log_driver so as to be able
    to call it from the maintenance task.

    Conflicts:
        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py
        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
        neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovn_client.py

    Closes-bug: #2017145
    Signed-off-by: Elvira García <email address hidden>
    Change-Id: I24cef85ed68c893a740445707f88296d763c8de8
    (cherry picked from commit c3602ac19b62b77d3cb763746e124881d4c061e4)

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

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

commit 1864dd868459384e8f19ba413929a8c196877370
Author: Elvira García <email address hidden>
Date: Thu Apr 20 16:39:12 2023 +0200

    [OVN] Update ovn meter when neutron server reloads

    Up until now, we needed to remove all logging objects to see the
    meter-band properties being changed after a server restart. Now we check
    for inconsistencies between the neutron configuration and the OVN
    meter-band object after a restart. The function create_ovn_fair_meter is
    now located in the ovn_driver instead of the log_driver so as to be able
    to call it from the maintenance task.

    Conflicts:
        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py
        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
        neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovn_client.py

    Closes-bug: #2017145
    Signed-off-by: Elvira García <email address hidden>
    Change-Id: I24cef85ed68c893a740445707f88296d763c8de8
    (cherry picked from commit c3602ac19b62b77d3cb763746e124881d4c061e4)

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/+/882809
Committed: https://opendev.org/openstack/neutron/commit/43ee9f3a9474f382fba9db063722d1c0dfee9b48
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 43ee9f3a9474f382fba9db063722d1c0dfee9b48
Author: Elvira García <email address hidden>
Date: Thu Apr 20 16:39:12 2023 +0200

    [OVN] Update ovn meter when neutron server reloads

    Up until now, we needed to remove all logging objects to see the
    meter-band properties being changed after a server restart. Now we check
    for inconsistencies between the neutron configuration and the OVN
    meter-band object after a restart. The function create_ovn_fair_meter is
    now located in the ovn_driver instead of the log_driver so as to be able
    to call it from the maintenance task.

    Conflicts:
        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py
        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
        neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovn_client.py
        neutron/services/logapi/drivers/ovn/driver.py

    Closes-bug: #2017145
    Signed-off-by: Elvira García <email address hidden>
    Change-Id: I24cef85ed68c893a740445707f88296d763c8de8
    (cherry picked from commit c3602ac19b62b77d3cb763746e124881d4c061e4)

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

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

commit da43b03eb224249490d862cae6cec3962e4481a4
Author: Elvira García <email address hidden>
Date: Thu Apr 20 16:39:12 2023 +0200

    [OVN] Update ovn meter when neutron server reloads

    Up until now, we needed to remove all logging objects to see the
    meter-band properties being changed after a server restart. Now we check
    for inconsistencies between the neutron configuration and the OVN
    meter-band object after a restart. The function create_ovn_fair_meter is
    now located in the ovn_driver instead of the log_driver so as to be able
    to call it from the maintenance task.

    Conflicts:
        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py
        neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
        neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovn_client.py
        neutron/services/logapi/drivers/ovn/driver.py

    Closes-bug: #2017145
    Signed-off-by: Elvira García <email address hidden>
    Change-Id: I24cef85ed68c893a740445707f88296d763c8de8
    (cherry picked from commit c3602ac19b62b77d3cb763746e124881d4c061e4)

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

This issue was fixed in the openstack/neutron 23.0.0.0b2 development milestone.

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

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

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.