Upgrading Chef
Chef is a major part of omnibus-gitlab, and periodically needs to be updated. Follow these steps
to upgrade to the latest version and verify the functionality.
Upgrade steps
Create a new branch in
omnibus-gitlabgit switch -c upgrade-chef-to-XUpdate the appropriate software entries in
config/templates/omnibus-gitlab-gems/Gemfile.In the
config/templates/omnibus-gitlab-gemsdirectory, runbundle updatefor the updated gems:bundle update chef ohaiUpdate entries in
Gemfileto the new version. At a minimum, thechefandohaientries will need to be updated.Update the bundle
- If this is a major version upgrade
bundle update chef ohai- If this is a minor version upgrade
bundle update chef ohai --conservativeIt may be necessary to chase down errors related to dependencies being upgraded
Commit the changes
git add config/templates/omnibus-gitlab-gems/Gemfile{,.lock} git add Gemfile{,.lock} git commit git pushEnsure the pipelines pass on GitLab.com
Trigger an EE package pipeline to ensure we get a
gitlab-qarunWhen available, trigger an HA validation job
Check QA jobs for the package pipeline, and the HA validation job, ensure pipelines are green, or any failures are unrelated.
Push to
omnibus-gitlabondev.gitlab.organd ensure the package builds on all platformsDownload a package to a dev environment, and verify you can upgrade from an older version of
omnibus-gitlab, to the newer packageVerify a Geo installation is successful using the newer package
Bonus points
- Read through the Changelog and Release notes, identify any improvements, new features, or bug fixes which may apply to
omnibus-gitlaband open follow up issues