Icinga / Icinga/icinga-powershell-plugins
Add uuids to Director Basket - Director Basket needs to be imported twice
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 55
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
With Icinga Director 1.11.2 (no other version tested yet) I currently need to import the Director Basket twice.
After the first import (restore to database) all commands are marked with changes (when looking at the exact same snapshot of the Basket).
All changes are about Icinga Director Datafield IDs (change from "datafield_id": "(UNKNOWN)" to e.g. "datafield_id": "89").
After a second import of the exact same snapshot all is well and good, nothing is marked with changes.
However, with the second import all Datafields are duplicated while only one (of each pair) is used in a command.
This effectively clutters the Director config with unnecessary variables.
Proposed solution
Add uuid to at least each Datafield. This way the Icinga Director knows where a certain Datafield belongs or rather if it is already present.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked config/director/Plugins_Bundle.json basket and compare its Datafield entries with Icinga Director's import behavior. Reproduce the two-import sequence using Icinga Director 1.11.2, then verify that UUIDs are present, a single import produces no spurious changes, and repeated imports do not duplicate Datafields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100