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

opentelemetry-collector specfile: %pre creates user in systemd-journal group without Requires

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • None
    • None
    • rhel-cloud-exp
    • 5
    • None
    • None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      Add `opentelemetry-collector` as a dependency of a package that also depends on `systemd`.

      What is the impact of this issue to you?

      Unattended installations that list `opentelemetry-collector` as a package dependency of another package fails to install. Listing `opentelemetry-collector` in the `%package` selection seems to avoid the issue on accident.

      Please provide the package NVR for which the bug is seen:

      opentelemetry-collector-0.127.0-2.el9

      How reproducible is this bug?:

      Any time opentelemetry-collector is installed before systemd in an rpm transaction.

      Steps to reproduce

      1. dnf --releasever=9 --installroot=/tmp/installroot/ install opentelemetry-collector

      Expected results

      Everything installs

      Actual results

      Running transaction
        Preparing        :                                                                                                                                                                                     1/1 
        Running scriptlet: opentelemetry-collector-0.127.0-2.el9.x86_64                                                                                                                                        1/1 
      useradd: group 'systemd-journal' does not exist
      error: %prein(opentelemetry-collector-0.127.0-2.el9.x86_64) scriptlet failed, exit status 6

      Error in PREIN scriptlet in rpm package opentelemetry-collector
        Verifying        : opentelemetry-collector-0.127.0-2.el9.x86_64                                                                                                                                        1/1 

      Failed:
        opentelemetry-collector-0.127.0-2.el9.x86_64                                                                                                                                                               

      Error: Transaction failed

              rh-ee-knivnia Kseniia Nivnia
              kaimeyer4785 Kai Meyer
              Kseniia Nivnia Kseniia Nivnia
              Sophie Shmulevich Sophie Shmulevich
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: