Skip to content

CMDB Redundant Supply Design

Ed Mozley edited this page Dec 5, 2026 · 1 revision

CMDB - redundant supplies and "If these failed" - Design

Status: PROPOSAL - waiting on @Dr4inder's answers to the questions at the end. Nothing is built yet.

Requested in #523 by @Dr4inder, extending the redundancy-aware impact analysis of #199.

The request, in short

A server with two power feeds keeps running when one UPS fails and loses power when both do. Today the CMDB cannot say that: an ordinary is powered by relationship marks the server Affected when either UPS fails (overstated), and leaving the feeds without impact means losing both is never seen. And If this failed starts from one CI, so "both UPSs at once" cannot be asked.

What exists today

  • Relationship types carry a redundancy (#199): none, redundant membership (a node in a cluster) or placement with failover (an HA role on a host). cmdbImpactGrade() turns the reached graph into four grades: Affected, May be interrupted, Redundancy reduced, Unknown. With no type marked, everything reads exactly as before. See CMDB - Clusters, failover and the four grades and the developer guide Β§10b.
  • The walk takes one failed CI (cmdbBlastRadius($conn, $rootId)).
  • Changes now list the CIs they touch (#509) and show what else they could affect - today as the union of each CI's own blast radius.

Proposal

1. A third redundancy: redundant supply

CMDB β†’ Settings β†’ Relationship types β†’ Redundancy gains Redundant supply, for types like is powered by, is fed by, uplinks to:

Redundancy Use it for What it does
Redundant membership a node in its cluster (as today)
Placement with failover an HA role on a host (as today)
Redundant supply (new) a consumer's alternative feeds - power, uplinks Losing some of a consumer's supplies gives it Redundancy reduced; losing all of them, Affected - and that then travels on through its ordinary dependencies, with their own rules (an HA VM on the host still gets May be interrupted, not Affected)
None everything else an ordinary dependency: Affected

It is the mirror of redundant membership: there the group survives while a member remains; here the consumer survives while a supply remains. Your acceptance cases, in those terms:

  • Shared upstream supplies are counted by what is actually lost, not by the number of edges: two PDUs that both hang off UPS-A are both lost when UPS-A fails, so a server fed only through them is Affected - two cables do not make it independent.
  • Other dependencies stay mandatory: only the edges of a redundant supply type are alternatives to each other; the server's runs on storage or depends on switch still makes it Affected on its own.
  • Unknown stays visible: a supply the model cannot place (no state, a company the reader cannot see) is Unknown, never quietly counted as up, using the existing CMDB β†’ Settings β†’ Impact choice. The panel's What this analysis does not know gains capacity and switching: a remaining feed is not proof it can carry the load.
  • Nothing changes until a type is marked, as with #199.

2. If these failed - several CIs at once

  • On a CI's page, If this failed gets Add another…: pick more CIs (search, same company rules as everywhere); the panel then shows the combined scenario - one walk from all of them, graded together, so both UPSs failing gives SERVER-A Affected rather than two separate Redundancy reduced results.
  • The scenario's CIs are listed at the top with a cross each, and the URL holds their ids, so a scenario can be shared or bookmarked (ids, never names).
  • REST: GET /cmdb/impact?objects=12,15 - the same result shape as GET /cmdb/objects/{id}/impact.
  • Changes (#509): a change's could affect uses the combined walk over its linked CIs - closer to the truth when a change works on both UPSs in one window.
  • Company and permission scope as today: each CI must be readable by the person asking.

3. In the engine

cmdbBlastRadius() takes a list of roots (the single-root call stays as it is, so every caller keeps working). The grade pass gains the supply rule next to membership and placement: for a consumer, collect its supply edges; if every supplier is affected (or unknown where the setting says so), the consumer takes that grade; if some are, it is redundancy reduced. Grades still only rise, so the existing fixed-point loop settles. Test: your table above, verbatim, plus the five acceptance cases.

Build stages

  1. Redundant supply type + grading + test (the table and cases 2-5).
  2. Several CIs in If these failed (page, URL, REST) + case 1.
  3. Changes use the combined walk.

Not included

UPS polling, live state, automatic Service Status updates (as you said); N-of-M supplies unless you need them (question 1).

Questions

  1. Is "any one supply is enough" always true for you, or do some consumers need two of three (e.g. a chassis with three PSUs that needs two)?
    • a) Any one is enough - simplest; covers the server/UPS case. (Recommended; ITIL has no view either way.)
    • b) A per-consumer "supplies needed" number, default 1.
  2. Should redundant supply be one kind for everything (power, network uplinks, paths), or power only?
    • a) One generic kind, named by your relationship type (is powered by, uplinks to). (Recommended.)
    • b) Power only.
  3. Where do you start a multi-CI scenario?
    • a) From a CI's page, adding others (as proposed). (Recommended.)
    • b) A separate Scenarios page under CMDB where you build one from scratch.
    • c) Both.
  4. Should a saved scenario be keepable (named, re-runnable - "Loss of comms room A") or is the shareable URL enough for now?
    • a) The URL is enough for now. (Recommended - a named scenario list can follow if it gets used.)
    • b) Named, saved scenarios.
  5. Changes (#509): switch a change's could affect to the combined walk straight away, or keep the union and offer the combined view as a link?
    • a) Combined straight away - it is the more accurate answer. (Recommended; closest to ITIL change enablement - assess the change as a whole.)
    • b) Keep the union.

Decisions

Date Decision Who
(waiting for answers)

FreeITSM

Getting Started

Modules

Multi-tenancy (planned)

Responses to feedback

Blue sky thinking

Bugs resolved

Pull requests

Links

Clone this wiki locally