New metadata definitions from CIM

Adds into the Glance metadata definitions items from the Common
Information Model (CIM) schema, include setting data for processor
allocation, resource allocation, storage allocation and virtual
system, which can be associated with several OpenStack resources
to make them interoperable from a end-user specific perspective.

Implements: blueprint cim-namespace-metadata-definitions

Change-Id: If769bae8fcf1803bb2432537228f9633ad789e58
This commit is contained in:
Lin Yang 2016-01-08 17:37:01 +08:00
parent 834d73f119
commit 8a38f9ad5d
4 changed files with 581 additions and 0 deletions

View File

@ -0,0 +1,154 @@
{
"namespace": "CIM::ProcessorAllocationSettingData",
"display_name": "CIM Processor Allocation Setting",
"description": "Properties related to the resource allocation settings of a processor (CPU) from Common Information Model (CIM) schema (http://www.dmtf.org/standards/cim). These are properties that identify processor setting data and may be specified to volume, image, host aggregate, flavor and Nova server as scheduler hint. For each property details, please refer to http://schemas.dmtf.org/wbem/cim-html/2/CIM_ProcessorAllocationSettingData.html.",
"visibility": "public",
"protected": true,
"resource_type_associations": [
{
"name": "OS::Cinder::Volume",
"prefix": "CIM_PASD_",
"properties_target": "image"
},
{
"name": "OS::Glance::Image",
"prefix": "CIM_PASD_"
},
{
"name": "OS::Nova::Aggregate",
"prefix": "CIM_PASD_"
},
{
"name": "OS::Nova::Flavor",
"prefix": "CIM_PASD_"
},
{
"name": "OS::Nova::Server",
"properties_target": "scheduler_hint"
}
],
"properties": {
"InstructionSet": {
"title": "Instruction Set",
"description": "Identifies the instruction set of the processor within a processor architecture.",
"operators": ["<or>"],
"type": "string",
"enum": [
"x86:i386",
"x86:i486",
"x86:i586",
"x86:i686",
"x86:64",
"IA-64:IA-64",
"AS/400:TIMI",
"Power:Power_2.03",
"Power:Power_2.04",
"Power:Power_2.05",
"Power:Power_2.06",
"S/390:ESA/390",
"S/390:z/Architecture",
"S/390:z/Architecture_2",
"PA-RISC:PA-RISC_1.0",
"PA-RISC:PA-RISC_2.0",
"ARM:A32",
"ARM:A64",
"MIPS:MIPS_I",
"MIPS:MIPS_II",
"MIPS:MIPS_III",
"MIPS:MIPS_IV",
"MIPS:MIPS_V",
"MIPS:MIPS32",
"MIPS64:MIPS64",
"Alpha:Alpha",
"SPARC:SPARC_V7",
"SPARC:SPARC_V8",
"SPARC:SPARC_V9",
"SPARC:SPARC_JPS1",
"SPARC:UltraSPARC2005",
"SPARC:UltraSPARC2007",
"68k:68000",
"68k:68010",
"68k:68020",
"68k:68030",
"68k:68040",
"68k:68060"
]
},
"ProcessorArchitecture": {
"title": "Processor Architecture",
"description": "Identifies the processor architecture of the processor.",
"operators": ["<or>"],
"type": "string",
"enum": [
"x86",
"IA-64",
"AS/400",
"Power",
"S/390",
"PA-RISC",
"ARM",
"MIPS",
"Alpha",
"SPARC",
"68k"
]
},
"InstructionSetExtensionName": {
"title": "Instruction Set Extension",
"description": "Identifies the instruction set extensions of the processor within a processor architecture.",
"operators": ["<or>", "<all-in>"],
"type": "array",
"items": {
"type": "string",
"enum": [
"x86:3DNow",
"x86:3DNowExt",
"x86:ABM",
"x86:AES",
"x86:AVX",
"x86:AVX2",
"x86:BMI",
"x86:CX16",
"x86:F16C",
"x86:FSGSBASE",
"x86:LWP",
"x86:MMX",
"x86:PCLMUL",
"x86:RDRND",
"x86:SSE2",
"x86:SSE3",
"x86:SSSE3",
"x86:SSE4A",
"x86:SSE41",
"x86:SSE42",
"x86:FMA3",
"x86:FMA4",
"x86:XOP",
"x86:TBM",
"x86:VT-d",
"x86:VT-x",
"x86:EPT",
"x86:SVM",
"PA-RISC:MAX",
"PA-RISC:MAX2",
"ARM:DSP",
"ARM:Jazelle-DBX",
"ARM:Thumb",
"ARM:Thumb-2",
"ARM:ThumbEE)",
"ARM:VFP",
"ARM:NEON",
"ARM:TrustZone",
"MIPS:MDMX",
"MIPS:MIPS-3D",
"Alpha:BWX",
"Alpha:FIX",
"Alpha:CIX",
"Alpha:MVI"
]
}
}
},
"objects": []
}

