Function is_neutron_legacy_enabled works wrong if some neutron services are in disabled list

Bug #1824884 reported by Slawek Kaplonski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Slawek Kaplonski

Bug Description

If some neutron services, like e.g. neutron-qos or neutron-trunk are in list of DISABLED_SERVICES function is_neutron_legacy_enabled will return 1 even if some "q-" services, like "q-qos" or "q-agt" are in ENABLED_SERVICES list.

It is like that because this function matches for "neutron" string in DISABLED_SERVICES and "neutron-" also match it.

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

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

Changed in devstack:
assignee: nobody → Slawek Kaplonski (slaweq)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.opendev.org/652782
Committed: https://git.openstack.org/cgit/openstack/devstack/commit/?id=a9a51ca6382eb01c99fce51084f64a69f4c7d58a
Submitter: Zuul
Branch: master

commit a9a51ca6382eb01c99fce51084f64a69f4c7d58a
Author: Slawek Kaplonski <email address hidden>
Date: Mon Apr 15 23:54:31 2019 +0200

    Fix is_neutron_legacy_enabled function

    This function will now first filter out all "neutron-" strings from
    DISABLED_SERVICES list before looking for "neutron" string in it.

    Change-Id: I5cab6a3be553713e1257599fb72042c6001f2672
    Close-Bug: #1824884

Revision history for this message
Martin Kopec (mkopec) wrote :

This should be fixed by https://review.opendev.org/c/openstack/devstack/+/652782/ - there was a typo in the commit message which caused that this LP wasn't closed when the patch got merged.

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

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/c/openstack/devstack/+/854144

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

Reviewed: https://review.opendev.org/c/openstack/devstack/+/854144
Committed: https://opendev.org/openstack/devstack/commit/acd107c87f1e58d91addbf24f6b7ebda11d8d26d
Submitter: "Zuul (22348)"
Branch: stable/stein

commit acd107c87f1e58d91addbf24f6b7ebda11d8d26d
Author: Slawek Kaplonski <email address hidden>
Date: Mon Apr 15 23:54:31 2019 +0200

    Fix is_neutron_legacy_enabled function

    This function will now first filter out all "neutron-" strings from
    DISABLED_SERVICES list before looking for "neutron" string in it.

    Change-Id: I5cab6a3be553713e1257599fb72042c6001f2672
    Close-Bug: #1824884
    (cherry picked from commit a9a51ca6382eb01c99fce51084f64a69f4c7d58a)

tags: added: in-stable-stein
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.