rsd_lib.resources.v2_1.node.node
Module¶rsd_lib.resources.v2_1.node.node.
AssembleActionField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
target_uri
= <sushy.resources.base.Field object>¶rsd_lib.resources.v2_1.node.node.
AttachEndpointActionField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
allowed_values
= <sushy.resources.base.Field object>¶target_uri
= <sushy.resources.base.Field object>¶rsd_lib.resources.v2_1.node.node.
BootField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
allowed_values
= <sushy.resources.base.Field object>¶enabled
= <sushy.resources.base.MappedField object>¶mode
= <sushy.resources.base.MappedField object>¶target
= <sushy.resources.base.MappedField object>¶rsd_lib.resources.v2_1.node.node.
ComposeNodeActionField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
target_uri
= <sushy.resources.base.Field object>¶rsd_lib.resources.v2_1.node.node.
DetachEndpointActionField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
allowed_values
= <sushy.resources.base.Field object>¶target_uri
= <sushy.resources.base.Field object>¶rsd_lib.resources.v2_1.node.node.
LinksField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
ethernet_interfaces
= <sushy.resources.base.Field object>¶Link to ethernet interfaces of this node
local_drives
= <sushy.resources.base.Field object>¶Link to local driver of this node
memory
= <sushy.resources.base.Field object>¶Link to memory of this node
processors
= <sushy.resources.base.Field object>¶Link to processors of this node
remote_drives
= <sushy.resources.base.Field object>¶Link to remote drives of this node
system
= <sushy.resources.base.Field object>¶Link to base computer system of this node
rsd_lib.resources.v2_1.node.node.
MemorySummaryField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
size_gib
= <sushy.resources.base.Field object>¶The size of memory of the node in GiB.
This signifies the total installed, operating system-accessible memory (RAM), measured in GiB.
status
= <rsd_lib.common.StatusField object>¶The memory status
rsd_lib.resources.v2_1.node.node.
Node
(connector, identity, redfish_version=None)¶Bases: sushy.resources.base.ResourceBase
assemble_node
()¶Assemble the composed node.
attach_endpoint
(endpoint=None, capacity=None)¶Attach endpoint from available pool to composed node
Parameters: |
|
---|---|
Raises: | InvalidParameterValueError |
Raises: | BadRequestError if at least one param isn’t specified |
boot
= <rsd_lib.resources.v2_1.node.node.BootField object>¶A dictionary containg the current boot device, frequency and mode
composed_node_state
= <sushy.resources.base.MappedField object>¶Current state of assembly process for this node
delete_node
()¶Delete (disassemble) the node.
When this action is called several tasks are performed. A graceful shutdown is sent to the computer system, all VLANs except reserved ones are removed from associated ethernet switch ports, the computer system is deallocated and the remote target is deallocated.
description
= <sushy.resources.base.Field object>¶The node description
detach_endpoint
(endpoint)¶Detach already attached endpoint from composed node
Parameters: | endpoint – Link to endpoint to detach |
---|---|
Raises: | InvalidParameterValueError |
Raises: | BadRequestError |
get_allowed_attach_endpoints
()¶Get the allowed endpoints for attach action.
Returns: | A set with the allowed attach endpoints. |
---|
get_allowed_detach_endpoints
()¶Get the allowed endpoints for detach action.
Returns: | A set with the allowed detach endpoints. |
---|
get_allowed_node_boot_source_values
()¶Get the allowed values for changing the boot source.
Returns: | A set with the allowed values. |
---|
get_allowed_reset_node_values
()¶Get the allowed values for resetting the node.
Returns: | A set with the allowed values. |
---|
identity
= <sushy.resources.base.Field object>¶The node identity string
links
= <rsd_lib.resources.v2_1.node.node.LinksField object>¶These links to related components of this composed node
memory_summary
= <rsd_lib.resources.v2_1.node.node.MemorySummaryField object>¶The summary info of memory of the node in general detail
name
= <sushy.resources.base.Field object>¶The node name
power_state
= <sushy.resources.base.MappedField object>¶The node power state
processor_summary
= <rsd_lib.resources.v2_1.node.node.ProcessorSummaryField object>¶The summary info for the node processors in general detail
reset_node
(value)¶Reset the node.
Parameters: | value – The target value. |
---|---|
Raises: | InvalidParameterValueError, if the target value is not allowed. |
set_node_boot_source
(target, enabled='once', mode=None)¶Set the boot source.
Set the boot source to use on next reboot of the Node.
Parameters: |
|
---|---|
Raises: | InvalidParameterValueError, if any information passed is invalid. |
status
= <rsd_lib.common.StatusField object>¶The node status
system
¶Property to provide reference to System instance
It is calculated once the first time it is queried. On refresh, this property is reset.
uuid
= <sushy.resources.base.Field object>¶The node UUID
rsd_lib.resources.v2_1.node.node.
NodeActionsField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
assemble
= <rsd_lib.resources.v2_1.node.node.AssembleActionField object>¶attach_endpoint
= <rsd_lib.resources.v2_1.node.node.AttachEndpointActionField object>¶detach_endpoint
= <rsd_lib.resources.v2_1.node.node.DetachEndpointActionField object>¶reset
= <sushy.resources.common.ResetActionField object>¶rsd_lib.resources.v2_1.node.node.
NodeCollection
(connector, path, redfish_version=None)¶Bases: sushy.resources.base.ResourceCollectionBase
compose_node
(name=None, description=None, processor_req=None, memory_req=None, remote_drive_req=None, local_drive_req=None, ethernet_interface_req=None, total_system_core_req=None, total_system_memory_req=None)¶Compose a node from RackScale hardware
Parameters: |
|
---|---|
Returns: | The location of the composed node |
When the ‘processor_req’ is not none: it need a computer system contains processors whose each processor meet all conditions in the value.
When the ‘total_system_core_req’ is not none: it need a computer system contains processors whose cores sum up to number equal or greater than ‘total_system_core_req’.
When both values are not none: it need meet all conditions.
‘memory_req’ and ‘total_system_memory_req’ is the same.
rsd_lib.resources.v2_1.node.node.
NodeCollectionActionsField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
compose
= <rsd_lib.resources.v2_1.node.node.ComposeNodeActionField object>¶rsd_lib.resources.v2_1.node.node.
ProcessorSummaryField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
count
= <sushy.resources.base.Field object>¶The number of CPUs in the node.
model
= <sushy.resources.base.Field object>¶Basic information about processor model.
status
= <rsd_lib.common.StatusField object>¶The processor status
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.