Commit ddd80c3
authored
CHEF-26888 - Fix gather-logs openssl gem version conflict (#4127)
Fix chef-server-ctl gather-logs command failure caused by OpenSSL gem
version conflict. The ohai binstub has hardcoded gem version requirements
(openssl 3.2.0) that conflict with already-loaded gems (openssl 3.3.0).
Changes:
- Modified gather-logs script to invoke ohai through embedded ruby directly
- Bypasses the binstub's strict gem version requirements
- Added fallback to original method for safety
- Includes proper error handling and warning messages
This resolves the Gem::LoadError that prevented gather-logs from completing
in Chef Server 15.10.66 and later versions.
Fixes: CHEF-26888
Signed-off-by: talktovikas <vikas.yadav@progress.com>1 parent 1065328 commit ddd80c3
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
188 | 198 | | |
189 | 199 | | |
190 | 200 | | |
| |||
0 commit comments