Skip to content

qa/distros: configure podman to pull from docker-mirror#38650

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
dmick:wip-dmick-docker-mirror
Dec 22, 2020
Merged

qa/distros: configure podman to pull from docker-mirror#38650
sebastian-philipp merged 1 commit intoceph:masterfrom
dmick:wip-dmick-docker-mirror

Conversation

@dmick
Copy link
Member

@dmick dmick commented Dec 18, 2020

This also requires a change to cephadm.py to search for
registry entries for docker.io by 'prefix' or 'location',
and to only add the mirror if a mirror isn't already present

Signed-off-by: Dan Mick dmick@redhat.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

This also requires a change to cephadm.py to search for
registry entries for docker.io by 'prefix' or 'location',
and to only add the mirror if a mirror isn't already present

Signed-off-by: Dan Mick <dmick@redhat.com>
@dmick dmick requested a review from a team as a code owner December 18, 2020 10:00
@dmick
Copy link
Member Author

dmick commented Dec 18, 2020

@sebastian-philipp
Copy link
Contributor

@jmolmo this fixes the ubuntu+podman issues you mentioned yesterday in the tracker

Comment on lines +1267 to 1278
dockers = [
r for r in v2['registry'] if
r.get('prefix') == 'docker.io' or r.get('location') == 'docker.io'
]
if dockers:
docker = dockers[0]
docker['mirror'] = [{
"location": mirror,
"insecure": True,
}]
if 'mirror' not in docker:
docker['mirror'] = [{
"location": mirror,
"insecure": True,
}]
return v2
Copy link
Contributor

Choose a reason for hiding this comment

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

let's see. I'd love to drop this code entirely from the cephadm.py task, if possible and only rely on https://github.com/ceph/ceph-cm-ansible.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll run a test with that code removed and see how it goes.

Copy link
Member Author

Choose a reason for hiding this comment

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

http://pulpito.front.sepia.ceph.com/dmick-2020-12-19_00:34:42-rados:cephadm:smoke-wip-cephadm-no-mirror-setup-distro-basic-gibba/ with this:

diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py
index 0ff2acf925a..78c1218711a 100644
--- a/qa/tasks/cephadm.py
+++ b/qa/tasks/cephadm.py
@@ -308,8 +308,8 @@ def ceph_bootstrap(ctx, config, registry):

     ctx.cluster.sh('sudo mkdir -p /etc/ceph')
     ctx.cluster.sh('sudo chmod 777 /etc/ceph')
-    if registry:
-        add_mirror_to_cluster(ctx, registry)
+    #if registry:
+    #    add_mirror_to_cluster(ctx, registry)
     try:
         # write seed config
         log.info('Writing seed config...')

seems to have worked okay. We can just purge all that code I suppose.

Copy link
Contributor

Choose a reason for hiding this comment

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

let's make this a new PR then

@sebastian-philipp
Copy link
Contributor

jenkins test docs

@sebastian-philipp
Copy link
Contributor

jenkins test api

@sebastian-philipp sebastian-philipp merged commit af9dac1 into ceph:master Dec 22, 2020
@dmick dmick deleted the wip-dmick-docker-mirror branch December 22, 2020 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants