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

Unexpected Warnings for User/Group Customizations Under [[customizations.files]]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.5
    • osbuild-composer
    • No
    • Moderate
    • rhel-sst-image-builder
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      Please refer to: https://issues.redhat.com/browse/RHELPLAN-150026

      When specifying user and group customizations under the [[customizations.files]] section, warnings appear even though the configuration is valid. These warnings should not be present and may mislead users into thinking their configuration is incorrect.

      User and group customizations under [[customizations.user]] will be deprecated.

      However, this deprecation does not apply to user and group options under [[customizations.files]], which will remain supported.

      Steps to Reproduce:

      1. Sample blueprint:

      1. composer-cli blueprints show test
        name = "test"
        description = "a test blueprint"
        version = "0.0.2"
        modules = []
        groups = []
        distro = ""
        [[packages]]
        name = "bash"
        version = "*"
        [customizations]
        [[customizations.files]]
        path = "/etc/systemd/system/duagon-sync-rtc.service"
        user = "root"
        group = "root"
        mode = "0644"
        data = "[Unit]\nDescription=Sync the system clock to /dev/rtc1 device\nWants=duagon-sync-rtc.timer\n\n[Service]\nType=oneshot\nExecStart=/bin/bash -c 'hwclock -v --systohc --rtc /dev/rtc1'\n\n[Install]\nWantedBy=multi-user.target default.target\n"
        

         

       

      2. Warning:

      1. compose start test edge-container
        Warning: Please note that user customizations on "edge-container" image type are deprecated and will be removed in the near future
        Compose f1f12380-8687-490b-83cc-0efe565082d1 added to the queue
        

         

      Expected Behavior:

      No warnings should be generated if the user and group attributes are correctly set under [[customizations.files]].

      Actual Behavior:
      Warnings appear unnecessarily, potentially causing confusion.

      Environment:

      RHEL 9.5

      osbuild-126-1.el9.noarch
      osbuild-composer-118-2.el9_5.x86_64
      osbuild-composer-core-118-2.el9_5.x86_64
      osbuild-composer-worker-118-2.el9_5.x86_64
      osbuild-depsolve-dnf-126-1.el9.noarch
      osbuild-luks2-126-1.el9.noarch
      osbuild-lvm2-126-1.el9.noarch
      osbuild-ostree-126-1.el9.noarch
      osbuild-selinux-126-1.el9.noarch

       

              akoutsou@redhat.com Achilleas Koutsou
              rhn-support-ddallos Daniel Dallos
              Osbuilders Bot Account Osbuilders Bot Account
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: