Project

General

Profile

Bug #7150

katello-installer --reset can leave elasticsearch in an odd state

Added by Justin Sherrill about 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Installer
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1131524
Description of problem:

katello-installer --reset doesn't stop elasticsearch before clearing all its data in /var/lib/elasticsearch/. There have been a few reports of elasticsearch working strangely (such as not returning results) after a --reset.

How reproducible:
Sometimes

Steps to Reproduce:
1. Install Katello
2. run 'katello-installer --reset'
3. Click around and create katello objects in the UI/Hammer
4. Restart Elasticsearch
5. Verify objects are still there

Actual results:
In some cases elasticsearch will be in a bad state

$ curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'

shows status RED

Expected results:
Elasticsearch not in a bad state. Cluster status should not be red.

Additional info:

Associated revisions

Revision fe566679 (diff)
Added by Justin Sherrill about 6 years ago

fixes #7150 - stop elasticsearch before resetting data

Revision b5289614
Added by Justin Sherrill about 6 years ago

Merge pull request #106 from jlsherrill/7150

fixes #7150 - stop elasticsearch before resetting data

History

#1 Updated by Justin Sherrill about 6 years ago

  • Status changed from New to Assigned
  • Target version set to 55
  • Legacy Backlogs Release (now unused) set to 13
  • Difficulty set to easy
  • Triaged changed from No to Yes

#2 Updated by The Foreman Bot about 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/106 added
  • Pull request deleted ()

#3 Updated by Justin Sherrill about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF