- Notifications
You must be signed in to change notification settings - Fork60
Run-time JSON driven system configuration manager
License
openbmc/entity-manager
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Entity manager is a design for managing physical system components, and mappingthem to software resources within the BMC. Said resources are designed to allowthe flexible adjustment of the system at runtime, as well as the reduction inthe number of independent system configurations one needs to create.
A server component that is physically separate, detectable through some means,and can be added or removed from a given OpenBMC system. Said component can, andlikely does contain multiple sub-components, but the component itself as a wholeis referred to as an entity.
Note, this term is needed because most other terms that could've been used(Component, Field Replaceable Unit, or Assembly) are already overloaded in theindustry, and have a distinct definition already, which is a subset of what anentity encompasses.
A particular feature of an Entity. An Entity generally will have multipleExposes records for the various features that component supports. Some examplesof features include, LM75 sensors, PID control parameters, or CPU information.
A set of rules for detecting a given entity. Said rules generally take the formof a D-Bus interface definition.
Entity manager has the following goals (unless you can think of better ones):
- Minimize the time and debugging required to "port" OpenBMC to new systems
- Reduce the amount of code that is different between platforms
- Create system level maintainability in the long term, across hundreds ofplatforms and components, such that components interoperate as much asphysically possible.
A full BMC setup using Entity Manager consists of a few parts:
A detection daemon This is something that can be used to detectcomponents at runtime. The most common of these, fru-device, is included inthe Entity-Manager repo, and scans all available I2C buses for IPMI FRUEEPROM devices. Other examples of detection daemons include:peci-pcie: A daemon that utilizesthe CPU bus to read in a list of PCIe devices from the processor.smbios-mdr: A daemon thatutilizes the x86 SMBIOS table specification to detect the available systemsdependencies from BIOS.
In many cases, the existing detection daemons are sufficient for a singlesystem, but in cases where there is a superseding inventory control system inplace (such as in a large datacenter) they can be replaced with applicationspecific daemons that speak the protocol information of their controller, andexpose the inventory information, such that failing devices can be detectedmore readily, and system configurations can be "verified" rather thandetected.
An entity manager configuration file Entity manager configuration filesare located in the ./configurations directory in the entity managerrepository, and include one file per device supported. Entities are detectedbased on the "Probe" key in the json file. The intention is that this foldercontains all hardware configurations that OpenBMC supports, to allows an easyanswer to "Is X device supported". An EM configuration contains a number ofExposes records that specify the specific features that this Entity supports.Once a component is detected, entity manager will publish these Exposesrecords to D-Bus.
A reactor The reactors are things that take the entity managerconfigurations, and use them to execute and enable the features that theydescribe. One example of this is dbus-sensors, which contains a suite ofapplications that input the Exposes records for sensor devices, then connectto the filesystem to create the sensors and scan loops to scan sensors forthose devices. Other examples of reactors could include: CPU managementdaemons and Hot swap backplane management daemons, or drive daemons.
note: In some cases, a given daemon could be both a detection daemon and areactor when architectures are multi-tiered. An example of this might include ahot swap backplane daemon, which both reacts to the hot swap being detected, andalso creates detection records of what drives are present.
Entity Manager will automatically create associations between its entities incertain cases. For details see theassociations doc.
Entity manager shall support the dynamic discovery of hardware at runtime,using inventory interfaces. The types of devices include, but are not limitedto hard drives, hot swap backplanes, baseboards, power supplies, CPUs, andPCIe Add-in-cards.
Entity manager shall support the ability to add or remove support forparticular devices in a given binary image. By default, entity manager willsupport all available and known working devices for all platforms.
Entity manager shall provide data to D-Bus about a particular device suchthat other daemons can create instances of the features being exposed.
Entity manager shall support multiple detection runs, and shall do theminimal number of changes necessary when new components are detected or nolonger detected. Some examples of re-detection events might include hostpower on, drive plug/unplug, PSU plug/unplug.
Entity manager shall have exactly one configuration file per supported devicemodel. In some cases this will cause duplicated information between files,but the ability to list and see all supported device models in a singleplace, as well as maintenance when devices do differ in the future isdetermined to be more important than duplication of configuration files.
- Entity manager shall not directly participate in the detection of devices,and instead will rely on other D-Bus applications to publish interfaces thatcan be detected.
- Entity manager shall not directly participate in management of any specificdevice. This is requirement is intended to intentionally limit the size andfeature set of entity manager, to ensure it remains small, and effective toall users.
bmcweb A webserver implementation that uses the inventory information fromentity-manager to produce a Redfish compliant REST API.intel-ipmi-oem Animplementation of the IPMI SDR, FRU, and Storage commands that utilize EntityManager as the source of information.
About
Run-time JSON driven system configuration manager
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.