Can't create share-network again

Bug #1272303 reported by Aleksandr Chirko
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
Aleksandr Chirko

Bug Description

We can create share-network with no problem:
    manila share-network-create --neutron-net-id <net-id> --neutron-subnet-id <subnet-id>

Then after:
    manila share-network-delete <share nw id>

if we try again to create share-network with the same params:
    manila share-network-create --neutron-net-id <same net-id> --neutron-subnet-id <same subnet-id>

we get
    ERROR: Could not save supplied data due to database error

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

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

Changed in manila:
status: New → In Progress
tags: added: manila-db
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/68917
Committed: https://git.openstack.org/cgit/stackforge/manila/commit/?id=a842c554e699174fdcc3a771c968ac978c4135a8
Submitter: Jenkins
Branch: master

commit a842c554e699174fdcc3a771c968ac978c4135a8
Author: Aleks Chirko <email address hidden>
Date: Fri Jan 24 15:59:29 2014 +0200

    Change manila DB to have working unique constraint

    Because Manila DB uses 'soft delete', we can't use
    unique constaints properly. Solution is to change
    'deleted' column from Boolean to the type of 'id'
    column and write value of 'id' to 'delete'
    on delete operation. To apply unique constr only
    to not deleted records we will be adding
    'deleted' column to every uc from now on.

    Closes-Bug: #1272303
    Change-Id: Ia673b91c7d7f700a25824766486a82f07203f3b6

Changed in manila:
status: In Progress → Fix Committed
Changed in manila:
status: Fix Committed → Fix Released
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.