Skip to content

Merge jammy => noble#634

Closed
aramprice wants to merge 10 commits into
ubuntu-noblefrom
ubuntu-jammy
Closed

Merge jammy => noble#634
aramprice wants to merge 10 commits into
ubuntu-noblefrom
ubuntu-jammy

Conversation

@aramprice

Copy link
Copy Markdown
Member

NOTE: this repository uses a "Merge Forward" strategy

Changes should be made in the earliest applicable branch, and
merged forward through subsequent branches.

  1. PR should be created against the oldest stemcell branch, ex: ubuntu-<short_name-N>
  2. After this PR has been merged create a PR to merge ubuntu-<short_name-N> into ubuntu-<short_name-N+1>
  3. Repeat as needed for subsequent stemcell line branches

neddp and others added 10 commits June 9, 2026 07:42
CentOS stemcells are no longer built, so this drops dead stages,
assets, and code paths. Also removes the default_su_directive
override (already removed on ubuntu-noble), which silently overrode
the correct 'su root syslog' set globally in ubuntu-logrotate.conf.
Explicitly pass:
- GEM_HOME
- BUILD_TIME
- UBUNTU_ADVANTAGE_TOKEN
- UBUNTU_FIPS_USE_IAAS_KERNEL

Fixes:
```
sudo: preserving the entire environment is not supported, '--preserve-env' is ignored
ubuntu@21f652d6-b208-4386-b0c0-097e26578228:/tmp/build/44575cf5$ set -e
ubuntu@21f652d6-b208-4386-b0c0-097e26578228:/tmp/build/44575cf5$
ubuntu@21f652d6-b208-4386-b0c0-097e26578228:/tmp/build/44575cf5$ cd "/tmp/build/44575cf5/bosh-linux-stemcell-builder"
ubuntu@21f652d6-b208-4386-b0c0-097e26578228:/tmp/build/44575cf5/bosh-linux-stemcell-builder$ bundle install
Bundler 4.0.13 is running, but your lockfile was generated with 2.5.23. Installing Bundler 2.5.23 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 2.5.23

Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/usr/local/lib/ruby/gems/3.3.0/cache/bundler-2.5.23.gem`. It is likely that you need to grant write permissions for that path.
```
^ https://bosh.ci.cloudfoundry.org/teams/stemcell/pipelines/ubuntu-resolute-builder/jobs/build-os-image/builds/1#L6a052874:4:13
Copilot AI review requested due to automatic review settings June 10, 2026 23:03
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5219dd90-c1ce-4207-b41b-3604727695ab

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ubuntu-jammy

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@aramprice

Copy link
Copy Markdown
Member Author

Closing if favor of manual merge, GH can't handle the conflicts.

@aramprice aramprice closed this Jun 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR merges changes forward from the jammy line into the noble line by removing CentOS-specific build/test artifacts and updating CI/build metadata so the noble branch reflects the current (Ubuntu-focused) stemcell builder behavior.

Changes:

  • Remove CentOS-specific stage assets/scripts (password policy patches, logrotate config, audit stage) and related spec coverage.
  • Update CI task scripts to adjust sudo environment preservation and quote rake task invocations.
  • Bump the ubuntu-jammy OS image metalink version/hashes and refresh a few docs/comments to refer to Ubuntu instead of CentOS.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
stemcell_builder/stages/system_open_vm_tools/apply.sh Removes an obsolete CentOS-specific comment during open-vm-tools install.
stemcell_builder/stages/password_policies/assets/centos/system-auth.patch Deletes CentOS PAM policy patch asset.
stemcell_builder/stages/password_policies/assets/centos/password-auth.patch Deletes CentOS PAM policy patch asset.
stemcell_builder/stages/logrotate_config/assets/default_su_directive Removes CentOS-focused logrotate su directive asset.
stemcell_builder/stages/logrotate_config/assets/centos-logrotate.conf Deletes CentOS logrotate.conf asset.
stemcell_builder/stages/logrotate_config/apply.sh Removes installation of the deleted default_su_directive asset.
stemcell_builder/stages/image_install_grub/apply.sh Updates example paths in comments from CentOS to Ubuntu.
stemcell_builder/stages/image_install_grub_softlayer_two_partitions/apply.sh Updates example paths in comments from CentOS to Ubuntu.
stemcell_builder/stages/image_install_grub_efi/apply.sh Updates example paths in comments from CentOS to Ubuntu.
stemcell_builder/stages/bosh_audit_centos/apply.sh Removes CentOS audit stage script.
image-metalinks/ubuntu-jammy/ubuntu-jammy.meta4 Updates metalink hashes/size/version/published timestamp for the jammy OS image tarball and usn-log.json.
ci/tasks/os-images/build.sh Adjusts sudo invocation/env preservation and quotes the rake task invocation.
ci/tasks/build.sh Adjusts sudo invocation/env preservation and quotes the rake task invocation.
bosh-stemcell/spec/support/stemcell_shared_examples.rb Removes spec that asserted presence/content of the deleted logrotate default_su_directive.
bosh-stemcell/lib/shellout_types/service.rb Drops CentOS from distro detection for service enablement checks.
.github/pull_request_template.md Updates merge-forward instructions to match current branch naming/flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +38 to 42
# pass SHLVL or '~ubuntu/.bash_logout' will exit 1
sudo --set-home --user ubuntu \
--preserve-env=GEM_HOME,SHLVL,BUILD_TIME,UBUNTU_ADVANTAGE_TOKEN,UBUNTU_DEBOOTSTRAP_MIRROR \
-- /bin/bash --login <<SUDO
set -e
Comment thread ci/tasks/build.sh
Comment on lines +80 to 84
# pass SHLVL or '~ubuntu/.bash_logout' will exit 1
sudo --set-home --user ubuntu \
--preserve-env=GEM_HOME,SHLVL,UBUNTU_ADVANTAGE_TOKEN,UBUNTU_FIPS_USE_IAAS_KERNEL \
-- /bin/bash --login <<SUDO
set -e
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.

4 participants