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

Add support for paths rooted beyond / #182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cboylan
Copy link

@cboylan cboylan commented Nov 10, 2015

It is possible to put the ElasticSearch api behind a proxy with a
different root path than /. Old code assumed / was used everywhere.
Update things to accept a longer path to support ElasticSearch servers
proxied in this manner.

Note that because we rely on elasticsearch lib's Transport class we
can't currently allow different paths for each host. You are still
limited to having all hosts proxied behind the same path.

It is possible to put the ElasticSearch api behind a proxy with a
different root path than /. Old code assumed / was used everywhere.
Update things to accept a longer path to support ElasticSearch servers
proxied in this manner.

Note that because we rely on elasticsearch lib's Transport class we
can't currently allow different paths for each host. You are still
limited to having all hosts proxied behind the same path.
@cboylan
Copy link
Author

cboylan commented Nov 10, 2015

The test suite seems to expect a running ElasticSearch server which isn't present in Travis? Any guidance on how I can get this working is appreciated.

cboylan added a commit to openstack-infra/elastic-recheck that referenced this pull request Nov 10, 2015
This reverts commit 87453fe.

Reverting because newer pyelasticsearch does not support API roots other
than / which breaks against our root of /elasticsearch. I have pushed
pyelasticsearch/pyelasticsearch#182 upstream to
fix so maybe we can upgrade once that gets in and is released.

Change-Id: I4ba78fac924bf6d2ec8ccda1af6970577c74e6ec
cboylan added a commit to openstack/openstack that referenced this pull request Nov 10, 2015
Project: openstack-infra/elastic-recheck  b9946fded52a1cdd88e275415cf0f83a8bdfc870

Revert "Update pyelasticsearch to >=1.4"

This reverts commit 87453fe17bb3051c46058d7b1972fb320e38e54f.

Reverting because newer pyelasticsearch does not support API roots other
than / which breaks against our root of /elasticsearch. I have pushed
pyelasticsearch/pyelasticsearch#182 upstream to
fix so maybe we can upgrade once that gets in and is released.

Change-Id: I4ba78fac924bf6d2ec8ccda1af6970577c74e6ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant