Can't create an artifact when other artifact is activating

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

Bug Description

When trying to update status of two different artifacts I got an error:

Cause : Glare Error - [ {"explanation": "There was a conflict when trying to complete your request.", "code": 409, "error":
{"message": "Cannot lock an item with key CloudBandNetworkDirector. Lock already acquired by other request", "type": "Conflict"}
, "title": "Conflict"} ]

It happens because glare sets unnecessary global lock on whole user scope when modifying the status.

Mike Fedosin (mfedosin)
Changed in glare:
assignee: nobody → Mike Fedosin (mfedosin)
importance: Undecided → High
status: New → Confirmed
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/507909
Committed: https://git.openstack.org/cgit/openstack/glare/commit/?id=d2ce390ca83c60b20a1f2b75205ab34d416284fe
Submitter: Zuul
Branch: master

commit d2ce390ca83c60b20a1f2b75205ab34d416284fe
Author: Mike Fedosin <email address hidden>
Date: Wed Sep 27 18:55:37 2017 +0300

    Revert scoped lock format

    Recently scoped lock format was mistakenly changed
    from "type_name:name:version" to "owner". New format
    prevents simultaneuos modifications of different
    artifacts by one tenant, because it locks the whole
    tenant scope, not just a single artifact.

    For this reason it's suggested to revert the format as
    it was before.

    Closes-bug: #1720139

    Change-Id: I9dc26da85f424a4ced1ca232d1f33c548b602f0f

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

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/508846

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

Reviewed: https://review.openstack.org/508846
Committed: https://git.openstack.org/cgit/openstack/glare/commit/?id=5c0139f2bc3a0e4883d30bd60bfaab90c6917524
Submitter: Zuul
Branch: stable/pike

commit 5c0139f2bc3a0e4883d30bd60bfaab90c6917524
Author: Mike Fedosin <email address hidden>
Date: Wed Sep 27 18:55:37 2017 +0300

    Revert scoped lock format

    Recently scoped lock format was mistakenly changed
    from "type_name:name:version" to "owner". New format
    prevents simultaneuos modifications of different
    artifacts by one tenant, because it locks the whole
    tenant scope, not just a single artifact.

    For this reason it's suggested to revert the format as
    it was before.

    Closes-bug: #1720139

    Change-Id: I9dc26da85f424a4ced1ca232d1f33c548b602f0f
    (cherry picked from commit d2ce390ca83c60b20a1f2b75205ab34d416284fe)

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