Conflict error when trying to activate artifact if glare is uploading blobs

Bug #1699503 reported by Mike Fedosin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glare
Fix Released
High
Mike Fedosin

Bug Description

Currently user can't activate an artifact if it has uploading blobs.

Unfortunately there is a bug and user can't activate his artifact if any other artifact in the system has uploading blobs.

https://github.com/openstack/glare/blob/master/glare/db/sqlalchemy/api.py#L158-L161

Code has a logical error and instead of regular python 'and' operator special sqlalchemy function 'and_' should be used.

Mike Fedosin (mfedosin)
Changed in glare:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Mike Fedosin (mfedosin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glare (master)

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

Changed in glare:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glare (master)

Reviewed: https://review.openstack.org/476137
Committed: https://git.openstack.org/cgit/openstack/glare/commit/?id=84c31bac4cc218b0a198e38bb3623e27f8be8703
Submitter: Jenkins
Branch: master

commit 84c31bac4cc218b0a198e38bb3623e27f8be8703
Author: Mike Fedosin <email address hidden>
Date: Wed Jun 21 16:18:52 2017 +0300

    Fix activation when glare has uploading blobs

    Currently user can't activate his artifact if glare
    uploads data for other artifacts in the system.
    This code fixes this behavior.

    Change-Id: Ice4666b0368b86c1722651576116b08d99f6f045
    Closes-bug: #1699503

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/476163

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

Reviewed: https://review.openstack.org/476163
Committed: https://git.openstack.org/cgit/openstack/glare/commit/?id=7d1466991c52357de9d5ac41d5c6aae768bc7f68
Submitter: Jenkins
Branch: stable/ocata

commit 7d1466991c52357de9d5ac41d5c6aae768bc7f68
Author: Mike Fedosin <email address hidden>
Date: Wed Jun 21 16:18:52 2017 +0300

    Fix activation when glare has uploading blobs

    Currently user can't activate his artifact if glare
    uploads data for other artifacts in the system.
    This code fixes this behavior.

    Change-Id: Ice4666b0368b86c1722651576116b08d99f6f045
    Closes-bug: #1699503
    (cherry picked from commit 84c31bac4cc218b0a198e38bb3623e27f8be8703)

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