rancher / community-catalog

Catalog entries contributed by the community
385 stars 641 forks source link

Elasticsearch Cluster 5.5.1-rancher1 not deployable #756

Closed ckauf closed 6 years ago

ckauf commented 6 years ago

Hi *,

when trying to deploy the ES community template 5.5.1-rancher1 (and also 5.4.0-rancher1 and 5.4.2-rancher1) I get the following error:

Error (can't have more than one primary service [es-client es-data] referencing the same sidekick [es-storage]

I guess this is the problem in the compose file:

es-data:
  [...]
  volumes_from:
    - es-storage

es-client:
  [...]
  volumes_from:
    - es-storage

I am running this software stack:

Component Version
Rancher v1.6.15
Cattle v0.183.45
User Interface v1.6.42
Rancher CLI v0.6.8
Rancher Compose v0.12.5

I have another rancher cluster where the same template can be deployed just fine. Software Versions:

Component Version
Rancher v1.6.14
Cattle v0.183.37
User Interface v1.6.37
Rancher CLI v0.6.7
Rancher Compose v0.12.5

I've checked the changelog, but could not find any hints what may explain this issue. Is there anything I can add?

Regards, Chris

krisanalfa commented 6 years ago

Any workaround?

ckauf commented 6 years ago

I downgraded my Rancher Cluster to 1.6.14 as described in the section "Important - Upgrade" that can be found here. Unfortunately I do not know enough about the rancher-compose format to fix this, yet.

junkiebev commented 6 years ago

I fixed this by tweaking a few things on the latest version of elasticsearch in my company published public catalog: https://github.com/INTLFCStone/Rancher-Catalog

Take a look see @krisanalfa @ckauf

jriberg commented 6 years ago

Same issue for version 6.2.3

vignesh380 commented 6 years ago

+1 on the issue. still there on 6.2.3

phynias commented 6 years ago

+1 is there a fix or workaround ??

mkoczorowski commented 6 years ago

+1

rawmind0 commented 6 years ago

Hi all,

issue is related to #10563 and merged PR #143 included at rancher v1.6.15. It avoid the use same sidekick for distinct services, like es-storage is defined at es-cluster catalog package.

The solution is redefine storage sidekick es-storage to single storage sidekick for every es-cluster service, es-master-storage, es-data-storage and es-client-storage. Created and merged PR https://github.com/rancher/community-catalog/pull/789 that address it.

es-cluster versions should be filtered correctly for rancher version. 5.5.1-rancher2 and 6.2.3-rancher2 would be deployed at rancher v1.6.15 and higher.

rawmind0 commented 6 years ago

Feel free to reopen if still have issues.