Page MenuHomeSoftware Heritage

deployment/upgrade-swh-services: Update with elastic deployment part
ClosedPublic

Authored by ardumont on Fri, Nov 18, 11:51 AM.

Details

Summary

This explicits the main ways to deploy currently:

  • through debian packages and systemd services (main deployment)
  • dynamic through kubernetes (on-going transition target)
Test Plan

make -C sysadm html happy

Diff Detail

Repository
rDDOC Development documentation
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build has FAILED

Patch application report for D8856 (id=31923)

Rebasing onto e50484b0b7...

Current branch diff-target is up to date.
Changes applied before test
commit 36638d1699dbb69f79ee7f45c3a712ea4c3e98db
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Nov 18 11:24:57 2022 +0100

    deployment/upgrade-swh-services: Update with elastic deployment part

Link to build: https://jenkins.softwareheritage.org/job/DDOC/job/build-on-diff/267/
See console output for more information: https://jenkins.softwareheritage.org/job/DDOC/job/build-on-diff/267/console

Harbormaster returned this revision to the author for changes because remote builds failed.Fri, Nov 18, 11:54 AM
Harbormaster failed remote builds in B32851: Diff 31923!

Build has FAILED

Patch application report for D8856 (id=31928)

Rebasing onto e50484b0b7...

Current branch diff-target is up to date.
Changes applied before test
commit 1e9c5ee752786e8ec4018f75af1876ec739a27b4
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Nov 18 11:24:57 2022 +0100

    deployment/upgrade-swh-services: Update with elastic deployment part

Link to build: https://jenkins.softwareheritage.org/job/DDOC/job/build-on-diff/268/
See console output for more information: https://jenkins.softwareheritage.org/job/DDOC/job/build-on-diff/268/console

Harbormaster returned this revision to the author for changes because remote builds failed.Fri, Nov 18, 3:22 PM
Harbormaster failed remote builds in B32856: Diff 31928!
  • Upgrade services: Rewrote part to prepare the elastic deployment part
  • Upgrade services: Add the elastic deployment part

Build is green

Patch application report for D8856 (id=31929)

Rebasing onto e50484b0b7...

Current branch diff-target is up to date.
Changes applied before test
commit 0f10127968665484daa982d4cf058224983834e8
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Nov 18 18:22:13 2022 +0100

    Upgrade services: Add the elastic deployment part

commit d8b2c7c1e5046258884d1f0d5869e24a30bf5e78
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Nov 18 11:24:57 2022 +0100

    Upgrade services: Rewrote part to prepare the elastic deployment part

See https://jenkins.softwareheritage.org/job/DDOC/job/build-on-diff/269/ for more details.

ardumont retitled this revision from [wip] deployment/upgrade-swh-services: Update with elastic deployment part to deployment/upgrade-swh-services: Update with elastic deployment part.Fri, Nov 18, 6:32 PM
ardumont edited the summary of this revision. (Show Details)

Review the first part.

sysadm/deployment/upgrade-swh-service.rst
47–49

I don’t understand the first sentence. Are some words missing or maybe a mistranslation from French? (Happy to help.)

71
72

harmony

129

Extra parenthesis.

ardumont marked 2 inline comments as done.

Adapt according to first round of review

sysadm/deployment/upgrade-swh-service.rst
47–49

typo in the first sentence "an evolution or fix an issue".
It's not that bad. I've tried to reword it a bit nonetheless.
Hopefully it's clearer.

71

yes, i missed it.

Build has FAILED

Patch application report for D8856 (id=31938)

Rebasing onto e50484b0b7...

Current branch diff-target is up to date.
Changes applied before test
commit 0513d2cb7e105e6cca60c2399e7327584f3564c1
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Nov 18 18:22:13 2022 +0100

    Upgrade services: Add elastic deployment chapter

commit d8b2c7c1e5046258884d1f0d5869e24a30bf5e78
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Nov 18 11:24:57 2022 +0100

    Upgrade services: Rewrote part to prepare the elastic deployment part

Link to build: https://jenkins.softwareheritage.org/job/DDOC/job/build-on-diff/270/
See console output for more information: https://jenkins.softwareheritage.org/job/DDOC/job/build-on-diff/270/console

Build is green

Patch application report for D8856 (id=31944)

Rebasing onto e50484b0b7...

Current branch diff-target is up to date.
Changes applied before test
commit 999e6d68d9d731556d569dd73a85888d602afa2c
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Nov 18 18:22:13 2022 +0100

    Upgrade services: Add elastic deployment chapter

commit d8b2c7c1e5046258884d1f0d5869e24a30bf5e78
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Nov 18 11:24:57 2022 +0100

    Upgrade services: Rewrote part to prepare the elastic deployment part

See https://jenkins.softwareheritage.org/job/DDOC/job/build-on-diff/271/ for more details.

ardumont edited the summary of this revision. (Show Details)

The second part looks good to me. :)

The second part looks good to me. :)

\o/ cool, thx for the review.

(I've adapted the first bit you mentioned).

olasd added a subscriber: olasd.

LGTM too, thanks!

sysadm/deployment/upgrade-swh-service.rst
248–268

I guess if we're going that way (I just use a virtualenv on my host machine, fwiw) we'll (eventually) want to have a Dockerfile to run this script rather than poke at a container manually.

That'll happen when we figure out automation for this process.

This revision is now accepted and ready to land.Mon, Nov 21, 6:18 PM
sysadm/deployment/upgrade-swh-service.rst
248–268

yes!

sysadm/deployment/upgrade-swh-service.rst
248–268

heads up:

  • Adaptation to make that step automatized [1]
  • And then once ^ landed, the documentation updating that part [2]

[1] https://gitlab.softwareheritage.org/infra/swh-apps/-/merge_requests/10

[2] D8871