Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tuminoid opened this issue Sep 1, 2023 · 3 comments
Open

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

tuminoid opened this issue Sep 1, 2023 · 3 comments

Comments

@tuminoid
Copy link
Member

tuminoid commented Sep 1, 2023

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
Copy link
Member Author

tuminoid commented Sep 1, 2023

/cc @lentzi90 @Rozzii

@lentzi90
Copy link
Member

lentzi90 commented Sep 1, 2023

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
Copy link
Member

lentzi90 commented Sep 4, 2023

Ref:

# Create CI Keypair
CI_PUBLIC_KEY_FILE="${OS_SCRIPTS_DIR}/id_ed25519_metal3ci.pub"
delete_keypair "${SSH_KEYPAIR_NAME}"
create_keypair "${CI_PUBLIC_KEY_FILE}" "${SSH_KEYPAIR_NAME}"

(same for all other images)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants