delete share network subnet on share network deletion

Bug #2037422 reported by kiran pawar
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
kiran pawar

Bug Description

When share network is deleted, we check if only 1 share network subnet is associated with share network. But we end up deleting share network in db without deleting that single share network subnet associated with share network. This results in zombie share network subnet entries in db.

We used below query and it returns non-zero result.

MariaDB [manila]> SELECT COUNT(id) FROM share_network_subnets WHERE deleted='False' AND share_network_id IS NULL;

kiran pawar (kpdev)
Changed in manila:
assignee: nobody → kiran pawar (kpdev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

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

Changed in manila:
status: New → In Progress
Changed in manila:
importance: Undecided → Medium
milestone: none → caracal-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/896541
Committed: https://opendev.org/openstack/manila/commit/cd767dd468fd7c99dc24e7e54262be4e3ba9aaa9
Submitter: "Zuul (22348)"
Branch: master

commit cd767dd468fd7c99dc24e7e54262be4e3ba9aaa9
Author: Kiran Pawar <email address hidden>
Date: Tue Sep 26 13:17:44 2023 +0000

    Delete share network subnet during network deletion

    Share network subnet is deleted during share network deletion which was
    missing earlier causing lots of stale db entries.

    Change-Id: Idb58b4ca389cfb1aaf8f9f1f8aa2fd15979c4872
    Closes-bug: #2037422

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

Change abandoned by "Goutham Pacha Ravi <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/manila/+/899521
Reason: Bad rebase

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

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

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.