Project

General

Profile

Actions

Bug #12302

closed

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

Added by Nicolas CHARLES almost 5 years ago. Updated almost 5 years ago.

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

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

Actions #1

Updated by Nicolas CHARLES almost 5 years ago

  • Assignee set to Nicolas CHARLES

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

Actions #2

Updated by Nicolas CHARLES almost 5 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 :(

Actions #3

Updated by Nicolas CHARLES almost 5 years ago

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

Actions #4

Updated by Nicolas CHARLES almost 5 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

Actions #5

Updated by Nicolas CHARLES almost 5 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" 

Actions #6

Updated by Nicolas CHARLES almost 5 years ago

  • Status changed from New to In progress
Actions #7

Updated by Nicolas CHARLES almost 5 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
Actions #8

Updated by Nicolas CHARLES almost 5 years ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF