-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
Issue supplying datadir as a string, not as array. #802
Comments
Wow, yep, that's pretty serious upstream bug. You're right that in its current state, the module isn't going to be able to support that workaround because of the |
@wonkyto (and any other observers), I have a changed staged in my fork that places the instance's config hash at the highest precedence level when merging the final instance configuration. This means that instead of defining If someone can confirm this serves as a viable workaround, I can merge and release it. |
Hi Peter,
Yes that bug report is spot on. Fortunately we picked this up in model,
but only because we are using multiple nodes per physical server - with
two nodes trying to write to the same (unspecified) location it was easy
to discover because the 2nd node just wouldn't start.
On Tue, 11 Apr 2017, at 02:49 PM, Peter Dyson wrote:
Seems it might also be related: elastic/elasticsearch#23981[1]
— You are receiving this because you authored the thread. Reply to
this email directly, view it on GitHub[2], or mute the thread[3].
|
Related: elastic/elasticsearch#23981 |
Bug description
This isn't necessarily a bug with the Elastic Puppet model, however there is an impact of using this module to configure data-nodes when supplying datadir settings.
Since upgrading to version 5.3.0 we've experienced an issue when configuring our
elasticsearch.yml
using the following formatUnfortunately there appears to be a bug which also adds an unspecified 5th location of
/var/lib/elasticsearch
to the path.data array.Apparently this relates to https://github.com/elastic/elasticsearch/pull/8381 however we've only experienced this issue since upgrading to Elasticsearch 5.3.0. The only work around from Elastic support was to write the path.data variable as a string (not array). We were encouraged to NOT use the array format going forward.
Now while manually changing the format of the
elasticsearch.yml
does resolve the issue, the problem with using the Elastic Puppet module is that previously we supplied each datadir as an arrayNow we must supply as a string
But this has the unfortunately side effect that the Elastic Puppet module tries to create the directory
location: '/data/elasticsearch/disk01/data-node-02, /data/elasticsearch/disk02/data-node-02, /data/elasticsearch/disk03/data-node-02, /data/elasticsearch/disk04/data-node-02'
, and fails because this isn't a valid directory.We are stuck between a rock and hard place. We can't use the elastic puppet module to configure the nodes because of a bug within Elasticsearch, however the advice from Elastic is to not use the format that the Puppet module uses.
The text was updated successfully, but these errors were encountered: