Project

Profile

Help

Issue #3573

closed

Not able to sync from google registry.

Added by ipanova@redhat.com over 6 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
Platform Release:
2.16.2
Target Release - Docker:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 35
Quarter:

Description

panova@ina pulp]$ pulp-admin docker repo create --repo-id test --feed https://gcr.io --upstream-name google_containers/kube-controller-manager-amd64

Repository [test] successfully created

[ipanova@ina pulp]$ pulp-admin -vv docker repo sync run --repo-id test

+----------------------------------------------------------------------+
                    Synchronizing Repository [test]
+----------------------------------------------------------------------+

2018-04-17 14:42:08,771 - DEBUG - sending POST request to /pulp/api/v2/tasks/search/
2018-04-17 14:42:09,963 - INFO - POST request to /pulp/api/v2/tasks/search/ with parameters {"criteria": {"filters": {"state": {"$nin": ["finished", "error", "canceled", "skipped"]}, "tags": {"$all": ["pulp:repository:test", "pulp:action:sync"]}}}}
2018-04-17 14:42:09,963 - INFO - Response status : 200 

2018-04-17 14:42:09,963 - INFO - Response body :
 []

2018-04-17 14:42:09,963 - DEBUG - sending POST request to /pulp/api/v2/repositories/test/actions/sync/
2018-04-17 14:42:10,144 - INFO - POST request to /pulp/api/v2/repositories/test/actions/sync/ with parameters {"override_config": null}
2018-04-17 14:42:10,145 - INFO - Response status : 202 

2018-04-17 14:42:10,145 - INFO - Response body :
 {
  "spawned_tasks": [
    {
      "_href": "/pulp/api/v2/tasks/76dc6625-140a-4562-af2b-2329aca00d57/", 
      "task_id": "76dc6625-140a-4562-af2b-2329aca00d57"
    }
  ], 
  "result": null, 
  "error": null
}

This command may be exited via ctrl+c without affecting the request.

2018-04-17 14:42:11,146 - DEBUG - sending GET request to /pulp/api/v2/tasks/76dc6625-140a-4562-af2b-2329aca00d57/
2018-04-17 14:42:11,234 - INFO - GET request to /pulp/api/v2/tasks/76dc6625-140a-4562-af2b-2329aca00d57/ with parameters None
2018-04-17 14:42:11,234 - INFO - Response status : 200 

