Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RHEL/CentOS] Elasticsearch v6 stops working after epicli upgrade #922

Closed
przemyslavic opened this issue Feb 17, 2020 · 5 comments
Closed
Assignees
Labels
Milestone

Comments

@przemyslavic
Copy link
Collaborator

przemyslavic commented Feb 17, 2020

Describe the bug
There is an issue with Elasticsearch service not starting on RHEL environments after cluster upgrading.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a 0.4.4 cluster (with logging vm)
  2. Run epicli upgrade

Expected behavior
The cluster has been upgraded successfully. All components are working properly

Config files

...
    logging:
      count: 1
      machine: logging-machine-rhel
...
---
kind: infrastructure/virtual-machine
name: logging-machine-rhel
provider: azure
based_on: logging-machine
specification:
  storage_image_reference:
    publisher: RedHat
    offer: RHEL
    sku: 7-RAW
    version: "7.7.2019090418"

OS (please complete the following information):

  • OS: [RHEL]

Cloud Environment (please complete the following information):

  • Cloud Provider [all]

Additional context

After upgrading there is elasticsearch 7.6.0 instead of 6.8.5 installed on RHEL vms.

Installed Packages
elasticsearch-oss.x86_64 7.6.0-1 @epirepo
[root@vm-ci-upgrades-rhel-elk-001 bin]# ./elasticsearch --version
Version: 7.6.0, Build: oss/rpm/2020-02-06T00:09:00.449973Z, JVM: 13.0.2

The service does not start

[2020-02-17T12:28:05,115][INFO ][o.e.d.DiscoveryModule ] [vm-ci-upgrades-rhel-elk-001] using discovery type [zen] and seed hosts providers [settings]
[2020-02-17T12:28:07,040][INFO ][o.e.n.Node ] [vm-ci-upgrades-rhel-elk-001] initialized
[2020-02-17T12:28:07,040][INFO ][o.e.n.Node ] [vm-ci-upgrades-rhel-elk-001] starting ...
[2020-02-17T12:28:07,555][INFO ][o.e.t.TransportService ] [vm-ci-upgrades-rhel-elk-001] publish_address {10.0.0.5:9300}, bound_addresses {10.0.0.5:9300}
[2020-02-17T12:28:08,701][INFO ][o.e.b.BootstrapChecks ] [vm-ci-upgrades-rhel-elk-001] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2020-02-17T12:28:08,704][ERROR][o.e.b.Bootstrap ] [vm-ci-upgrades-rhel-elk-001] node validation exception
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2020-02-17T12:28:08,818][INFO ][o.e.n.Node ] [vm-ci-upgrades-rhel-elk-001] stopping ...
[2020-02-17T12:28:08,950][INFO ][o.e.n.Node ] [vm-ci-upgrades-rhel-elk-001] stopped
[2020-02-17T12:28:08,951][INFO ][o.e.n.Node ] [vm-ci-upgrades-rhel-elk-001] closing ...

We also need to update the upgrade.yml file by removing the when condition:

- hosts: elasticsearch
  become: true
  become_method: sudo
  tasks:
    - import_role:
        name: upgrade
        tasks_from: elasticsearch
      when: ansible_os_family == 'Debian' # TODO: Fix issue #922 for RedHat
@mkyc
Copy link
Contributor

mkyc commented Aug 4, 2020

@przemyslavic can you groom this a bit?

@przemyslavic
Copy link
Collaborator Author

@mkyc just updated.

@to-bar
Copy link
Contributor

to-bar commented Oct 6, 2020

We need to fix this issue before releasing 0.5.5, 0.6.1 and 0.7.2.

@to-bar to-bar self-assigned this Oct 6, 2020
@to-bar to-bar added this to the S20201008 milestone Oct 6, 2020
@mkyc
Copy link
Contributor

mkyc commented Oct 6, 2020

@to-bar can you create backport issues? We should not solve all those with one issue.

@to-bar to-bar changed the title Elasticsearch service not starting on RHEL after running epicli upgrade command [RHEL/CentOS] Elasticsearch v6 stops working after epicli upgrade Oct 6, 2020
@mkyc mkyc modified the milestones: S20201008, S20201022 Oct 8, 2020
@to-bar
Copy link
Contributor

to-bar commented Oct 15, 2020

Test OK (upgrade from 0.4.5 to develop)

@mkyc mkyc closed this as completed Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants