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
apt repository doesn't support non-x86 architectures #9299
Comments
Very interesting issue. I was completely unaware of this. @spinscale what are your thoughts on this? |
If you'd prefer to only enable metadata for architectures that you know are being used, then I'd just ask adding arm64 to that list - I can confirm that it is being used. |
This is an architecture that we do not test on currently, so I would be a bit worried to provide packages for an architecture that we do not test. |
Closing this as we don;t want to provide packages for architecture which we are not testing. On these architectures Elasticsearch can still be installed from the zip or tar.gz distributions |
This charm uses the elasticsearch apt repository, which is currently missing metdata for non-x86 architectures. See: elastic/elasticsearch#9299 The elasticsearch deb, however, is architecture-independent and I've found that it seems to work just fine on at least one non-x86 architecture (arm64). This change overrides the architecture setting for the elasticsearch repository so that all architectures will try to fetch the amd64 version of the metadata, making the same packages visible.
This charm uses the elasticsearch apt repository, which is currently missing metdata for non-x86 architectures. See: elastic/elasticsearch#9299 The elasticsearch deb, however, is architecture-independent and I've found that it seems to work just fine on at least one non-x86 architecture (arm64). This change overrides the architecture setting for the elasticsearch repository so that all architectures will try to fetch the amd64 version of the metadata, making the same packages visible.
elasticsearch kindly provides a repository for APT-based distributions:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html
However, this repository currently only provides metadata (Packages files) for the "amd64" and "i386" architectures. The deb itself is Binary:all, and therefore can be installed on other architectures. Would it be possible to also provide metadata for other architectures supported by APT? I'm personally most interested in the arm64 (ARMv8) architecture, but the other architectures maybe useful to others.
Perhaps this could be handled with a wildcard URL (/binary-*/Packages.gz) but if not, for reference, I've included the full set of supported or in-devel Linux-based ports below. Obviously most of them are not likely targets for a production elasticsearch cluster, but who am I to judge :)
If this is not feasible, please consider documenting a workaround for such users by adding an arch tag to the sources.list entry like so to tell apt to override the arch string:
deb [arch=amd64] http://packages.elasticsearch.org/elasticsearch/
alpha
armel
armhf
hppa
ia64
m68k
mips
mipsel
powerpc
powerpcspe
ppc64
ppc64el
s390
s390x
sh4
sparc
sparc64
x32
The text was updated successfully, but these errors were encountered: