logdna / logdna-agent

LogDNA Agent streams from log files to your LogDNA account. Works with Linux, Windows, and macOS Servers
https://logdna.com
MIT License
137 stars 55 forks source link

RPM for PPC64 architecture #151

Open Hydrocephalic opened 4 years ago

Hydrocephalic commented 4 years ago

I've been attempting to install the agent on a ppc64 architecture, following the instructions for RedHat on the LogDNA website:

[root@server ~]# cat /etc/yum.repos.d/logdna.repo
[logdna]
baseurl = https://repo.logdna.com/el6/
enabled = 1
gpgcheck = 1
gpgkey = https://repo.logdna.com/logdna.gpg
name = LogDNA repo

# yum install logdna-agent
Loaded plugins: product-id, search-disabled-repos, subscription-manager, versionlock
No package logdna-agent available.
Error: Nothing to do

[root@server ~]# yum repolist |grep logdna
logdna                                   LogDNA repo                         0+8
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.5:GA:server
Kernel: Linux 3.10.0-862.25.3.el7.ppc64le
Architecture: ppc64-le

It seems to me LogDNA agent has no package for ppc64 architecture.

Would it be possible to publish the PPC64 RPM on the repo?

Hydrocephalic commented 3 years ago

Do you have any update on this?

wscanlan commented 1 year ago

Hello do you have an update on ppc64 support? The documentation does not reflect only x86 is supported but It appears only x86 rpm are shipped.

jsumners commented 1 year ago

At this time we don’t support PPC64 architecture and don’t have immediate plans on the roadmap for such support.

bogdansavu commented 1 year ago

Hello , there is any way to get the source code to allow us to compile the agent on ppc64le platform?

dkhokhlov commented 1 year ago

This is old agent. New generation agent based on Rust is located here:

https://github.com/logdna/logdna-agent-v2

Some porting effort will be needed similar to arm64 that was already done.

$ rustup target list | grep powerpc64le
powerpc64le-unknown-linux-gnu

Porting scope is outlined here: https://github.com/logdna/logdna-agent-v2/issues/405#issuecomment-1223695297

bogdansavu commented 1 year ago

@dkhokhlov the porting scope is for s390 that is a different platform. We will need to use the ppc64le Agent to allow us to Integrate PowerVS VMs with LogDNA. Please let me know what we can do to allow us to compile this agent.

c-nixon commented 1 year ago

Porting the rust agent to ppc will either require much the same work as porting to s390x or perhaps some creative dependency patching to tell cargo to use IBM's ring fork however I have no idea how maintained that fork is

bogdansavu commented 1 year ago

When I'm trying to build the agent I'm getting this error: error: failed to run custom build command for ring v0.16.20 I see the latest IBM's ring fork latest version is 0.16.20. How we can create a dependency patching?

c-nixon commented 1 year ago

https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html

bogdansavu commented 1 year ago

I tried using: [patch.crates-io] ring = { git = "https://github.com/ibm/ring.git", branch = "ppc-0.16.20" }

but I'm getting this error: error[E0599]: no method named description_ found for struct KeyRejected in the current scope --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rcgen-0.9.3/src/lib.rs:1624:35 | 1624 | RcgenError::RingKeyRejected(err.description_()) | ^^^^^^^^^^^^ method not found in KeyRejected

For more information about this error, try rustc --explain E0599. error: could not compile rcgen (lib) due to previous error warning: build failed, waiting for other jobs to finish...

Any suggestion? It is something that I can fix?

dkhokhlov commented 1 year ago

it will be better to move this issue to https://github.com/logdna/logdna-agent-v2. Just create new issue and refer to this one at the beginning.

this repo is old agent - NodeJS based.

bogdansavu commented 1 year ago

I opened this issue https://github.com/logdna/logdna-agent-v2/issues/540.