Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

concurrent deployments fail #155

Closed
bastelfreak opened this issue Sep 11, 2020 · 0 comments · Fixed by #156
Closed

concurrent deployments fail #155

bastelfreak opened this issue Sep 11, 2020 · 0 comments · Fixed by #156

Comments

@bastelfreak
Copy link
Member

bastelfreak commented Sep 11, 2020

Hi!,
while testing the application, I pushed a testbranch in two modules at once. all modules in the Puppetfile are deployed via ssh/git clones. r10k fails while another r10k process is running. I think we should set the concurrency in sidekiq to 1:

journalctl output from puppet-webhook-sidekiq:

Sep 11 10:28:34 puppetserver01 bundle[21618]: Stderr: 
Sep 11 10:28:34 puppetserver01 bundle[21618]: fatal: Unable to create '/etc/puppetlabs/code/environments/SACP_305_order_process/modules/base/.git/index.lock': File exists. 
Sep 11 10:28:34 puppetserver01 bundle[21618]: If no other git process is currently running, this probably means a 
Sep 11 10:28:34 puppetserver01 bundle[21618]: git process crashed in this repository earlier. Make sure no other git 
Sep 11 10:28:34 puppetserver01 bundle[21618]: process is running and remove the file manually to continue. 
Sep 11 10:28:34 puppetserver01 bundle[21618]: Exit code: 128 
bastelfreak added a commit to bastelfreak/puppet_webhook that referenced this issue Sep 11, 2020
r10k isn't able to run in parallel, at least for module deployments via
ssh. Setting this 1 one queues jobs and just executes one after another.

This fixes voxpupuli#155
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant