-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Core/Infra/PluginsPlugin API and infrastructurePlugin API and infrastructure>docsGeneral docs changesGeneral docs changeshelp wantedadoptmeadoptme
Description
Elasticsearch version: 2.0 - 2.4
Plugins installed: [cloud-aws, head, kopf]
JVM version: 1.8.0_101
OS version: Ubuntu 14.04
Description of the problem including expected versus actual behavior:
Elasticsearch servers are updated via Ansible script:
- name: import the Elasticsearch public GPG key into apt
apt_key: url=https://packages.elastic.co/GPG-KEY-elasticsearch state=present
- name: create Elasticsearch source list
apt_repository: repo='deb http://packages.elastic.co/elasticsearch/2.x/debian stable main' state=present
- name: install Elasticsearch
apt: name=elasticsearch state=present update_cache=yes
- name: send Elasticsearch configuration template
template: src=elasticsearch.j2 dest=/etc/elasticsearch/elasticsearch.yml mode=0644
- name: make Elasticsearch start on system boot
command: update-rc.d elasticsearch defaults 95 10
- name: start Elasticsearch service
service: name=elasticsearch state=started
- name: install AWS plugin for Elasticsearch
elasticsearch_plugin: state=present name="cloud-aws" plugin_bin="/usr/share/elasticsearch/bin/plugin"
- name: restart Elasticsearch service
service: name=elasticsearch state=restarted
This updates Elasticsearch just fine, but the old version of cloud-aws hangs around. This causes Elasticsearch to fail to start up. This has been causing a headache for every Elasticsearch version for a while now and makes updates a pain.
Is the expected behaviour to remove the plugin before every update?
Steps to reproduce:
- Run the Ansible task above
Metadata
Metadata
Assignees
Labels
:Core/Infra/PluginsPlugin API and infrastructurePlugin API and infrastructure>docsGeneral docs changesGeneral docs changeshelp wantedadoptmeadoptme