Uploaded image for project: 'OpenShift Runtimes'
  1. OpenShift Runtimes
  2. RUN-2249

[containers/buildah] Adding manifest does not work with multiple files

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • buildah
    • False
    • None
    • False
    • sst_container_tools

      [2514033591] Upstream Reporter: Lukáš Zapletal
      Upstream issue status: Closed
      Upstream description:

      Hello,

      the man page says the following for the --artifact option:

      Create an artifact manifest and add it to the image index. Arguments after the index name will be interpreted as file names rather than as image references. In most scenarios, the --artifact-type option should also be specified.

      This is now what I am seeing.

      Steps to reproduce the issue:

      One file works fine:

      lzap@dev:~/netboot$ buildah manifest add --artifact quay.io/lzapletal/fedora-bootfiles:39 ./push.sh 
      0e99b03ca288875b8d89619bd28000ce9f6efe773ff9bed522ef1ad3fbad01da: sha256:e4c18e89f69ddf54effd3f5b604ec2f6d75481b1c39eaacb808adea512890d40

      Two or more:

      lzap@dev:~/netboot$ buildah manifest add --artifact quay.io/lzapletal/fedora-bootfiles:39 ./push.sh ./renovate.json
      Error: parsing reference "": repository name must have at least one component

      Describe the results you received:

      Output of rpm -q buildah or apt list buildah:

      buildah-1.37.1-1.fc40.x86_64

      Output of buildah version:

      buildah version 1.37.1 (image-spec 1.1.0, runtime-spec 1.2.0)

      Output of cat /etc/*release:

      Fedora release 40 (Forty)
      NAME="Fedora Linux"
      VERSION="40 (Forty)"
      ID=fedora
      VERSION_ID=40
      VERSION_CODENAME=""
      PLATFORM_ID="platform:f40"
      PRETTY_NAME="Fedora Linux 40 (Forty)"
      ANSI_COLOR="0;38;2;60;110;180"
      LOGO=fedora-logo-icon
      CPE_NAME="cpe:/o:fedoraproject:fedora:40"
      DEFAULT_HOSTNAME="fedora"
      HOME_URL="https://fedoraproject.org/"
      DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/"
      SUPPORT_URL="https://ask.fedoraproject.org/"
      BUG_REPORT_URL="https://bugzilla.redhat.com/"
      REDHAT_BUGZILLA_PRODUCT="Fedora"
      REDHAT_BUGZILLA_PRODUCT_VERSION=40
      REDHAT_SUPPORT_PRODUCT="Fedora"
      REDHAT_SUPPORT_PRODUCT_VERSION=40
      SUPPORT_END=2025-05-13
      Fedora release 40 (Forty)

      Output of uname -a:

      Linux dev.home.lan 6.10.6-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 19 14:09:30 UTC 2024 x86_64 GNU/Linux

      Observation: this works fine with podman, only buildah CLI is affected.


      Upstream URL: https://github.com/containers/buildah/issues/5727

            Unassigned Unassigned
            upstream-sync Upstream Sync
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: