Nordix / metal3-dev-tools

Set of internal tools for Metal3 development
Apache License 2.0
2 stars 7 forks source link

Dev-tools tests cannot be started parallel in two PRs same time #696

Open tuminoid opened 1 year ago

tuminoid commented 1 year ago

https://jenkins.nordix.org/job/metal3_dev_tools_integration_test_centos/285/console

+ openstack keypair create -f json --public-key /data/ci/images/../scripts/openstack/id_ed25519_****.pub ****-key-centos
ConflictException: 409: Client Error for url: https://kna1.citycloud.com:8774/v2.1/os-keypairs, Key pair '****-key-centos' already exists.

Openstack integration conflicts between two PRs.

tuminoid commented 1 year ago

/cc @lentzi90 @Rozzii

lentzi90 commented 1 year ago

I suspect a race condition where both jobs try to first delete and then create the keypair. Maybe we could randomize the keypair name (especially if it is any way re-created every time) and delete it when finished.

lentzi90 commented 1 year ago

Ref: https://github.com/Nordix/metal3-dev-tools/blob/87600f79fd94f5e96f239d5ba68ae5b67ae32a13/ci/images/gen_metal3_ubuntu_image.sh#L65-L68 (same for all other images)