Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgr/cephadm: enable use_repo_digest by default for pacific #39058

Conversation

sebastian-philipp
Copy link
Contributor

Let's keep the cluster consistent by default.

Signed-off-by: Sebastian Wagner sebastian.wagner@suse.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@sebastian-philipp
Copy link
Contributor Author

pytest failed:

>                   assert image == 'to_image'
E                   AssertionError: assert 'to_image@repo_digest' == 'to_image'
E                     - to_image
E                     + to_image@repo_digest

cephadm/tests/test_upgrade.py:89: AssertionError

@liewegas
Copy link
Member

Hmm, I wonder if instead of making this a global option like this, it would make more sense to do something like

ceph orch upgrade start --image ceph/daemon-base:master --pin (or --pin-to-digest)

to pin it to a specific digest/version, instead of an ambiguous/floating tag.

@sebastian-philipp
Copy link
Contributor Author

sebastian-philipp commented Jan 27, 2021

Hmm, I wonder if instead of making this a global option like this, it would make more sense to do something like

ceph orch upgrade start --image ceph/daemon-base:master --pin (or --pin-to-digest)

to pin it to a specific digest/version, instead of an ambiguous/floating tag.

doesn't work.
Imagine:

  1. specify ceph/daemon-base:master as the base image which is at this point equal to 16.2.1
  2. cephadm deploys mon.a and mon.b
  3. someone pushes 16.2.2 to ceph/daemon-base:master
  4. Now future daemon deployments might deploy 16.2.2 without the user knowing about that.

we have to use the digest consistently for all future deployments, independent of an upgrade or not.

@liewegas
Copy link
Member

Imagine:

  1. specify ceph/daemon-base:master as the base image which is at this point equal to 16.2.1
  2. cephadm deploys mon.a and mon.b
  3. someone pushes 16.2.2 to ceph/daemon-base:master
  4. Now future daemon deployments might deploy 16.2.2 without the user knowing about that.

we have to use the digest consistently for all future deployments, independent of an upgrade or not.

When doing an upgrade to ceph/daemon-base:master, with --pin we'd translate that to ceph/daemon-base@something in container_image, so new daemons would have the same version. We could do something similar during bootstrap for the base case install.

@github-actions
Copy link

github-actions bot commented Feb 3, 2021

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@github-actions
Copy link

github-actions bot commented Feb 8, 2021

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
@sebastian-philipp sebastian-philipp merged commit ccb26e9 into ceph:master Feb 12, 2021
@sebastian-philipp
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants