Skip to content

Commit 4308925

Browse files
authored
Merge branch 'main' into CHEF-28294
2 parents 7374e05 + 5cde9ab commit 4308925

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Chef Server Changelog
22
<!-- usage documentation: http://expeditor-docs.es.chef.io/configuration/changelog/ -->
3-
<!-- latest_release 15.10.86 -->
4-
## [15.10.86](https://github.com/chef/chef-server/tree/15.10.86) (2025-12-02)
3+
<!-- latest_release 15.10.87 -->
4+
## [15.10.87](https://github.com/chef/chef-server/tree/15.10.87) (2025-12-09)
55

66
#### Merged Pull Requests
7-
- Adding provision for Jira automation [#4125](https://github.com/chef/chef-server/pull/4125) ([talktovikas](https://github.com/talktovikas))
7+
- CHEF-26888 - Fix gather-logs openssl gem version conflict [#4127](https://github.com/chef/chef-server/pull/4127) ([kalroy](https://github.com/kalroy))
88
<!-- latest_release -->
99

1010
<!-- release_rollup since=15.10.83 -->
1111
### Changes since 15.10.83 release
1212

1313
#### Merged Pull Requests
14+
- CHEF-26888 - Fix gather-logs openssl gem version conflict [#4127](https://github.com/chef/chef-server/pull/4127) ([kalroy](https://github.com/kalroy)) <!-- 15.10.87 -->
1415
- Adding provision for Jira automation [#4125](https://github.com/chef/chef-server/pull/4125) ([talktovikas](https://github.com/talktovikas)) <!-- 15.10.86 -->
1516
- Drop chef gem dependency from oc-chef-pedant [#4122](https://github.com/chef/chef-server/pull/4122) ([neha-p6](https://github.com/neha-p6)) <!-- 15.10.85 -->
1617
- Copilot Instructions for chef-server [#4118](https://github.com/chef/chef-server/pull/4118) ([jashaik](https://github.com/jashaik)) <!-- 15.10.84 -->

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15.10.86
1+
15.10.87

omnibus/files/private-chef-scripts/gather-logs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,17 @@ ping -c 2 `hostname --fqdn` > ping_-c_2_fqdn.txt
184184
ping -c 2 `hostname` > ping_-c_2_hostname.txt
185185

186186
# gather everything ohai knows
187-
/opt/opscode/bin/ohai > "$tmpdir/ohai.txt"
187+
# Use embedded ruby directly to avoid gem version conflicts (CHEF-26888)
188+
# The ohai binstub may have hardcoded gem version requirements that conflict
189+
# with already-loaded gems. By calling ruby directly and requiring ohai's
190+
# library, we let Ruby resolve gem versions naturally.
191+
if /opt/opscode/embedded/bin/ruby -rohai -e 'Ohai::System.new.all_plugins; puts Ohai::System.new.to_json' > "$tmpdir/ohai.txt" 2>&1; then
192+
: # ohai data gathered successfully
193+
else
194+
echo "Warning: Failed to gather ohai data, trying fallback method" >&2
195+
# Fallback: try the original method in case the new approach fails
196+
/opt/opscode/bin/ohai > "$tmpdir/ohai.txt" 2>&1 || echo "Failed to gather ohai data" > "$tmpdir/ohai.txt"
197+
fi
188198

189199
if [[ -e /opt/opscode-manage/bin/opscode-manage-ctl ]]; then
190200
/opt/opscode-manage/bin/opscode-manage-ctl status > "$tmpdir/opscode-manage-ctl_status.txt"

0 commit comments

Comments
 (0)