Skip to content

Publish hangs indefinitely when bundle contains certain images #3311

@EugenVeracity

Description

@EugenVeracity

Describe the bug

Attempting to publish a bundle to a registry will hang indefinitely if the bundle contains certain images in the images section of the porter.yaml.

I encountered this problem when trying to push a bundle containing the following images:

  • postgres:17.2 (using other versions of postgres also resulted in the same behaviour)
  • redis:7.4

I let it run for over an hour before terminating the process. Specifying the digest instead of the tag had the same result. Other images that I tried worked fine (e.g. a bundle containing hashicorp/consul:1.20.1 can be published successfully).

I tested with multiple different registries (Distribution, Artifactory and Nexus) and the behaviour was observed with all of them.

To Reproduce

Steps to reproduce the behavior:

  1. Create new Porter bundle: porter create
  2. Add images section containing postgres to porter.yaml:
images:
  postgres:
    repository: postgres
    tag: 17.2 # or digest: sha256:888402a8cd6075c5dc83a31f58287f13306c318eaad016661ed12e076f3e6341
  1. Build the bundle: porter build
  2. Start a local registry: docker run -d -p 5000:5000 --name registry registry:2
  3. Publish the bundle: porter publish
  4. Publish gets stuck on "Starting to copy image postgres@sha256:888402..."

Expected Behavior

The bundle should be published successfully.

Porter Command and Output

$ porter publish
reference not found (localhost:5000/porter-hello:v0.1.0)
Pushing bundle image...
The push refers to repository [localhost:5000/porter-hello]
507c9b9a290a: Pushed
a2c84987c9c5: Pushed
da9cf36b1b7f: Pushed
be67e3c6dd67: Pushed
4f4fb700ef54: Pushed
01e382c7c42f: Pushed
5bfc8f96be69: Pushed
33fddb31ec5d: Pushed
9f9e76267c1c: Pushed
f4d618cb60a8: Pushed
0eb6c13394f8: Pushed
porter-37da5464f8517662657529ad34851db9: digest: sha256:f925a03de313d60064e6b569adb8ac4023bc6c31c303a5c70a6efd9b6ce97fbb size: 856

Rewriting CNAB bundle.json...
Starting to copy image localhost:5000/porter-hello@sha256:f925a03de313d60064e6b569adb8ac4023bc6c31c303a5c70a6efd9b6ce97fbb...
Completed image localhost:5000/porter-hello@sha256:f925a03de313d60064e6b569adb8ac4023bc6c31c303a5c70a6efd9b6ce97fbb copy
Starting to copy image postgres@sha256:888402a8cd6075c5dc83a31f58287f13306c318eaad016661ed12e076f3e6341...

Version

porter v1.2.1 (aa97c59)

Metadata

Metadata

Assignees

Labels

bugOops, sorry!

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions