Skip to content

Fix: Elastic Agent is not enabled on SUSE after installation from RPM package#8896

Merged
michalpristas merged 7 commits intoelastic:mainfrom
michalpristas:fix/rpm-initd
Jul 9, 2025
Merged

Fix: Elastic Agent is not enabled on SUSE after installation from RPM package#8896
michalpristas merged 7 commits intoelastic:mainfrom
michalpristas:fix/rpm-initd

Conversation

@michalpristas
Copy link
Contributor

@michalpristas michalpristas commented Jul 9, 2025

Presence of init.d files invokes either systemd-sysv-install that may missing on some deployments or results in symlink creation failure.

Tested manually on

  • ubuntu, deb install
  • redhat 8, rpm install
  • suse 15, rpm install

From these 3 only suse was problematic. I was testing other 2 just to rule out breaking behavior.

Fixes: #8840
Fixes: #2703
Fixes: #6704

@michalpristas michalpristas self-assigned this Jul 9, 2025
@michalpristas michalpristas requested a review from a team as a code owner July 9, 2025 08:20
@michalpristas michalpristas added the bug Something isn't working label Jul 9, 2025
@michalpristas michalpristas added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches labels Jul 9, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@pchila
Copy link
Member

pchila commented Jul 9, 2025

I think we have a few more issues that would be closed by merging this:
#2703
#6704

another similar PR:
#6174

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

cc @michalpristas

@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@michalpristas michalpristas merged commit 21e89cb into elastic:main Jul 9, 2025
19 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2025

@Mergifyio backport 9.0 9.1

@mergify
Copy link
Contributor

mergify bot commented Jul 9, 2025

backport 9.0 9.1

✅ Backports have been created

Details

@pkoutsovasilis
Copy link
Contributor

Hey @michalpristas 👋 sorry if you wrote the reason somewhere and I missed it, but since this a bug fix should this get back-ported to all active branches? 🙂

@michalpristas michalpristas added the backport-active-8 Automated backport with mergify to all the active 8.[0-9]+ branches label Jul 9, 2025
@michalpristas
Copy link
Contributor Author

https://github.com/Mergifyio backport 8.17 8.18 8.19

@mergify
Copy link
Contributor

mergify bot commented Jul 9, 2025

backport 8.17 8.18 8.19

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Jul 9, 2025
… package (#8896)

(cherry picked from commit 21e89cb)

# Conflicts:
#	go.sum
#	magefile.go
mergify bot pushed a commit that referenced this pull request Jul 9, 2025
… package (#8896)

(cherry picked from commit 21e89cb)

# Conflicts:
#	go.sum
mergify bot pushed a commit that referenced this pull request Jul 9, 2025
michalpristas added a commit that referenced this pull request Jul 10, 2025
…er installation from RPM package (#8912)

* Fix: Elastic Agent is not enabled on SUSE after installation from RPM package (#8896)

(cherry picked from commit 21e89cb)

# Conflicts:
#	go.sum
#	magefile.go

* conflicts

---------

Co-authored-by: Michal Pristas <michal.pristas@elastic.co>
Co-authored-by: Michal Pristas <michal.pristas@gmail.com>
michalpristas added a commit that referenced this pull request Jul 10, 2025
…er installation from RPM package (#8913)

* Fix: Elastic Agent is not enabled on SUSE after installation from RPM package (#8896)

(cherry picked from commit 21e89cb)

# Conflicts:
#	go.sum

* conflicts

---------

Co-authored-by: Michal Pristas <michal.pristas@elastic.co>
Co-authored-by: Michal Pristas <michal.pristas@gmail.com>
michalpristas added a commit that referenced this pull request Jul 10, 2025
… package (#8896) (#8914)

(cherry picked from commit 21e89cb)

Co-authored-by: Michal Pristas <michal.pristas@elastic.co>
michalpristas added a commit that referenced this pull request Jul 10, 2025
…r installation from RPM package (#8908)

* Fix: Elastic Agent is not enabled on SUSE after installation from RPM package (#8896)

(cherry picked from commit 21e89cb)

# Conflicts:
#	go.sum

* go mod tidy

---------

Co-authored-by: Michal Pristas <michal.pristas@elastic.co>
Co-authored-by: Michal Pristas <michal.pristas@gmail.com>
michalpristas added a commit that referenced this pull request Jul 10, 2025
… package (#8896) (#8909)

(cherry picked from commit 21e89cb)

Co-authored-by: Michal Pristas <michal.pristas@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-8 Automated backport with mergify to all the active 8.[0-9]+ branches backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

4 participants