Icinga / Icinga/icinga-powershell-plugins

Add uuids to Director Basket - Director Basket needs to be imported twice

Open
#425 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.