Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9833

Minion RPM and DEB packaging completely removes Karaf data directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 21.0.3
    • Fix Version/s: 21.0.4
    • Component/s: Build / Packaging
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      Any Debian or Red Hat-based Linux distribution
    • Sprint:
      Horizon - Feb 1st 2018, Horizon - Feb 7th 2018

      Description

      The postinst maintainer scripts for both DEB and RPM versions of the Minion packages incorrectly completely remove the MINION_HOME/data directory. This causes Minion to fail its next startup. The correct action is to remove the contents of MINION_HOME/data/tmp and MINION_HOME/data as is done in the packages for OpenNMS proper (RPM, DEB)

      Post-upgrade workaround (worked for me once, anyway):

      1. Recreate MINION_HOME/data and MINION_HOME/data/tmp with correct ownership and permissions
      2. Run systemctl stop minion (not sure why this step is needed, but it appears to be, at least on Fedora 26)
      3. Run systemctl start minion

       

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              jeffg Jeff Gehlbach
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: