Skip to content

Warnings thrown for "Schema not found" for unused schemas #625

@jautor

Description

@jautor

Warnings are thrown for "Schema not found" for schemas that may be referenced by a supported schema, but are not used in an implementation. But there are also cases where the references are twice-removed (referenced by a referenced schema).

For example, warnings are thrown for ServiceRoot which are referenced by schema, but there are no link properties that utilize them:

WARNING - Schema not found for KeyService.KeyService
WARNING - Schema not found for NVMeDomainCollection.NVMeDomainCollection
WARNING - Schema not found for AggregationService.AggregationService
WARNING - Schema not found for FacilityCollection.FacilityCollection
WARNING - Schema not found for ResourceBlockCollection.ResourceBlockCollection
WARNING - Schema not found for JobService.JobService
WARNING - Schema not found for CompositionService.CompositionService
WARNING - Schema not found for StorageSystemCollection.StorageSystemCollection
WARNING - Schema not found for StorageServiceCollection.StorageServiceCollection
WARNING - Schema not found for FabricCollection.FabricCollection
WARNING - Schema not found for ExternalAccountProviderCollection.ExternalAccountProviderCollection
WARNING - Schema not found for PrivilegeRegistry.PrivilegeRegistry

While those schemas are referenced, asking implementations to carry unused schemas is unnecessary.

However, there are other cases where I'm not able to determine where the references originate. For example, a PowerDistribution instance throws this set:

WARNING - Schema not found for PowerSubsystem.PowerSubsystem
WARNING - Schema not found for ThermalSubsystem.ThermalSubsystem
WARNING - Schema not found for EnvironmentMetrics.EnvironmentMetrics
WARNING - Schema not found for MediaControllerCollection.MediaControllerCollection
WARNING - Schema not found for MemoryDomainCollection.MemoryDomainCollection
WARNING - Schema not found for PCIeSlots.PCIeSlots
WARNING - Schema not found for NetworkAdapterCollection.NetworkAdapterCollection

None of these, such as MediaController, MemoryDomain, PCIeSlots, NetworkAdapter are not referenced anywhere in PowerDistribution. These may be coming from references included in Chassis (which is referenced). But if that was the case, there are a lot of other references in Chassis that do not appear here.

Suggest these warnings get removed, assuming an actual "missing" schema will get flagged as an error when the actual resource utilizing it is tested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions