Skip to content

CHEF-32187: Bump knife 18.8.68 -> 19.0.105 and knife-ec-backup 3.0.5 -> 3.0.8#4183

Open
lbakerchef wants to merge 7 commits into
mainfrom
CHEF-32187/lbaker
Open

CHEF-32187: Bump knife 18.8.68 -> 19.0.105 and knife-ec-backup 3.0.5 -> 3.0.8#4183
lbakerchef wants to merge 7 commits into
mainfrom
CHEF-32187/lbaker

Conversation

@lbakerchef
Copy link
Copy Markdown
Contributor

@lbakerchef lbakerchef commented May 12, 2026

Summary

Bumps knife-family gems and cherry-picks chef 18.10.17 per CHEF-32187:

  • knife: ~> 18.8.68~> 19.0.105
  • knife-ec-backup: ~> 3.0.5~> 3.0.8
  • chef: ~> 18.8.46~> 18.10.17 (cherry-picked from CHEF-32186/lbaker)

Changes

chef-server

  • src/chef-server-ctl/Gemfile: updated knife, knife-ec-backup, and chef constraints
  • src/chef-server-ctl/Gemfile.lock: regenerated; pins uri (1.0.4) to resolve conflict (see below)
  • omnibus_overrides.rb: chef version override commented out (moved to omnibus-config chef.rb)
  • omnibus (submodule): advanced to CHEF-32187/lbaker on chef-server-omnibus-config

chef-server-omnibus-config (via submodule)

  • config/software/private-chef-ctl.rb: added appbundle "chef-server-ctl", gem: "knife" + delete/link to replace the bare RubyGems binstub at embedded/bin/knife with the Bundler-aware appbundler wrapper
  • config/software/opensearch.rb: reverted from tuxcare 1.0.3 back to tuxcare 1.0.2 (1.0.3 had a startup regression in verify tests)
  • config/software/chef.rb: added, pins default_version "v18.10.17"

Root Cause of the URI Conflict

knife 19.0.105 switched from faraday-rack to faraday-net_http, which requires net-http 0.9.1, which requires uri >= 0.11.1. Ruby 3.1.7 ships uri-1.1.1 as a default gem. When the bare RubyGems binstub at embedded/bin/knife is invoked, unguided RubyGems resolution activates uri-1.1.1, which then conflicts with chef's uri (~> 1.0.4) constraint.

The fix is not to change the path constant — it is to replace the bare binstub with an appbundler-generated wrapper that uses the chef-server-ctl Gemfile.lock. That lockfile pins uri (1.0.4), which satisfies both constraints, and Bundler enforces it at load time.

Testing

Build #8280: ✅ all 7 build jobs passed, all 10 verify/test jobs passed across all platforms (rocky-9, sles-12, sles-15, ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, el-8, el-9, amazon-2, amazon-2023).

Jira

CHEF-32187

@lbakerchef lbakerchef requested review from a team as code owners May 12, 2026 20:53
@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

👷 Deploy Preview for chef-server processing.

Name Link
🔨 Latest commit 588b267
🔍 Latest deploy log https://app.netlify.com/projects/chef-server/deploys/6a07b3f7254cea0008205ca9

@lbakerchef lbakerchef force-pushed the CHEF-32187/lbaker branch from 5ea0d8f to 29d1f79 Compare May 13, 2026 15:13
@lbakerchef lbakerchef self-assigned this May 13, 2026
lbakerchef and others added 2 commits May 13, 2026 10:45
The prior PR (#4175) was merged with the omnibus submodule pointing to
the PRE-MERGE INSTRUCTIONS commit (024146f) rather than the actual
omnibus-config main HEAD after the rebuild/CHEF-32135 PR merged.

Advance submodule pointer to 939f4c9 (Merge pull request #5 from
chef/rebuild/CHEF-32135-lbaker-20260430-092319).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Lincoln Baker <51833247+lbakerchef@users.noreply.github.com>
Signed-off-by: Lincoln Baker <51833247+lbakerchef@users.noreply.github.com>
@lbakerchef lbakerchef force-pushed the CHEF-32187/lbaker branch from 29d1f79 to 71ed65c Compare May 13, 2026 15:45
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lbakerchef lbakerchef changed the title Bump knife-ec-backup 3.0.5 -> 3.0.8 CHEF-32187: Bump knife 18.8.68 -> 19.0.105 and knife-ec-backup 3.0.5 -> 3.0.8 May 13, 2026
@lbakerchef lbakerchef force-pushed the CHEF-32187/lbaker branch 4 times, most recently from 43c77e9 to 84d6996 Compare May 15, 2026 03:23
…nibus-config

- Cherry-pick chef 18.10.17 bump from CHEF-32186/lbaker
- Add config/software/chef.rb override (default_version 'v18.10.17')
- Comment out override :chef in omnibus_overrides.rb
- Fix knife appbundle: use appbundle 'chef-server-ctl', gem: 'knife'
  (was incorrectly using 'knife' as the source project name)
- Advance omnibus submodule to a1b1de6 (CHEF-32187/lbaker)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lbakerchef lbakerchef force-pushed the CHEF-32187/lbaker branch from 84d6996 to 435e38c Compare May 15, 2026 16:12
lbakerchef and others added 3 commits May 15, 2026 11:47
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lbakerchef
Copy link
Copy Markdown
Contributor Author

Build #8280 ✅ — all 7 builds + all 10 verify jobs passed:
https://buildkite.com/chef/chef-chef-server-main-omnibus-adhoc/builds/8280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant