Project

General

Profile

Bug #12302

Rudder agent service not started in 4.3 after a reboot on Centos7

Added by Nicolas CHARLES 9 months ago. Updated 8 months ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
User visibility:
Effort required:
Priority:
0
Tags:

Description

After rebooting my centos7 VM with Rudder Server 4.3, installed as an upgrde from 4.1 to 4.3, service rudder-agent is not started
systemctl start rudder-agent exits with success, and doesn't do anything
Services rudder-cf-execd and rudder-cf-serverd seems not registerd (I do not have the rudder-*.wants nor .requires folders in /usr/lib/systemd/system/ )

as a result, server is always in no answer

Associated revisions

Revision 23326a07 (diff)
Added by Nicolas CHARLES 9 months ago

Fixes #12302: Rudder agent service not started in 4.3 after a reboot on Centos7

History

#1 Updated by Nicolas CHARLES 9 months ago

  • Assignee set to Nicolas CHARLES

running systemctl enable rudder-cf-serverd, systemctl enable rudder-cf-execd & systemctl enable rudder-agent

#2 Updated by Nicolas CHARLES 9 months ago

Ok, on eissue is that the detection of activated service fails in the presinst, as

 chkconfig --list rudder 2>&1 

returns
rudder             0:arrêt    1:arrêt    2:marche    3:marche    4:marche    5:marche    6:arrê

during upgrade, I first have these threee files
migration-rudder-service-rename
migration-rudder-service-enabled
migration-rudder-service-enabled-server

but then, only
migration-rudder-service-enabled-server

remains; so we might be facing several issues :(

#3 Updated by Nicolas CHARLES 9 months ago

I need to recheck the files, it may be that files are not there long enough to be visible

#4 Updated by Nicolas CHARLES 9 months ago

With export LANG=C, i have the following files opened/deleted

/var/rudder/tmp/ CREATE migration-rudder-service-rename
/var/rudder/tmp/ OPEN migration-rudder-service-rename
/var/rudder/tmp/ ATTRIB migration-rudder-service-rename
/var/rudder/tmp/ CLOSE_WRITE,CLOSE migration-rudder-service-rename
/var/rudder/tmp/ CREATE migration-rudder-service-enabled
/var/rudder/tmp/ OPEN migration-rudder-service-enabled
/var/rudder/tmp/ ATTRIB migration-rudder-service-enabled
/var/rudder/tmp/ CLOSE_WRITE,CLOSE migration-rudder-service-enabled
/var/rudder/tmp/ CREATE migration-rudder-service-enabled-server
/var/rudder/tmp/ OPEN migration-rudder-service-enabled-server
/var/rudder/tmp/ ATTRIB migration-rudder-service-enabled-server
/var/rudder/tmp/ CLOSE_WRITE,CLOSE migration-rudder-service-enabled-server
/var/rudder/tmp/ DELETE migration-rudder-service-rename
/var/rudder/tmp/ DELETE migration-rudder-service-enabled
/var/rudder/tmp/ OPEN,ISDIR inventory
/var/rudder/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR inventory
/var/rudder/tmp/ OPEN,ISDIR inventory
/var/rudder/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR inventory
/var/rudder/tmp/ OPEN,ISDIR inventory
/var/rudder/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR inventory
/var/rudder/tmp/ OPEN,ISDIR inventory
/var/rudder/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR inventory
/var/rudder/tmp/ OPEN,ISDIR inventory
/var/rudder/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR inventory
/var/rudder/tmp/ OPEN,ISDIR inventory
/var/rudder/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR inventory
/var/rudder/tmp/ OPEN,ISDIR inventory
/var/rudder/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR inventory
/var/rudder/tmp/ OPEN,ISDIR inventory
/var/rudder/tmp/ CLOSE_NOWRITE,CLOSE,ISDIR inventory
/var/rudder/tmp/ DELETE migration-rudder-service-enabled-server

but the .requires are not correctly created

root@server://usr/lib/systemd/system# find . | grep rudder
./rudder-cf-execd.service
./rudder-agent.service
./rudder-cf-serverd.service

#5 Updated by Nicolas CHARLES 9 months ago

First file created is /var/rudder/tmp/migration-rudder-service-rename , which means that in rudder-agent.spec, we are not correctly detecting that

%if "${use_systemd}" == "true" 

#6 Updated by Nicolas CHARLES 9 months ago

  • Status changed from New to In progress

#7 Updated by Nicolas CHARLES 9 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1548

#8 Updated by Nicolas CHARLES 9 months ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Vincent MEMBRÉ 8 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.0~rc2 which was released today.

Also available in: Atom PDF