View File

@ -0,0 +1,178 @@
{
"namespace": "CIM::ResourceAllocationSettingData",
"display_name": "CIM Resource Allocation Setting Data",
"description": "Properties from Common Information Model (CIM) schema (http://www.dmtf.org/standards/cim) that represent settings specifically related to an allocated resource that are outside the scope of the CIM class typically used to represent the resource itself. These properties may be specified to volume, host aggregate and flavor. For each property details, please refer to http://schemas.dmtf.org/wbem/cim-html/2/CIM_ResourceAllocationSettingData.html.",
"visibility": "public",
"protected": true,
"resource_type_associations": [
{
"name": "OS::Cinder::Volume",
"prefix": "CIM_RASD_",
"properties_target": "image"
},
{
"name": "OS::Nova::Aggregate",
"prefix": "CIM_RASD_"
},
{
"name": "OS::Nova::Flavor",
"prefix": "CIM_RASD_"
}
],
"properties": {
"Address": {
"title": "Address",
"description": "The address of the resource.",
"type": "string"
},
"AddressOnParent": {
"title": "Address On Parent",
"description": "Describes the address of this resource in the context of the Parent.",
"type": "string"
},
"AllocationUnits": {
"title": "Allocation Units",
"description": "This property specifies the units of allocation used by the Reservation and Limit properties.",
"type": "string"
},
"AutomaticAllocation": {
"title": "Automatic Allocation",
"description": "This property specifies if the resource will be automatically allocated.",
"type": "boolean"
},
"AutomaticDeallocation": {
"title": "Automatic Deallocation",
"description": "This property specifies if the resource will be automatically de-allocated.",
"type": "boolean"
},
"ConsumerVisibility": {
"title": "Consumer Visibility",
"description": "Describes the consumers visibility to the allocated resource.",
"operators": ["<or>"],
"type": "string",
"enum": [
"Unknown",
"Passed-Through",
"Virtualized",
"Not represented",
"DMTF reserved",
"Vendor Reserved"
]
},
"Limit": {
"title": "Limit",
"description": "This property specifies the upper bound, or maximum amount of resource that will be granted for this allocation.",
"type": "string"
},
"MappingBehavior": {
"title": "Mapping Behavior",
"description": "Specifies how this resource maps to underlying resources. If the HostResource array contains any entries, this property reflects how the resource maps to those specific resources.",
"operators": ["<or>"],
"type": "string",
"enum": [
"Unknown",
"Not Supported",
"Dedicated",
"Soft Affinity",
"Hard Affinity",
"DMTF Reserved",
"Vendor Reserved"
]
},
"OtherResourceType": {
"title": "Other Resource Type",
"description": "A string that describes the resource type when a well defined value is not available and ResourceType has the value 'Other'.",
"type": "string"
},
"Parent": {
"title": "Parent",
"description": "The Parent of the resource.",
"type": "string"
},
"PoolID": {
"title": "Pool ID",
"description": "This property specifies which ResourcePool the resource is currently allocated from, or which ResourcePool the resource will be allocated from when the allocation occurs.",
"type": "string"
},
"Reservation": {
"title": "Reservation",
"description": "This property specifies the amount of resource guaranteed to be available for this allocation.",
"type": "string"
},
"ResourceSubType": {
"title": "Resource Sub Type",
"description": "A string describing an implementation specific sub-type for this resource.",
"type": "string"
},
"ResourceType": {
"title": "Resource Type",
"description": "The type of resource this allocation setting represents.",
"operators": ["<or>"],
"type": "string",
"enum": [
"Other",
"Computer System",
"Processor",
"Memory",
"IDE Controller",
"Parallel SCSI HBA",
"FC HBA",
"iSCSI HBA",
"IB HCA",
"Ethernet Adapter",
"Other Network Adapter",
"I/O Slot",
"I/O Device",
"Floppy Drive",
"CD Drive",
"DVD drive",
"Disk Drive",
"Tape Drive",
"Storage Extent",
"Other storage device",
"Serial port",
"Parallel port",
"USB Controller",
"Graphics controller",
"IEEE 1394 Controller",
"Partitionable Unit",
"Base Partitionable Unit",
"Power",
"Cooling Capacity",
"Ethernet Switch Port",
"Logical Disk",
"Storage Volume",
"Ethernet Connection",
"DMTF reserved",
"Vendor Reserved"
]
},
"VirtualQuantity": {
"title": "Virtual Quantity",
"description": "This property specifies the quantity of resources presented to the consumer.",
"type": "string"
},
"VirtualQuantityUnits": {
"title": "Virtual Quantity Units",
"description": "This property specifies the units used by the VirtualQuantity property.",
"type": "string"
},
"Weight": {
"title": "Weight",
"description": "This property specifies a relative priority for this allocation in relation to other allocations from the same ResourcePool.",
"type": "string"
},
"Connection": {
"title": "Connection",
"description": "The thing to which this resource is connected.",
"type": "string"
},
"HostResource": {
"title": "Host Resource",
"description": "This property exposes specific assignment of resources.",
"type": "string"
}
},
"objects": []
}

