Bug 1558054 - Adding a new external network fails during auto-sync is running
Summary: Adding a new external network fails during auto-sync is running
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 4.2.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ovirt-4.2.3
: 4.2.3
Assignee: Dominik Holler
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-19 14:12 UTC by Dominik Holler
Modified: 2018-05-10 06:32 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.2.3
Doc Type: Bug Fix
Doc Text:
Cause: The access to an external network provider is enforced to be serialized be non-blocking locking. Consequence: If an external network is added, removed or imported during the automatic synchronization of the same network provider is running, the adding, removing or importing is failing with a message like: "Cannot add Network. Related operation on provider with the id c38a67ec-0b48-4e6f-be85-70c700df5483 is currently in progress. Please try again later." because of the automatic synchronization holds the lock. Fix: Use blocking locks to Import, Add and Remove external networks. Result: Network is added successfully after the sync is finished.
Clone Of:
Environment:
Last Closed: 2018-05-10 06:32:52 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: exception+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 89237 0 master MERGED core: Use waiting locking for Import, Add and RemoveNetworkCommand 2018-03-25 08:01:46 UTC
oVirt gerrit 89411 0 ovirt-engine-4.2 MERGED core: Use waiting locking for Import, Add and RemoveNetworkCommand 2018-04-02 16:09:58 UTC

Description Dominik Holler 2018-03-19 14:12:51 UTC
Description of problem: If an external network is added, removed or imported during the automatic synchronization of the same network provider is running, the adding, removing or importing is failing with a message like:
"Cannot add Network. Related operation on provider with the id c38a67ec-0b48-4e6f-be85-70c700df5483 is currently in progress. Please try again later."


Version-Release number of selected component (if applicable):


How reproducible:
Add an external network during automatic synchronization of the same network provider is running.

Steps to Reproduce:
1. Calculate point in time when the next sync is running 
2. During the sync is running, add new network
3.

Actual results:
Adding the network fails with "Cannot add Network. Related operation on provider with the id c38a67ec-0b48-4e6f-be85-70c700df5483 is currently in progress. Please try again later."

Expected results:
Network is added successfully after the sync is finished.

Additional info:

Comment 1 Michael Burman 2018-04-15 13:06:54 UTC
Verified on - 4.2.3-0.1.el7

Comment 2 Sandro Bonazzola 2018-05-10 06:32:52 UTC
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.3 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.