Commit 5a3258d
[DCV] Retry dcv-gl offline rpm installs to absorb rpm lock contention
The 'install dcv-gl dependencies offline' and 'install dcv-gl offline' execs
sporadically failed with 'can't create transaction lock on /var/lib/rpm/.rpm.lock
(Resource temporarily unavailable)' when a background dnf actor (dnf-makecache
timer / PackageKit) held the rpm DB lock. Add
retries 3 / retry_delay 5 (matching the sibling 'download dcv-gl dependencies'
resource) so the install re-runs once the lock frees. Spec asserts the retry
attributes and stubs the only_if dir guard.1 parent 4fbcfe0 commit 5a3258d
2 files changed
Lines changed: 15 additions & 0 deletions
File tree
- cookbooks/aws-parallelcluster-platform
- resources/dcv/partial
- spec/unit/resources
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
852 | 857 | | |
853 | 858 | | |
854 | 859 | | |
| |||
868 | 873 | | |
869 | 874 | | |
870 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
871 | 880 | | |
872 | 881 | | |
| 882 | + | |
| 883 | + | |
873 | 884 | | |
874 | 885 | | |
875 | 886 | | |
| |||
0 commit comments