Bug #5322
closedWhen a node changes its policy server, the groups hasPolicyServer are never updated, and so the promises never make their way to them
Description
If we change the policy server of a node, like from root to another, and generate an inventory, the inventory does go to the policy server
In the web interface, the node has its policy server updated. However, the groups hasPolicyServer-uuid-of-policy-server are never updated (both root and the new one), so the generated promises do not contains all the relevant information.
We'd need to update this information (maybe as part of the dynamic group update)
Updated by Nicolas PERRON over 10 years ago
- Target version changed from 2.10.4 to 2.6.18
Updated by Nicolas PERRON over 10 years ago
- Target version changed from 2.6.18 to 2.10.5
Updated by Vincent MEMBRÉ about 10 years ago
- Target version changed from 2.10.5 to 2.10.6
Updated by Matthieu CERDA about 10 years ago
- Target version changed from 2.10.6 to 2.10.7
Updated by Nicolas CHARLES about 10 years ago
- Assignee set to François ARMAND
Francois,
What do you think would be the best solution ? I'm thinking that it could be a post modification hook of the received invnetory (but can we add hooks regarding groups?) or dynamic groups updates
Updated by François ARMAND about 10 years ago
Not a post hook, because inventory does not have any idea about configuration.
So yes, a dynamic group seems the best way forward.
Updated by François ARMAND about 10 years ago
- Status changed from New to Discussion
- Assignee changed from François ARMAND to Nicolas CHARLES
Updated by Vincent MEMBRÉ about 10 years ago
- Status changed from Discussion to Pending technical review
- Assignee changed from Nicolas CHARLES to François ARMAND
- Priority changed from N/A to 2
- Pull Request set to https://github.com/Normation/rudder/pull/640
Need to test it deeper, but PR is here: https://github.com/Normation/rudder/pull/640
I also found another way, but that could be used in a new "minor" version
"haspolicyServer" groups can be set to dynamic and add them a Query so we would not have to maintain a specific behavior for those groups
Updated by Vincent MEMBRÉ about 10 years ago
I tested it and it works fine!
Updated by Vincent MEMBRÉ about 10 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset 865ac1b4f4b93c2e10794e1c98ae76362e6e343b.
Updated by Vincent MEMBRÉ about 10 years ago
Applied in changeset 3cd77719d8c49120c07283ac2a3e9215c703cb5b.
Updated by Vincent MEMBRÉ about 10 years ago
- 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.
- Announcement 2.10 2.11
- Changelog 2.10 2.11
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/