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

apt repository doesn't support non-x86 architectures #9299

Closed
dannf opened this issue Jan 14, 2015 · 4 comments
Closed

apt repository doesn't support non-x86 architectures #9299

dannf opened this issue Jan 14, 2015 · 4 comments
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts discuss Team:Delivery Meta label for Delivery team

Comments

@dannf
Copy link

dannf commented Jan 14, 2015

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

@clintongormley clintongormley added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts discuss labels Jan 15, 2015
@electrical
Copy link
Contributor

Very interesting issue. I was completely unaware of this.
I think we should document the workaround rather then creating more metadata that may or may not be used.

@spinscale what are your thoughts on this?

@dannf
Copy link
Author

dannf commented Jan 22, 2015

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.

@jpountz
Copy link
Contributor

jpountz commented Feb 6, 2015

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.

@colings86
Copy link
Contributor

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

MartinHell pushed a commit to MartinHell/charm-elasticsearch that referenced this issue Jul 12, 2017
      
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.
guoqiao pushed a commit to guoqiao/charm-elasticsearch that referenced this issue Jan 9, 2020
      
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.
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts discuss Team:Delivery Meta label for Delivery team
Projects
None yet
Development

No branches or pull requests

6 participants