Skip to content

qa/tasks/cephadm: Add check for already set image#35287

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
gekios:wip-cephadm-bootstrapped-fix
May 29, 2020
Merged

qa/tasks/cephadm: Add check for already set image#35287
sebastian-philipp merged 1 commit intoceph:masterfrom
gekios:wip-cephadm-bootstrapped-fix

Conversation

@gekios
Copy link
Contributor

@gekios gekios commented May 28, 2020

Moving image instantiation to initialize_config() function because it overrides the image in already bootstrapped clusters

Signed-off-by: Georgios Kyratsas gkyratsas@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 dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@gekios gekios requested a review from sebastian-philipp May 28, 2020 09:56
@gekios gekios requested a review from a team as a code owner May 28, 2020 09:56
@gekios gekios force-pushed the wip-cephadm-bootstrapped-fix branch from 6776635 to 3678c53 Compare May 28, 2020 10:45
@gekios gekios force-pushed the wip-cephadm-bootstrapped-fix branch from 3678c53 to 18c5187 Compare May 28, 2020 15:08

# image
ctx.ceph[cluster_name].image = config.get('image')
if not hasattr(ctx.ceph[cluster_name].image, 'image'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if not hasattr(ctx.ceph[cluster_name].image, 'image'):
if not hasattr(ctx.ceph[cluster_name], 'image'):

?

Adding a check for already bootstrapped clusters where the image is
already set to avoid overriding it.

Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
@gekios gekios force-pushed the wip-cephadm-bootstrapped-fix branch from 18c5187 to fabcbea Compare May 28, 2020 15:16
@gekios gekios changed the title qa/tasks/cephadm: Move image instantiation qa/tasks/cephadm: Add check fox already set image May 28, 2020
@gekios gekios changed the title qa/tasks/cephadm: Add check fox already set image qa/tasks/cephadm: Add check for already set image May 28, 2020
@sebastian-philipp
Copy link
Contributor

@gekios
Copy link
Contributor Author

gekios commented May 29, 2020

hmm I tested it on top of master and it was successful.
http://pulpito.ceph.com/gkyratsas-2020-05-29_08:53:48-rados:cephadm-master-distro-basic-smithi/

@sebastian-philipp sebastian-philipp merged commit a66fb92 into ceph:master May 29, 2020
@gekios gekios deleted the wip-cephadm-bootstrapped-fix branch May 29, 2020 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants