Project

General

Profile

Actions

Bug #7285

closed

Only run inventory collection when no other is running

Added by Janos Mattyasovszky over 8 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Please make a lock for running an inventory, so it only runs once, so any hanging / long running inventory will not overlap with a new one.

Otherwise you'd end up with something like this:

/bin/sh /opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory
`- /opt/rudder/bin/perl -I /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent --config=none --local=/var/rudder/tmp/inventory
   `- sh -c lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count 2>/dev/null
      `- lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count
/bin/sh /opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory
`- /opt/rudder/bin/perl -I /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent --config=none --local=/var/rudder/tmp/inventory
   `- sh -c lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count 2>/dev/null
      `- lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count
/bin/sh /opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory
`- /opt/rudder/bin/perl -I /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent --config=none --local=/var/rudder/tmp/inventory
   `- sh -c lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count 2>/dev/null
      `- lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count
/bin/sh /opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory --scan-homedirs
`- /opt/rudder/bin/perl -I /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent --config=none --local=/var/rudder/tmp/inventory --scan-homedirs
   `- sh -c lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count 2>/dev/null
      `- lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count
/bin/sh /opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory
`- /opt/rudder/bin/perl -I /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent --config=none --local=/var/rudder/tmp/inventory
   `- sh -c lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count 2>/dev/null

Times 1500...


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #9626: The locks are removed every 10 minutes by check-rudder-agent when there is no promise updateReleasedNicolas CHARLES2016-11-04Actions
Is duplicate of Rudder - Bug #9622: Fusioninventory is not tracked by check-rudder-healthReleasedNicolas CHARLESActions
Actions

Also available in: Atom PDF