Uploaded image for project: 'Repose'
  1. REP-3901

Repose user not created by RPM if system-model.cfg.xml already exists, unable to start Repose

    Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Unprioritized
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.5.0.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Sprint 137
    • Story Points:
      3
    • Capitalizable:
      True

      Description

      The RPM preinstall script is checking if the system-model.cfg.xml file is already present, and if it is, it checks if it contains the dist-datastore filter from Repose 2. If the file is not present, it is assumed this is the first time Repose is being installed on the host and the "repose" user is created.

      This is a problem if the user puts their configuration on the host before installing Repose for the first time. Although the installer will succeed, the config files will be owned by root, and more importantly, Repose won't be able to start up since the "repose" user doesn't exist.

      The following error occurs:

      localhost systemd: repose-valve.service: main process exited, code=exited, status=217/USER
      

      The issue is in this file: repose-aggregator/artifacts/src/config/scripts/preinst-rpm
      Handy link: preinst-rpm

      Acceptance Criteria:

      • The "repose" user and group should still be created (if necessary) even if pre-existing Repose config files are detected.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                wdschei Bill Scheidegger
                Reporter:
                mario.lopez Mario Lopez
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: