Bug #5462
closed
Relay servers keeps sending inventories of their managed nodes at every run
Added by Lionel Le Folgoc about 10 years ago.
Updated about 10 years ago.
Category:
Server components
Description
Hi,
I'm testing node deletion as described in my previous bug report. Some deleted nodes keep coming back as pending for approval, probably because some files are remaining on the ldap/relaytop (they are not real nodes, so they can't submit new inventories).
When I reject them, they're back 5 minutes later (next cf-agent run)... :(
Any chance the node deletion could also trigger the purge of the corresponding inventory files on ldap/relays? Otherwise, there's no clear way to reject a current inventory with certainty (with real nodes, they'll resubmit possibly updated inventories the next day, so it's fine).
Thanks.
- Target version set to 2.10.6
- Target version changed from 2.10.6 to 2.10.7
ha, actually, when a node is removed, they can't download anything anymore from the policy server ...
Ho, thank you for pinning it down!
Have you tried to create the missing directories to see if the behaviour become ok ? "inventories" directory should contain the following sub-directories:
- accepted-nodes-updates
- debug
- failed
- historical
- incoming
- received
(well debug is not mandatory).
Could you create all of them and try to delete again node ?
Thanks !
- Category set to Server components
- Status changed from New to 8
- Assignee set to Matthieu CERDA
- Priority changed from N/A to 1 (highest)
- Target version changed from 2.10.7 to 2.11.4
This is due to an error occuring in /var/rudder/tools/send-clean.sh
Directory /var/rudder/inventories/{received,failed) does not exist, so when send-clean success or fail, the files are not moved into those directories and stay in incoming/node-update dirrecoty
so even if the inventory was correctly sent, it will be sent again in the next 5 minutes
send-clean.sh should create the missing directories.
Matthieu can you look into this please ??
This in only happening on rudder-relay-top, 'normal' relays use curl to send inventory, not use send-clean.sh
- Status changed from 8 to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- Target version changed from 2.11.4 to 2.10.7
- % Done changed from 0 to 100
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/547
- Status changed from Pending technical review to Pending release
Applied in changeset policy-templates:commit:61f8944b8d0cfee340d173730bbbe44bd439a10b.
- Subject changed from Deleted nodes come back as pending to Relay servers keeps sending inventories of their managed nodes even if the node is deleted/does not exists anymore
- Subject changed from Relay servers keeps sending inventories of their managed nodes even if the node is deleted/does not exists anymore to Relay servers keeps sending inventories of their managed nodes at every run
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.10.7 and 2.11.4, which were released today.
Also available in: Atom
PDF