Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-447

Monit fails to reload when upgrading from 0.2.0BETA to master

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.3.0
    • None

    Description

      As of commit [5ffcef8](https://github.com/apache/incubator-metron/commit/5ffcef8d4a9ec0788dca094f54b07d99c44c6bef), `/etc/monit.d/enrichment-elasticsearch.monit` was renamed to `/etc/monit.d/indexing-elasticsearch.monit`, however the old file isn't removed via ansible, which causes the below error during an upgrade:

      `Starting monit: /etc/monit.d/enrichment-elasticsearch.monit:18: Service name conflict, enrichment already defined '/usr/local/monit/status_enrichment_topology.sh'`

      Not sure of other downstream impacts, but the remedy I suggest is to modify `/etc/monit.conf:23` to be more specific (`include /etc/monit.d/*.monit` and rename `/etc/monit.d/logging`?) and rename `/etc/monit.d/enrichment-elasticsearch.monit` to append a backup string as a part of the run.

      Alternatively, we could just add a `state: absent` to `incubator-metron/metron-deployment/roles/monit/tasks/monit-definitions.yml` to delete the old file, if it exists.

      Looking for feedback on the approach, but happy to fix this myself and submit a PR.

      Attachments

        Activity

          People

            jonzeolla Jon Zeolla
            jonzeolla Jon Zeolla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified