Project

General

Profile

Bug #14627

Sometimes, root server shows up with "No machine inventory" after install

Added by Nicolas CHARLES over 1 year ago. Updated over 1 year ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Priority:
50

Description

This is because the agent does the following:

Apr 10 12:46:21 server cf-agent[25246]: CFEngine(agent) rudder Q: "...-inventory --lo": [info] FusionInventory instance: builtin - Perl instance: system
                                        Q: "...-inventory --lo": [info] running task Inventory
                                        Q: "...-inventory --lo": [info] Inventory saved in /var/rudder/tmp/inventory/server-root.ocs
Apr 10 12:46:21 server cf-agent[25246]: CFEngine(agent) rudder R: @@Inventory@@log_debug@@inventory-all@@inventory-all@@0@@inventory@@None@@2019-04-10 10:46:19+00:00##root@#
Apr 10 12:46:21 server cf-agent[25246]: CFEngine(agent) rudder R: @@Inventory@@result_success@@inventory-all@@inventory-all@@0@@inventory@@None@@2019-04-10 10:46:19+00:00##r
Apr 10 12:46:21 server cf-agent[25246]: CFEngine(agent) rudder R: @@Inventory@@log_info@@inventory-all@@inventory-all@@0@@inventory@@None@@2019-04-10 10:46:19+00:00##root@#A
Apr 10 12:46:21 server cf-agent[25246]: CFEngine(agent) rudder R: @@server-roles@@result_success@@server-roles@@server-roles-directive@@0@@Check logrotate configuration@@Non
Apr 10 12:46:21 server systemd[1]: Stopping LSB: OpenLDAP...
Apr 10 12:46:22 server rudder-slapd[25808]: [INFO] Using /etc/default/rudder-slapd for configuration
Apr 10 12:46:22 server rudder-slapd[25796]: rudder-slapd: [INFO] Using /etc/default/rudder-slapd for configuration
Apr 10 12:46:22 server rudder-slapd[25813]: [OK] virtual memory limit set to unlimited
Apr 10 12:46:22 server rudder-slapd[25796]: rudder-slapd: [OK] virtual memory limit set to unlimited
Apr 10 12:46:22 server rudder-slapd[25814]: [INFO] Halting OpenLDAP...
Apr 10 12:46:22 server rudder-slapd[25796]: rudder-slapd: [INFO] Halting OpenLDAP...
Apr 10 12:46:22 server rudder-slapd[7700]: daemon: shutdown requested and initiated.
Apr 10 12:46:22 server rudder-slapd[7700]: slapd shutdown: waiting for 0 operations/tasks to finish
Apr 10 12:46:22 server rudder-slapd[7700]: slapd stopped.
Apr 10 12:46:22 server cf-serverd[24550]: CFEngine(server) rudder Rereading policy file '/var/rudder/cfengine-community/inputs/promises.cf'

It sends the inventory, then do the server role check (and thus stop slapd and webapp, during processing of inventory)
Inventory should be sent last

#1

Updated by Nicolas CHARLES over 1 year ago

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

Updated by Nicolas CHARLES over 1 year ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/2184
#3

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 5.0.9 to 5.0.10
#4

Updated by Nicolas CHARLES over 1 year ago

  • Status changed from Pending technical review to Pending release
#5

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.10 which was released today.

Also available in: Atom PDF