Created attachment 1165871 [details] engine log Description of problem: Optimize multiple removal of networks from DC while they are attached to host NIC via label. Currently, if we have multiple networks attached to NIC via label(let say 3) and we removing the networks from DC at once, the result will be: That engine will try to perform 3 setup networks commands(instead of 1) on the same host simultaneously, so the first one will take the lock and all the other will fail. As a result 1 network will be removed from the server and the others will remain as 'unmanaged' networks on the host. - We should optimize such scenario/behavior and it should be considered as 1 setup networks command, the same optimization we have for the manage clusters, when detaching multiple networks from the cluster. Version-Release number of selected component (if applicable): 4.0.0.2-0.1.el7ev How reproducible: 100 Steps to Reproduce: 1. Attach 3 vlan networks to NIC via label 2. Remove the 3 networks from DC at once Actual results: 3 setup networks command are sent. first network removed, 2 other became 'unmanaged' Expected results: 1 setup networks command should be sent, like with manage clusters. All 3 networks should remove from the host(cause they attached via label)
Is this a bug or a RFE?
It's a bug as i see it. But, it was never implemented, although it is the right behavior for such use case/scenario. Feel free to decide which one of them it is)
i'm getting hit by the same problem, but when deleting multiple interfaces in a batch. It really looks like a bug to me, since I would have expected to have all the networks removed without any problems.
We are unlikely to implement this improvement soon.