Bug #12302
closedRudder agent service not started in 4.3 after a reboot on Centos7
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
Updated by Nicolas CHARLES over 6 years ago
- Assignee set to Nicolas CHARLES
running systemctl enable rudder-cf-serverd, systemctl enable rudder-cf-execd & systemctl enable rudder-agent
Updated by Nicolas CHARLES over 6 years 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 :(
Updated by Nicolas CHARLES over 6 years ago
I need to recheck the files, it may be that files are not there long enough to be visible
Updated by Nicolas CHARLES over 6 years 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
Updated by Nicolas CHARLES over 6 years 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"
Updated by Nicolas CHARLES over 6 years ago
- Status changed from New to In progress
Updated by Nicolas CHARLES over 6 years 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
Updated by Nicolas CHARLES over 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|23326a07c2722a963a76725436ade83f794eaa73.
Updated by Vincent MEMBRÉ over 6 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.0~rc2 which was released today.
- 4.3.0~rc2: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/