bolt icon indicating copy to clipboard operation
bolt copied to clipboard

Sometimes modules take a very long time to install

Open wilful opened this issue 1 year ago • 3 comments

image

Describe the Bug

Sometimes, during the installation of the module, the processor starts to take 100% and the installation itself may take several hours. Try on MacAir/MacMini/Linux Rocky

Expected Behavior

The usual installation takes little time

Steps to Reproduce

This happens sometimes when adding a new module to a project

bolt module add openstack-glance
modules:
- puppetlabs/git
- puppet/consul
- puppet/nomad
- puppetlabs/docker
- puppet/vault
- puppet/vault_lookup
- puppet/ssh_keygen
- puppetlabs/vcsrepo
- puppet/archive
- puppet/extlib
- puppetlabs/firewall
- puppet/wireguard
- puppetlabs/inifile
- saz/timezone
- puppet/chrony
- puppet/systemd
- puppet/ferm
- puppetlabs/lvm
- saz/ssh
- openstack/keystone
- puppetlabs/apache

Strace bolt process

futex(0x11ab320, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x11ab390, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY) = 0
futex(0x11ab320, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x4165844, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x11ab320, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x11ab394, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x11ab320, FUTEX_WAKE_PRIVATE, 1) = 0

Environment

❯ bolt --version 3.26.2 MacOS - Version 13.2.1 (22D68)

wilful avatar Oct 03 '23 07:10 wilful

image

On my MacMini the same problem when installing and on Rocky linux image 512 min spended

wilful avatar Oct 03 '23 08:10 wilful

Thanks for reporting this! I have heard some reports of this. I think there may be a bug in dependency resolution in an underlying puppetfile-resolver library. I have not had a chance to dig in to that but this is helpful information.

donoghuc avatar Oct 04 '23 22:10 donoghuc

I suspect this is related to https://github.com/puppetlabs/bolt/issues/3226

davidsandilands avatar Jun 19 '24 14:06 davidsandilands