View File

@ -0,0 +1,122 @@
{
"namespace": "CIM::StorageAllocationSettingData",
"display_name": "CIM Storage Allocation Setting Data",
"description": "Properties related to the allocation of virtual storage from Common Information Model (CIM) schema (http://www.dmtf.org/standards/cim). These properties may be specified to volume, host aggregate and flavor. For each property details, please refer to http://schemas.dmtf.org/wbem/cim-html/2/CIM_StorageAllocationSettingData.html.",
"visibility": "public",
"protected": true,
"resource_type_associations": [
{
"name": "OS::Cinder::Volume",
"prefix": "CIM_SASD_"
},
{
"name": "OS::Nova::Aggregate",
"prefix": "CIM_SASD_"
},
{
"name": "OS::Nova::Flavor",
"prefix": "CIM_SASD_"
}
],
"properties": {
"Access": {
"title": "Access",
"description": "Access describes whether the allocated storage extent is 1 (readable), 2 (writeable), or 3 (both).",
"operators": ["<or>"],
"type": "string",
"enum": [
"Unknown",
"Readable",
"Writeable",
"Read/Write Supported",
"DMTF Reserved"
]
},
"HostExtentName": {
"title": "Host Extent Name",
"description": "A unique identifier for the host extent.",
"type": "string"
},
"HostExtentNameFormat": {
"title": "Host Extent Name Format",
"description": "The HostExtentNameFormat property identifies the format that is used for the value of the HostExtentName property.",
"operators": ["<or>"],
"type": "string",
"enum": [
"Unknown",
"Other",
"SNVM",
"NAA",
"EUI64",
"T10VID",
"OS Device Name",
"DMTF Reserved"
]
},
"HostExtentNameNamespace": {
"title": "Host Extent Name Namespace",
"description": "If the host extent is a SCSI volume, then the preferred source for SCSI volume names is SCSI VPD Page 83 responses.",
"operators": ["<or>"],
"type": "string",
"enum": [
"Unknown",
"Other",
"VPD83Type3",
"VPD83Type2",
"VPD83Type1",
"VPD80",
"NodeWWN",
"SNVM",
"OS Device Namespace",
"DMTF Reserved"
]
},
"HostExtentStartingAddress": {
"title": "Host Extent Starting Address",
"description": "The HostExtentStartingAddress property identifies the starting address on the host storage extent identified by the value of the HostExtentName property that is used for the allocation of the virtual storage extent.",
"type": "string"
},
"HostResourceBlockSize": {
"title": "Host Resource Block Size",
"description": "Size in bytes of the blocks that are allocated at the host as the result of this storage resource allocation or storage resource allocation request.",
"type": "string"
},
"Limit": {
"title": "Limit",
"description": "The maximum amount of blocks that will be granted for this storage resource allocation at the host.",
"type": "string"
},
"OtherHostExtentNameFormat": {
"title": "Other Host Extent Name Format",
"description": "A string describing the format of the HostExtentName property if the value of the HostExtentNameFormat property is 1 (Other).",
"type": "string"
},
"OtherHostExtentNameNamespace": {
"title": "Other Host Extent Name Namespace",
"description": "A string describing the namespace of the HostExtentName property if the value of the HostExtentNameNamespace matches 1 (Other).",
"type": "string"
},
"Reservation": {
"title": "Reservation",
"description": "The amount of blocks that are guaranteed to be available for this storage resource allocation at the host.",
"type": "string"
},
"VirtualQuantity": {
"title": "Virtual Quantity",
"description": "Number of blocks that are presented to the consumer.",
"type": "string"
},
"VirtualQuantityUnits": {
"title": "Virtual Quantity Units",
"description": "This property specifies the units used by the VirtualQuantity property.",
"type": "string"
},
"VirtualResourceBlockSize": {
"title": "Virtual Resource Block Size",
"description": "Size in bytes of the blocks that are presented to the consumer as the result of this storage resource allocation or storage resource allocation request.",
"type": "string"
}
},
"objects": []
}

