Bug #8039
closedBug #7930: System technique cannot compress inventories
Broken inventory on root server after install
Description
[2016-03-08 09:33:45] INFO com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - New input inventory: 'server-root.ocs' [2016-03-08 09:33:45] INFO com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - Inventory 'server-root.ocs' parsed in 274 milliseconds ms, now checking signature [2016-03-08 09:33:45] ERROR com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - RejectiInventory 'server-root.ocs' for Node 'root' because signature is not valid, you can update the inventory key by running the following command '/opt/rudder/bin/rudder-keys change-key root <your new public key>'
Updated by Vincent MEMBRÉ almost 9 years ago
- Status changed from New to In progress
- Assignee changed from Alexis Mousset to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ almost 9 years ago
- Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
- Parent task set to #7930
Found why ...
We generated two inventories in two run ( two normal runs separated by 5 minutes) but only keep the signature of first inventory ... More details:
initial promises correctly generate a signature but sometimes the inventory cannot be sent via apache to it's correct directory.
so we have a state like this in /var/rudder/inventories:
- inventory1.ocs.gz
- inventory1.sign
next run occurs, but promises were generated, but inventory cannot be signed ( we compress then sign, but compressing file delete the file to sign) so there a new inventory and the old signature
- inventory2.ocs.gz
- inventory1.sign
Then they are correctly sent to rudder, but inventory fails due to wrong signature
inverting signing and compression fix this issue
Updated by Vincent MEMBRÉ almost 9 years ago
- Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ almost 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/894
Updated by Vincent MEMBRÉ almost 9 years ago
- Status changed from Pending technical review to In progress
- Assignee changed from Alexis Mousset to Nicolas CHARLES
- Target version changed from 3.2.2 to 3.1.8
- Pull Request deleted (
https://github.com/Normation/rudder-techniques/pull/894)
Updated by Vincent MEMBRÉ almost 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Alexis Mousset
Updated by Vincent MEMBRÉ almost 9 years ago
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/895
Updated by Vincent MEMBRÉ almost 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-techniques|3cb7833a44c7e4aa031e03dda5bc955a4b737b90.
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.1.8 and 3.2.1 which were released today.
- 3.1: Announce Changelog
- 3.2: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/