Locking layers currently is not working for image uploader
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Alex Schultz |
Bug Description
The original change I477219b7dca1e6
introduced locking of layers. Later the dynamic split
I60507eba9884a0
multi-threading execution pools and introduced the lock variable that
must be passed through all of the locking-mode (MP/MT) dependent
places to never confuse it with the ongoing SMP work types.
That happend it is not passed currently into the very single call we do for layers locking in the image uploader. That makes the code effectively dead. Quite easy to check that for any CI job: grep the container images prepare logs for the "Locking layer" messages, you'll see none of it. Instead there is only "No lock information provided for layer" plus the useless unlocking events logged all the way.
We should either revert I477219b7dca1e6
Additionally https:/ /review. opendev. org/#/c/ 687288 might provide an alternative to the layers locking.