View File

@ -0,0 +1,127 @@
{
"namespace": "CIM::VirtualSystemSettingData",
"display_name": "CIM Virtual System Setting Data",
"description": "A set of virtualization specific properties from Common Information Model (CIM) schema (http://www.dmtf.org/standards/cim), which define the virtual aspects of a virtual system. These properties may be specified to host aggregate and flavor. For each property details, please refer to http://schemas.dmtf.org/wbem/cim-html/2/CIM_VirtualSystemSettingData.html.",
"visibility": "public",
"protected": true,
"resource_type_associations": [
{
"name": "OS::Nova::Aggregate",
"prefix": "CIM_VSSD_"
},
{
"name": "OS::Nova::Flavor",
"prefix": "CIM_VSSD_"
}
],
"properties": {
"AutomaticRecoveryAction": {
"title": "Automatic Recovery Action",
"description": "Action to take for the virtual system when the software executed by the virtual system fails.",
"operators": ["<or>"],
"type": "string",
"enum": [
"None",
"Restart",
"Revert to snapshot",
"DMTF Reserved"
]
},
"AutomaticShutdownAction": {
"title": "Automatic Shutdown Action",
"description": "Action to take for the virtual system when the host is shut down.",
"operators": ["<or>"],
"type": "string",
"enum": [
"Turn Off",
"Save state",
"Shutdown",
"DMTF Reserved"
]
},
"AutomaticStartupAction": {
"title": "Automatic Startup Action",
"description": "Action to take for the virtual system when the host is started.",
"operators": ["<or>"],
"type": "string",
"enum": [
"None",
"Restart if previously active",
"Always startup",
"DMTF Reserved"
]
},
"AutomaticStartupActionDelay": {
"title": "Automatic Startup Action Delay",
"description": "Delay applicable to startup action.",
"type": "string"
},
"AutomaticStartupActionSequenceNumber": {
"title": "Automatic Startup Action Sequence Number",
"description": "Number indicating the relative sequence of virtual system activation when the host system is started.",
"type": "string"
},
"ConfigurationDataRoot": {
"title": "Configuration Data Root",
"description": "Filepath of a directory where information about the virtual system configuration is stored.",
"type": "string"
},
"ConfigurationFile": {
"title": "Configuration File",
"description": "Filepath of a file where information about the virtual system configuration is stored.",
"type": "string"
},
"ConfigurationID": {
"title": "Configuration ID",
"description": "Unique id of the virtual system configuration.",
"type": "string"
},
"CreationTime": {
"title": "Creation Time",
"description": "Time when the virtual system configuration was created.",
"type": "string"
},
"LogDataRoot": {
"title": "Log Data Root",
"description": "Filepath of a directory where log information about the virtual system is stored.",
"type": "string"
},
"RecoveryFile": {
"title": "Recovery File",
"description": "Filepath of a file where recovery relateded information of the virtual system is stored.",
"type": "string"
},
"SnapshotDataRoot": {
"title": "Snapshot Data Root",
"description": "Filepath of a directory where information about virtual system snapshots is stored.",
"type": "string"
},
"SuspendDataRoot": {
"title": "Suspend Data Root",
"description": "Filepath of a directory where suspend related information about the virtual system is stored.",
"type": "string"
},
"SwapFileDataRoot": {
"title": "Swap File Data Root",
"description": "Filepath of a directory where swapfiles of the virtual system are stored.",
"type": "string"
},
"VirtualSystemIdentifier": {
"title": "Virtual System Identifier",
"description": "VirtualSystemIdentifier shall reflect a unique name for the system as it is used within the virtualization platform.",
"type": "string"
},
"VirtualSystemType": {
"title": "Virtual System Type",
"description": "VirtualSystemType shall reflect a particular type of virtual system.",
"type": "string"
},
"Notes": {
"title": "Notes",
"description": "End-user supplied notes that are related to the virtual system.",
"type": "string"
}
},
"objects": []
}