Project

General

Profile

Actions

Bug #12032

closed

User story #11812: Standardize generic methods name

User story #11879: Rename some generic methods to match our naming convention

Service started at boot stops the services

Added by Nicolas CHARLES about 6 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
-
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

on a centos 6, with Rudder 4.3, I cannot get services to works reliably, as agent keeps killing them :(

E| compliant     DistributePolicy          Configure apache ACL                         Apache ACLs are correct
E| error         Inventory                 inventory                                    Could not retrieve the UUID of the policy server
E| compliant     server-roles              Check logrotate configur|                    The logrotate configuration is correct
E| compliant     server-roles              Check LDAP in rudder-web|                    Web interface configuration files are correct (checked LDAP password)
E| compliant     server-roles              Check LDAP credentials                       OpenLDAP configuration file is correct (checked rootdn password)
E| compliant     server-roles              Check rudder-passwords.c|                    Rudder passwords file is present and secure
E| compliant     server-roles              Check SQL in rudder-weba|                    Web interface configuration files are OK (checked SQL password)
E| error         server-roles              Check SQL credentials                        PostgreSQL user account's password could not be changed!
E| compliant     server-roles              Check allowed networks c|                    Allowed networks configuration is correct
E| repaired      server-roles              Check WebDAV credentials                     Apache WebDAV user and password were updated
E| error         ${t_name}                 ${c_name}                 ${c_key}           Check if the service httpd is started using ps could not be repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Run action start on service httpd was repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Start service httpd was repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Ensure that service httpd is running was repaired
E| repaired      server-roles              Check apache process                         Check apache process running was repaired
E| error         ${t_name}                 ${c_name}                 ${c_key}           Check if the service httpd is started could not be repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Run action stop on service httpd was repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Stop service httpd was repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Ensure that service httpd is stopped was repaired
E| compliant     ${t_name}                 ${c_name}                 ${c_key}           Check if the service .*java.*/opt/rudder/jetty/start.jar is started using ps was correct
E| compliant     ${t_name}                 ${c_name}                 ${c_key}           Ensure that service rudder-jetty is running was correct
E| compliant     server-roles              Check jetty process                          Check jetty process running was correct

E| compliant     server-roles              Check slapd process                          Check slapd process running was correct
E| compliant     server-roles              Check PostgreSQL configu|                    There is no need of specific PostgreSQL configuration on this system
E| error         ${t_name}                 ${c_name}                 ${c_key}           Check if the service postgres:.* writer process is started using ps could not be repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Run action start on service postgresql was repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Start service postgresql was repaired
E| repaired      ${t_name}                 ${c_name}                 ${c_key}           Ensure that service postgresql is running was repaired
E| repaired      server-roles              Check postgresql process                     Check postgresql process running was repaired
E| compliant     ${t_name}                 ${c_name}                 ${c_key}           Check if the service postgresql is started was correct

E| error         ${t_name}                 ${c_name}                 ${c_key}           Run action stop on service postgresql could not be repaired
E| error         ${t_name}                 ${c_name}                 ${c_key}           Stop service postgresql could not be repaired
E| error         ${t_name}                 ${c_name}                 ${c_key}           Ensure that service postgresql is stopped could not be repaired
E| n/a           server-roles              Send metrics to rudder-p|                    Sending metrics to rudder-project.org is not enabled. Skipping.
E| compliant     ${t_name}                 ${c_name}                 ${c_key}           Check if the service rsyslog is started was correct
E| compliant     ${t_name}                 ${c_name}                 ${c_key}           Ensure that service rsyslog is running was correct

as you see, httpd ans postgresql are stopped by the agent, even when there are working nicely

Starting manually httpd and postgresql does work though...


Files

out (2.42 MB) out Nicolas CHARLES, 2018-01-23 23:07
Actions #1

Updated by Nicolas CHARLES about 6 years ago

adding verbose output

somehow, it Stack path: /default/rudder_system_directives/methods/'Rudder system policy: Server roles/Server Roles'/default/root_component_chec
k/methods/'any'/default/generic_process_check_bootstart/methods/'bootstart_service'/default/service_ensure_started_at_boot/methods/'action'/default/servic
e_stopped/methods/'check running'/default/service_check_running/methods/'report'/default/_log/methods/'wrapper for log_rudder'/default/log_rudder/methods/
'report'/default/_rudder_common_reports_generic/methods/'success'/default/_rudder_common_report/reports/'@${t_name}@result_success@server-roles@server
-roles-directive@0@${c_name}@${c_key}@2018-01-23 21:58:27+00:00..root@.Check if the service postgresql is started was correct'[1]

then
: BEGIN promise 'promise_service_stopped_cf_46' of type "methods" (pass 1)
rudder verbose: P: Promiser/affected object: 'stop if running'
rudder verbose: P: From parameterized bundle: service_stopped( {"postgresql"})
rudder verbose: P: Base context class: !windows
rudder verbose: P: "if" class condition: (!has_promiser_stack.service_check_running_postgresql_kept)|(has_promiser_stack.cf_null_check_running_kept)
rudder verbose: P: Stack path: /default/rudder_system_directives/methods/'Rudder system policy: Server roles/Server Roles'/default/root_component_check/methods/'any'/default/generic_process_check_bootstart/methods/'bootstart_service'/default/service_ensure_started_at_boot/methods/'action'/default/service_stopped/methods/'stop if running'[1]

Issue is in generic method
service_ensure_started_at_boot
where it calls

  methods:
    "action"             usebundle => service_stopped("${service_name}");

Actions #2

Updated by Nicolas CHARLES about 6 years ago

  • Project changed from Rudder to 41
  • Category deleted (System techniques)
Actions #3

Updated by Nicolas CHARLES about 6 years ago

  • Related to User story #11879: Rename some generic methods to match our naming convention added
Actions #4

Updated by Nicolas CHARLES about 6 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #5

Updated by Nicolas CHARLES about 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/ncf/pull/687
Actions #6

Updated by Nicolas CHARLES about 6 years ago

  • Subject changed from Rudder services are managed in a non deterministic way on Rudder 4.3 - Centos6 to Rudder services are stopped on Rudder 4.3
Actions #7

Updated by Nicolas CHARLES about 6 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:32536d0b808a89880c29b9bda851e0f3bf7e6c6f.

Actions #8

Updated by Vincent MEMBRÉ about 6 years ago

  • Related to deleted (User story #11879: Rename some generic methods to match our naming convention)
Actions #9

Updated by Vincent MEMBRÉ about 6 years ago

  • Subject changed from Rudder services are stopped on Rudder 4.3 to Service started at boot stops the services
  • Category set to Generic methods - Service Management
  • Parent task set to #11879
Actions #10

Updated by Vincent MEMBRÉ about 6 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF