Bug #31379

katello Docker repo sync with private Azure registry fails

Added by Farid Adrangi about 2 months ago. Updated about 1 month ago.

Target version:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:


we have done the following from Foreman/Katello GUO:
1. staged docker conatiners in Azure private registry.
2. created katello product/repository pointing to Azure private registry
3. when we try to sync the repository from GUI, we get the following error below which indicates that token no valid.

Note: we experiment the same thing with dockerhub private repository and we were able to successfully to synchronize. Is there a known compatibility issue with Azure registry / OAuth protocol? Your help and input is appreciated.

We are using Foreman version : 2.2.1 and Katello version: 3.16



"options"=> {"smart_proxy_id"=>1, "repo_id"=>20, "source_url"=>nil, "options"=>{}},


"error"=> {"traceback"=>
" File \"/usr/lib/python3.6/site-packages/rq/\", line 822, in perform_job\n" +
" rv = job.perform()\n" +
" File \"/usr/lib/python3.6/site-packages/rq/\", line 605, in perform\n" +
" self._result = self._execute()\n" +
" File \"/usr/lib/python3.6/site-packages/rq/\", line 611, in _execute\n" +
" return self.func(*self.args, **self.kwargs)\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_container/app/tasks/\", line 44, in synchronize\n" +
" dv.create()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/\", line 149, in create\n" +
" loop.run_until_complete(pipeline)\n" +
" File \"/usr/lib64/python3.6/asyncio/\", line 484, in run_until_complete\n" +
" return future.result()\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/\", line 209, in create_pipeline\n" +
" await asyncio.gather(*futures)\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/\", line 43, in call\n" +
" await\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_container/app/tasks/\", line 59, in run\n" +
" await{'repo_name': repo_name})\n" +
" File \"/usr/lib/python3.6/site-packages/pulpcore/download/\", line 221, in run\n" +
" return await self._run(extra_data=extra_data)\n" +
" File \"/usr/lib/python3.6/site-packages/backoff/\", line 133, in retry\n" +
" ret = await target(*args, **kwargs)\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_container/app/\", line 75, in _run\n" +
" await self.update_token(response_auth_header, this_token, repo_name)\n" +
" File \"/usr/lib/python3.6/site-packages/pulp_container/app/\", line 133, in update_token\n" +
" self.registry_auth['bearer'] = json.loads(token_data)['token']\n",
[{"message"=>"Downloading tag list",
"done"=>0}, {"message"=>"Downloading Artifacts",
"done"=>0}, {"message"=>"Associating Content",
"poll_attempts"=>{"total"=>10, "failed"=>1}}


Katello::Errors::Pulp3Error: 'token'

journal.txt journal.txt 183 KB Farid Adrangi, 12/02/2020 11:55 PM


#1 Updated by Tomer Brisker about 2 months ago

  • Category deleted (Authentication)
  • Project changed from Foreman to Katello

#2 Updated by Jonathon Turel about 2 months ago

  • Difficulty deleted (hard)
  • Status changed from New to Need more information
  • Category set to Container
  • Subject changed from katello Dokcer repo sync with private Azure registry fails to katello Docker repo sync with private Azure registry fails

Hey Farid,

Can you check journalctl from when you tried to sync (or try the sync again) and capture any errors that are logged. Please share anything you find here

#3 Updated by Farid Adrangi about 2 months ago

Hello Jonathon:
Thanks so much for looking into this issue. I attached the output of journalctl below (called journal.txt). Please let me know if you require more information.

#4 Updated by Farid Adrangi about 1 month ago

Hello Johnathan:
Any update here? Do you need any other information?

#5 Updated by Jonathon Turel about 1 month ago

  • Triaged changed from No to Yes
  • Target version set to Katello Recycle Bin
  • Status changed from Need more information to Rejected

Hey Farid,

I think this is an issue in pulpcore (pulp3). I filed a bug over there for you:

Please keep an eye on the pulp issue as they may reach out for more information from you. If any work for Katello is identified, I will re-open this and track it that way but for now I will close this since there is no action to take for us directly.


Also available in: Atom PDF