Project

Profile

Help

Issue #6745

closed

image_build 'artifacts' are not found during build time

Added by dkliban@redhat.com almost 4 years ago. Updated over 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_container/461":https://github.com/pulp/pulp_container/issues/461


$ http --auth admin:password --form :8080/pulp/api/v3/repositories/container/container/856132db-f1da-4b94-b6f2-0ee8196513ae/build_image/ containerfile@./Containerfile artifact="{\"/pulp/api/v3/artifacts/efb8d793-0bea-4d2d-9290-7846850cd802/\": \"foo/bar/example.txt\"}"

HTTP/1.1 202 Accepted
Allow: POST, OPTIONS
Connection: keep-alive
Content-Length: 67
Content-Type: application/json
Date: Thu, 14 May 2020 19:06:33 GMT
Server: nginx/1.18.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "task": "/pulp/api/v3/tasks/391134c2-46dc-4b01-b890-17d3d2ea9af5/"
}

$ http --auth admin:password  :8080/pulp/api/v3/tasks/391134c2-46dc-4b01-b890-17d3d2ea9af5/
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: keep-alive
Content-Length: 1687
Content-Type: application/json
Date: Thu, 14 May 2020 19:06:52 GMT
Server: nginx/1.18.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "child_tasks": [],
    "created_resources": [],
    "error": {
        "description": "b'Getting image source signatures\\nCopying blob sha256:e6a50b627bcb03d96996bb8e836ecb178eae7425636e3424d9e8d33a918768dd\\nCopying config sha256:8114e7c1868bd9b15188df8c34953b151b81f90a73f16bc00aaec227bd500cc9\\nWriting manifest to image destination\\nStoring signatures\\nerror building at STEP \"COPY foo/bar/example.txt /inside-image.txt\": no files found matching \"/var/lib/pulp/tmp/13105@f9c8c543863e/391134c2-46dc-4b01-b890-17d3d2ea9af5/foo/bar/example.txt\": no such file or directory\\nlevel=error msg=\"exit status 1\"\\n'",
        "traceback": "  File \"/usr/local/lib/python3.7/site-packages/rq/worker.py\", line 886, in perform_job\n    rv = job.perform()\n  File \"/usr/local/lib/python3.7/site-packages/rq/job.py\", line 664, in perform\n    self._result = self._execute()\n  File \"/usr/local/lib/python3.7/site-packages/rq/job.py\", line 670, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/usr/local/lib/python3.7/site-packages/pulp_container/app/tasks/builder.py\", line 124, in build_image_from_containerfile\n    raise Exception(bud_cp.stderr)\n"
    },
    "finished_at": "2020-05-14T19:06:44.994490Z",
    "name": "pulp_container.app.tasks.builder.build_image_from_containerfile",
    "parent_task": null,
    "progress_reports": [],
    "pulp_created": "2020-05-14T19:06:33.661619Z",
    "pulp_href": "/pulp/api/v3/tasks/391134c2-46dc-4b01-b890-17d3d2ea9af5/",
    "reserved_resources_record": [
        "/pulp/api/v3/repositories/container/container/856132db-f1da-4b94-b6f2-0ee8196513ae/"
    ],
    "started_at": "2020-05-14T19:06:33.822966Z",
    "state": "failed",
    "task_group": null,
    "worker": "/pulp/api/v3/workers/81de122d-2321-4c38-9f3a-9080f7cd9bba/"
}


Actions #1

Updated by rchan almost 4 years ago

  • Sprint changed from Sprint 72 to Sprint 73
Actions #2

Updated by pulpbot almost 4 years ago

  • Status changed from NEW to POST
Actions #3

Updated by ipanova@redhat.com almost 4 years ago

  • Status changed from POST to NEW
Actions #4

Updated by ipanova@redhat.com almost 4 years ago

  • Sprint deleted (Sprint 73)
Actions #5

Updated by ipanova@redhat.com over 3 years ago

  • Sprint set to Sprint 80
Actions #6

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 80 to Sprint 81
Actions #7

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 81 to Sprint 82
Actions #8

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 82 to Sprint 83
Actions #9

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 83 to Sprint 84
Actions #10

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 84 to Sprint 85
Actions #11

Updated by pulpbot over 3 years ago

  • Status changed from NEW to POST
Actions #12

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 85 to Sprint 86
Actions #13

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 86 to Sprint 87
Actions #14

Updated by rchan about 3 years ago

  • Sprint changed from Sprint 87 to Sprint 88
Actions #15

Updated by ipanova@redhat.com about 3 years ago

  • Sprint deleted (Sprint 88)
Actions #16

Updated by pulpbot over 2 years ago

  • Description updated (diff)
  • Status changed from POST to CLOSED - DUPLICATE

Also available in: Atom PDF