Page MenuHomePhabricator

Upgrade harbor from 2.5 to 2.9
Closed, ResolvedPublic

Description

We're currently using v2.5, the newest version is 2.9.

https://goharbor.io/docs/2.9.0/administration/upgrade/

  • upgrade lima-kilo
  • upgrade builds-builder
  • test locally
  • update puppet config
  • upgrade toolsbeta
  • upgrade tools

NOTE: The official upgrade docs don't fully apply to our install as we're using puppet. If you have reached this task from the future wondering how to do an upgrade, better check the docs here: https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Harbor#Upgrade_Harbor

Details

TitleReferenceAuthorSource BranchDest Branch
builds-builder: bump to 0.0.80-20231023142438-55d11e16repos/cloud/toolforge/toolforge-deploy!120dcarobump_builds-buildermain
harbor: upgrade to 2.9.0repos/cloud/toolforge/builds-builder!19sstefanovaslavina/upgrade-harbormain
harbor: upgrade to 2.9.0repos/cloud/toolforge/lima-kilo!85sstefanovaslavina/upgrade-harbormain
Customize query in GitLab

Event Timeline

Slst2020 changed the task status from Open to In Progress.Oct 16 2023, 12:36 PM
Slst2020 claimed this task.
Slst2020 moved this task from Next Up to In Progress on the Toolforge (Toolforge iteration 01) board.

We did not, we did try though adding a user, creating a project, making sure that the existing ones still work, and doing a full tool build + deploy.
There's also a few features being tested there that we don't use (replication, signed images, ...), we might not be able to test all of it.

Upgrading to 2.9 directly works fine locally (lima-kilo/vagrant). There seem to be no breaking changes or deprecations that affect us, so I think I'll YOLO it without first upgrading to 2.7 in between.

taavi renamed this task from Upgrade harbor to Upgrade harbor from 2.5 to 2.9.Oct 18 2023, 1:58 PM

harbor 2.9 requires postgres >=12.0. We're using 12.7 via trove so all good.

Change 966874 had a related patch set uploaded (by Slavina Stefanova; author: Slavina Stefanova):

[operations/puppet@production] harbor: upgrade from 2.5 to 2.9

https://gerrit.wikimedia.org/r/966874

Mentioned in SAL (#wikimedia-cloud) [2023-10-20T10:11:52Z] <dcaro> taking harbor down for upgrade (T346241)

Mentioned in SAL (#wikimedia-cloud) [2023-10-20T10:37:07Z] <blancadesal> harbor up again and upgraded from 2.5 to 2.9 (T346241)

Change 966874 merged by David Caro:

[operations/puppet@production] harbor: upgrade from 2.5 to 2.9

https://gerrit.wikimedia.org/r/966874

Mentioned in SAL (#wikimedia-cloud) [2023-10-25T08:31:53Z] <blancadesal> taking harbor down for upgrade (T346241)

Mentioned in SAL (#wikimedia-cloud) [2023-10-25T09:08:52Z] <blancadesal> harbor up again and upgraded from 2.5 to 2.9 (T346241)

Slst2020 updated the task description. (Show Details)