Dangling security association record in DB after network delete

Bug #2029366 reported by Vadym Markov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Vadym Markov

Bug Description

Affected version:

Reproduced on Devstack/Yoga, but any recent environment with Manila should be affected

Steps to reproduce:
1. Create security service:
manila security-service-create --name sec_serv_1 ldap
2. Create share network:
manila share-network-create --name share_net_1
3. Associate them:
manila share-network-security-service-add share_net_1 sec_serv_1
4. Delete network:
manila share-network-delete share_net_1

After it, we have a non-deleted record in share_network_security_service_association table relating to soft-deleted network. It has foreign key constraints with table share_networks. These constraints prevent purge job to cleanup soft-deleted networks. Same actions, but deleting security service works correctly - delete of security service propagates to association delete

Tags: db
Vida Haririan (vhariria)
tags: added: db
Vadym Markov (vmarkov)
Changed in manila:
assignee: nobody → Vadym Markov (vmarkov)
Vida Haririan (vhariria)
Changed in manila:
milestone: none → bobcat-3
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Vida Haririan (vhariria) wrote :
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/+/891778

Changed in manila:
status: Triaged → In Progress
Changed in manila:
milestone: bobcat-3 → bobcat-rc1
Changed in manila:
milestone: bobcat-rc1 → 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/+/891778
Committed: https://opendev.org/openstack/manila/commit/42e66d9f38b63183e92af939fa7f0a94d97a482f
Submitter: "Zuul (22348)"
Branch: master

commit 42e66d9f38b63183e92af939fa7f0a94d97a482f
Author: BubaVV <email address hidden>
Date: Tue Jul 11 21:30:48 2023 +0300

    Fix share network delete procedure

    Currently, delete of share network leaves security service associations
    behind it. DB purge job can't process them because they are constrained
    to soft-deleted networks. Proposed patch fixes both formation of
    orphaned associations and seamless purging of them.

    Closes-Bug: #2029366
    Change-Id: I9593dd6e89b2d290d3919c92d209132e1cec84f0

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

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/manila/+/896767

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/896767
Committed: https://opendev.org/openstack/manila/commit/4a006f8f931f1cc4422f0c788ede0e69e11cfbb1
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 4a006f8f931f1cc4422f0c788ede0e69e11cfbb1
Author: BubaVV <email address hidden>
Date: Tue Jul 11 21:30:48 2023 +0300

    Fix share network delete procedure

    Currently, delete of share network leaves security service associations
    behind it. DB purge job can't process them because they are constrained
    to soft-deleted networks. Proposed patch fixes both formation of
    orphaned associations and seamless purging of them.

    Closes-Bug: #2029366
    Change-Id: I9593dd6e89b2d290d3919c92d209132e1cec84f0
    (cherry picked from commit 42e66d9f38b63183e92af939fa7f0a94d97a482f)

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

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

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

This issue was fixed in the openstack/manila 17.1.0 release.

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.