Bug #725
closed
Inventory file name never change
Added by Jonathan CLARKE almost 14 years ago.
Updated over 9 years ago.
Category:
System techniques
Description
Fusion inventory report file as a format alike: centos-4-32.labo.normation.com-2011-01-19-10-29-20.ocs
The date at the end of the name never change (perhaps it's by design and is used as some identifier ?)
For example, we see in the next console output that the date in filename are completlly different from the date of last modification of the file:
root@orchestrateur-1:~# ls -l /var/rudder/inventories/received/
-rw-r--r-- 1 www-data www-data 130347 2011-01-21 12:50 centos-4-32.labo.normation.com-2011-01-19-10-29-20.ocs
-rw-r--r-- 1 www-data www-data 150348 2011-01-21 12:50 centos-5-32-2011-01-19-11-57-05.ocs
-rw-r--r-- 1 www-data www-data 177878 2011-01-21 12:50 centos-5-64-2011-01-19-15-31-07.ocs
-rw-r--r-- 1 www-data www-data 82653 2011-01-21 12:49 debian-4-32-2011-01-19-15-53-47.ocs
-rw-r--r-- 1 www-data www-data 89006 2011-01-21 12:40 debian-5-32-2011-01-14-11-10-09.ocs
-rw-r--r-- 1 www-data www-data 90197 2011-01-21 12:41 debian-5-64-2011-01-14-16-23-53.ocs
-rw-r--r-- 1 www-data www-data 150135 2011-01-14 18:04 localhost.localdomain-2011-01-14-16-48-18.ocs
-rw-r--r-- 1 www-data www-data 114147 2011-01-21 12:41 ubuntu-910-64-2011-01-19-15-45-28.ocs
-rw-r--r-- 1 www-data www-data 83225 2011-01-21 12:42 windows-2003-64-2010-08-12-16-49-17.ocs
Question: does it have any impact for us ?
- Priority changed from N/A to 3
- Target version changed from 6 to 8
- Target version deleted (
8)
- Assignee deleted (
Matthieu CERDA)
- Priority changed from 3 to 4
- Status changed from New to Released
- Assignee set to Jonathan CLARKE
- Target version set to 20
This has been fixed with #1410: we now delete the inventory file from a node after sending, so each time FusionInventory is run, a new file name is generated.
- Status changed from Released to 2
- Target version changed from 20 to 18
This was actually not fixes. Even when the old file has been deleted, FusionInventory somehow manages to reuse it's name... I guess it's their way of having a "unique node ID"?
- Assignee deleted (
Jonathan CLARKE)
- Subject changed from Nom du fichier d'inventaire ne change pas to Inventory file name never change
- Description updated (diff)
Translate in English, try to give more explanation.
- Target version changed from 18 to 24
- Target version changed from 24 to Ideas (not version specific)
- Status changed from 2 to 8
- Status changed from 8 to Discussion
- Assignee set to Nicolas CHARLES
Nicolas, have you an idea about that ?
Else, perhaps we should just close that one as rejected ?
- Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
I guess Vincent would know better than me
- Assignee changed from Vincent MEMBRÉ to Jonathan CLARKE
As of FusionInventory 2.3+, you can specify the exact file name you want with the --local option:
fusioninventory-agent --local=${g.rudder_var_tmp}/inventory/${sys.uqhost}-${g.uuid}.ocs
- Status changed from Discussion to Pending technical review
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
- Target version changed from Ideas (not version specific) to 3.0.0~beta2
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/600
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset policy-templates:commit:0970bca15c4a8e8b54a96f334d6964ab3b0ae149.
Applied in changeset policy-templates:commit:65729a569ff4986378aa002dc0bdb8c2c053eaa7.
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.0.0~beta2, which were these days.
Also available in: Atom
PDF