rsd_lib.resources.node.node
Module¶rsd_lib.resources.node.node.
AssembleActionField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
target_uri
= <sushy.resources.base.Field object>¶rsd_lib.resources.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.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.node.node.
ComposeNodeActionField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
target_uri
= <sushy.resources.base.Field object>¶rsd_lib.resources.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.node.node.
MemorySummaryField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
health
= <sushy.resources.base.Field object>¶The overall health state of memory.
This signifies health state of memory along with its dependent resources.
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.
rsd_lib.resources.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.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_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
memory_summary
= <rsd_lib.resources.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.node.node.ProcessorSummaryField object>¶The summary info for the node processors in general detail
refresh
()¶Refresh the resource
Freshly retrieves/fetches the resource attributes and invokes
_parse_attributes()
method on successful retrieval.
:raises: ResourceNotFoundError
:raises: ConnectionError
:raises: HTTPError
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.resources.node.node.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.node.node.
NodeActionsField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
assemble
= <rsd_lib.resources.node.node.AssembleActionField object>¶attach_endpoint
= <rsd_lib.resources.node.node.AttachEndpointActionField object>¶detach_endpoint
= <rsd_lib.resources.node.node.DetachEndpointActionField object>¶reset
= <sushy.resources.common.ResetActionField object>¶rsd_lib.resources.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)¶Compose a node from RackScale hardware
Parameters: |
|
---|---|
Returns: | The location of the composed node |
rsd_lib.resources.node.node.
NodeCollectionActionsField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
compose
= <rsd_lib.resources.node.node.ComposeNodeActionField object>¶rsd_lib.resources.node.node.
ProcessorSummaryField
(*args, **kwargs)¶Bases: sushy.resources.base.CompositeField
count
= <sushy.resources.base.Field object>¶The number of CPUs in the node.
health
= <sushy.resources.base.Field object>¶The overall health state of the node processors.
model
= <sushy.resources.base.Field object>¶Basic information about processor model.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.