Skip to content

Stop running shutdown_drain with --disable-all - #698

Open
sethboyles wants to merge 1 commit into
developfrom
ruby-4-drain-fix
Open

sethboyles wants to merge 1 commit into
developfrom
ruby-4-drain-fix

Conversation

@sethboyles

@sethboyles sethboyles commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

The shutdown_drain scripts ran Ruby with --disable-all, which turns off RubyGems. In Ruby 4, logger moved from a default gem to a bundled gem, so require 'cloud_controller/drain' raised LoadError and CC, nginx and the workers were stopped without a graceful drain (drain.sh exits 0 regardless).

This prevents the drain script from actually bringing down nginx. The error is swallowed by the drain script, so this does not block BBR, but removing --disable-all will correctly bring down the workers/CCNG.

  • I have viewed signed and have submitted the Contributor License Agreement

  • I have made this pull request to the develop branch

  • I have run CF Acceptance Tests on bosh lite

The shutdown_drain scripts ran Ruby with --disable-all, which turns off
RubyGems. In Ruby 4, logger moved from a default gem to a bundled gem, so
`require 'cloud_controller/drain'` raised LoadError and CC, nginx and the
workers were stopped without a graceful drain (drain.sh exits 0
regardless).

ai-assisted=yes

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

3 participants