Bug #11808

Upgrade Redmine on labs.r.n

Added by intrigeri 2016-09-19 04:09:07 . Updated 2017-09-06 12:47:32 .

Status:
Resolved
Priority:
Elevated
Assignee:
intrigeri
Category:
Infrastructure
Target version:
Start date:
2016-09-19
Due date:
% Done:

100%

Feature Branch:
Type of work:
Sysadmin
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

  • Let’s upgrade the system to Stretch first, and immediately try to go back to the redmine Debian package (instead of maintaining an installation from the upstream tarball with tons of vendorized Gems). Figuring out who’s responsible to run SQL migration code might be tricky: dpkg will believe we’re upgrading from 3.0~20140825-8~deb8u4, while we’re actually upgrading from a newer version. But db/schema.rb contains the version of our DB and is likely used for ActiveRecord migrations, so let’s inject it in the relevant place before upgrading the system. Worst case, let’s hope that the ActiveRecord migrations are idempotent.
  • Locally patched files (let’s Puppet’ize any remaining change as part of the upgrade):
    • app/models/attachment.rb: let’s try without patching and see if it’s still needed
    • bin/rails: can be dropped
    • config/application.rb and lib/: the patch configures paths depending on $X_DEBIAN_SITEID; should come for free with the Debian package, presumably (actually IIRC that’s where the patch comes from originally)
    • config/configuration.yml has potentially relevant custom settings
    • config/initializers/secret_token.rb will probably be re-generated by the Debian packaging
    • public/dispatch.fcgi: do we need that file at all?
    • public/maintenance.html, public/maintenance.jpg: vaguely useful
    • public/themes/Modula Mojito/: our custom theme
  • We need to upgrade the redmine_git_hosting plugin.
  • While we’re at it, let’s also upgrade the redmine_bootstrap_kit plugin.
  • ensure email notifications still work
  • ensure Git → Redmine integration still works
  • ensure incoming email gateway still works
  • ensure Git hooks (push to mirrors? anything else?) still work

Subtasks


Related issues

Blocks Tails - Feature #13284: Core work: Sysadmin (Adapt our infrastructure) Confirmed 2017-06-30

History

#2 Updated by intrigeri 2016-09-19 04:15:53

  • Target version set to 284

(Just so that it pops up on my radar “soonish”.)

#3 Updated by anonym 2016-11-25 10:56:54

  • Target version changed from 284 to Tails 2.10

#4 Updated by intrigeri 2016-12-18 12:42:23

  • Target version changed from Tails 2.10 to Tails_2.12

(I had to take over a bunch of more urgent sysadmin tasks so I’ll postpone this one.)

#5 Updated by intrigeri 2017-03-08 15:16:13

  • Target version changed from Tails_2.12 to Tails_3.1

#6 Updated by intrigeri 2017-06-05 14:18:17

  • Target version changed from Tails_3.1 to Tails_3.2

Maybe to be done before starting the Puppet 4 work.

#7 Updated by intrigeri 2017-06-30 11:23:30

  • blocks Feature #13284: Core work: Sysadmin (Adapt our infrastructure) added

#8 Updated by intrigeri 2017-07-28 06:54:12

#9 Updated by intrigeri 2017-07-30 08:22:09

Tentatively scheduled a sprint to do that: September 4-5.

#10 Updated by intrigeri 2017-09-02 13:49:02

  • Description updated

#11 Updated by intrigeri 2017-09-04 09:08:20

  • Description updated

#12 Updated by intrigeri 2017-09-04 09:08:42

  • Status changed from Confirmed to In Progress
  • % Done changed from 0 to 10

#13 Updated by intrigeri 2017-09-04 09:31:12

  • Description updated

#14 Updated by intrigeri 2017-09-04 09:31:57

Test!

#15 Updated by intrigeri 2017-09-04 09:32:28

  • Description updated

#16 Updated by intrigeri 2017-09-04 09:51:55

  • Description updated
  • % Done changed from 10 to 20

#17 Updated by intrigeri 2017-09-04 09:57:37

  • Description updated
  • % Done changed from 20 to 50
  • QA Check set to Ready for QA

Everything seems to work. Will ask our community to report any regression.

#18 Updated by intrigeri 2017-09-04 10:07:07

intrigeri wrote:
> Will ask our community to report any regression.

Done. I’ll close this ticket as resolved if no serious regression is identified by the end of the week.

#19 Updated by intrigeri 2017-09-04 19:56:24

#20 Updated by intrigeri 2017-09-04 19:57:10

  • QA Check changed from Ready for QA to Dev Needed

Modifying ticket metadata over email doesn’t work anymore, e.g. Bug #11831#note-126. Commenting does work though.

#21 Updated by intrigeri 2017-09-05 09:09:06

  • Priority changed from Normal to Elevated
  • % Done changed from 50 to 60

Let’s try this.

#22 Updated by intrigeri 2017-09-05 09:09:52

intrigeri wrote:
> Modifying ticket metadata over email doesn’t work anymore,

Fixed!

#23 Updated by intrigeri 2017-09-05 09:11:32

  • QA Check changed from Dev Needed to Ready for QA

#24 Updated by intrigeri 2017-09-06 12:47:32

  • Status changed from In Progress to Resolved
  • % Done changed from 60 to 100
  • QA Check deleted (Ready for QA)

Nobody complained about regressions while I’ve seen a few people use Redmine intensively.