Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4639

composer-cli fails to build edge images with nodejs or npm included

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • Critical
    • rhel-sst-image-builder
    • ssg_front_door
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:
      image builder fails to make edge images that include npm

      Version-Release number of selected component (if applicable):
      osbuild-65-1.el8.noarch
      osbuild-composer-62-3.el8_7.x86_64
      osbuild-65-1.el9.noarch
      osbuild-composer-62.1-3.el9_1.x86_64

      How reproducible:
      Everytime

      Steps to Reproduce:
      1.Create blueprint with npm or nodejs (which pulls in npm)

      name = "RhelEdge"
      description = ""
      version = "0.0.1"
      modules = []
      groups = []
      distro = ""

      [[packages]]
      name = "npm"
      version = "*"

      2. composer-cli compose start RhelEdge edge-commit
      3.

      Actual results:
      Stage org.osbuild.ostree.preptree
      Output:
      /usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc detected, skipping
      All rules containing unresolvable specifiers will be skipped.
      Failed to open file "/sys/fs/selinux/checkreqprot": Read-only file system
      ostree: machineid-compat: True
      Traceback (most recent call last):
      File "/run/osbuild/bin/org.osbuild.ostree.preptree", line 172, in <module>
      r = main(args["tree"], args["options"])
      File "/run/osbuild/bin/org.osbuild.ostree.preptree", line 122, in main
      os.rename(f"

      {tree}/etc", f"{tree}

      /usr/etc")
      FileExistsError: [Errno 17] File exists: '/run/osbuild/tree/etc' -> '/run/osbuild/tree/usr/etc'

      Additional info:
      This is also being discussed with HMS

      https://issues.redhat.com/browse/HMS-1406
      https://github.com/coreos/rpm-ostree/issues/2003#issuecomment-1453354982

              osbuilders Osbuilders Bot Account
              rhn-support-jcastran John Castranio
              Osbuilders Bot Account Osbuilders Bot Account
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: