and one request which reaches the createServer() succeed and other request failed with error
hpelefthandclient.exceptions.HTTPServerError: Error (HTTP 500) SERVER_ALREADY_EXISTS - The server with the name "$1" already exists. Use a unique name and try again.
Fix:
------
we need to provide some locking mechanism to avoid such race situation
This occurs due to the concurrent requests, both the request calls 'getServerByName' api https:/ /github. com/openstack/ cinder/ blob/driverfixe s/newton/ cinder/ volume/ drivers/ hpe/hpe_ lefthand_ iscsi.py# L898 & failed and then their is a race condition to call https:/ /github. com/openstack/ cinder/ blob/driverfixe s/newton/ cinder/ volume/ drivers/ hpe/hpe_ lefthand_ iscsi.py# L919
and one request which reaches the createServer() succeed and other request failed with error nt.exceptions. HTTPServerError : Error (HTTP 500) SERVER_ ALREADY_ EXISTS - The server with the name "$1" already exists. Use a unique name and try again.
hpelefthandclie
Fix:
------
we need to provide some locking mechanism to avoid such race situation