2018-04-17 14:42:11,235 - INFO - Response body :
 {
  "exception": null, 
  "task_type": "pulp.server.managers.repo.sync.sync", 
  "_href": "/pulp/api/v2/tasks/76dc6625-140a-4562-af2b-2329aca00d57/", 
  "task_id": "76dc6625-140a-4562-af2b-2329aca00d57", 
  "tags": [
    "pulp:repository:test", 
    "pulp:action:sync"
  ], 
  "finish_time": "2018-04-17T12:42:10Z", 
  "_ns": "task_status", 
  "start_time": "2018-04-17T12:42:10Z", 
  "traceback": "Traceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/server/async/tasks.py\", line 529, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/server/async/tasks.py\", line 107, in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 438, in __protected_call__\n    return self.run(*args, **kwargs)\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/server/controllers/repository.py\", line 769, in sync\n    sync_report = sync_repo(transfer_repo, conduit, call_config)\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/server/async/tasks.py\", line 732, in wrap_f\n    return f(*args, **kwargs)\n  File \"/home/ipanova/pulp_development/pulp_docker/plugins/pulp_docker/plugins/importers/importer.py\", line 85, in sync_repo\n    return self.sync_step.process_lifecycle()\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/plugins/util/publish_step.py\", line 572, in process_lifecycle\n    super(PluginStep, self).process_lifecycle()\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/plugins/util/publish_step.py\", line 163, in process_lifecycle\n    step.process()\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/plugins/util/publish_step.py\", line 256, in process\n    self._process_block()\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/plugins/util/publish_step.py\", line 303, in _process_block\n    self.process_main()\n  File \"/home/ipanova/pulp_development/pulp_docker/plugins/pulp_docker/plugins/importers/sync.py\", line 223, in process_main\n    available_tags = self.parent.index_repository.get_tags()\n  File \"/home/ipanova/pulp_development/pulp_docker/plugins/pulp_docker/plugins/registry.py\", line 461, in get_tags\n    reason=str(e))\nPulpCodedException: Could not fetch repository google_containers/kube-controller-manager-amd64 from registry https://gcr.io - Unauthorized or Not Found\n", 
  "spawned_tasks": [], 
  "progress_report": {
    "docker_importer": [
      {
        "num_success": 0, 
        "description": "Downloading manifests", 
        "step_type": "sync_step_metadata", 
        "items_total": 1, 
        "state": "FAILED", 
        "error_details": [
          {
            "traceback": "  File \"/home/ipanova/pulp_development/pulp/server/pulp/plugins/util/publish_step.py\", line 256, in process\n    self._process_block()\n\n  File \"/home/ipanova/pulp_development/pulp/server/pulp/plugins/util/publish_step.py\", line 303, in _process_block\n    self.process_main()\n\n  File \"/home/ipanova/pulp_development/pulp_docker/plugins/pulp_docker/plugins/importers/sync.py\", line 223, in process_main\n    available_tags = self.parent.index_repository.get_tags()\n\n  File \"/home/ipanova/pulp_development/pulp_docker/plugins/pulp_docker/plugins/registry.py\", line 461, in get_tags\n    reason=str(e))\n", 
            "error": "Could not fetch repository google_containers/kube-controller-manager-amd64 from registry https://gcr.io - Unauthorized or Not Found"
          }
        ], 
        "details": "", 
        "num_failures": 1, 
        "step_id": "8766bac3-bbaf-4d7f-8b56-d287441eb971", 
        "num_processed": 1
      }, 
      {
        "num_success": 0, 
        "description": "Copying units already in pulp", 
        "step_type": "get_local", 
        "items_total": 1, 
        "state": "NOT_STARTED", 
        "error_details": [], 
        "details": "", 
        "num_failures": 0, 
        "step_id": "90d5b1bc-7004-493b-921c-4823d7cf78ba", 
        "num_processed": 0
      }, 
      {
        "num_success": 0, 
        "description": "Copying units already in pulp", 
        "step_type": "get_local", 
        "items_total": 1, 
        "state": "NOT_STARTED", 
        "error_details": [], 
        "details": "", 
        "num_failures": 0, 
        "step_id": "7106394e-5b62-4baf-b60f-b45e576ddb23", 
        "num_processed": 0
      }, 
      {
        "num_success": 0, 
        "description": "Downloading remote files", 
        "step_type": "sync_step_download", 
        "items_total": 1, 
        "state": "NOT_STARTED", 
        "error_details": [], 
        "details": "", 
        "num_failures": 0, 
        "step_id": "3e6790b5-e313-4a6c-bff5-2c8034672701", 
        "num_processed": 0
      }, 
      {
        "num_success": 0, 
        "description": "Saving Manifests and Blobs", 
        "step_type": "sync_step_save", 
        "items_total": 1, 
        "state": "NOT_STARTED", 
        "error_details": [], 
        "details": "", 
        "num_failures": 0, 
        "step_id": "33ded410-9b87-4047-a4fb-8e34e6c0adab", 
        "num_processed": 0
      }, 
      {
        "num_success": 0, 
        "description": "Saving Tags", 
        "step_type": "sync_step_save", 
        "items_total": 1, 
        "state": "NOT_STARTED", 
        "error_details": [], 
        "details": "", 
        "num_failures": 0, 
        "step_id": "a17ddb07-20a0-4fba-a2e3-8375d0a199a3", 
        "num_processed": 0
      }
    ]
  }, 
  "queue": "reserved_resource_worker-0@ina.usersys.redhat.com.dq", 
  "state": "error", 
  "worker_name": "reserved_resource_worker-0@ina.usersys.redhat.com", 
  "result": null, 
  "error": {
    "code": "DKR1007", 
    "data": {
      "repo": "google_containers/kube-controller-manager-amd64", 
      "reason": "Unauthorized or Not Found", 
      "registry": "https://gcr.io"
    }, 
    "description": "Could not fetch repository google_containers/kube-controller-manager-amd64 from registry https://gcr.io - Unauthorized or Not Found", 
    "sub_errors": []
  }, 
  "_id": {
    "$oid": "5ad5eba2994d5791ac820ff5"
  }, 
  "id": "5ad5eba2994d5791ac820ff5"
}

Task Failed

Could not fetch repository google_containers/kube-controller-manager-amd64 from
registry https://gcr.io - Unauthorized or Not Found

Also available in: Atom PDF