The rsd_lib.resources.node.node Module

The rsd_lib.resources.node.node Module

class rsd_lib.resources.node.node.AssembleActionField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

target_uri = <sushy.resources.base.Field object>
class 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>
class 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>
class rsd_lib.resources.node.node.ComposeNodeActionField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

target_uri = <sushy.resources.base.Field object>
class 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>
class 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.

class 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:
  • endpoint – Link to endpoint to attach.
  • capacity – Requested capacity of the drive in GiB.
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()
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:
  • target – The target boot source.
  • enabled – The frequency, whether to set it for the next reboot only (BOOT_SOURCE_ENABLED_ONCE) or persistent to all future reboots (BOOT_SOURCE_ENABLED_CONTINUOUS) or disabled (BOOT_SOURCE_ENABLED_DISABLED).
  • mode – The boot mode, UEFI (BOOT_SOURCE_MODE_UEFI) or Legacy (BOOT_SOURCE_MODE_LEGACY).
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

class 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>
class 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:
  • name – Name of node
  • description – Description of node
  • processor_req – JSON for node processors
  • memory_req – JSON for node memory modules
  • remote_drive_req – JSON for node remote drives
  • local_drive_req – JSON for node local drives
  • ethernet_interface_req – JSON for node ethernet ports
Returns:

The location of the composed node

class rsd_lib.resources.node.node.NodeCollectionActionsField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

compose = <rsd_lib.resources.node.node.ComposeNodeActionField object>
class 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.

class rsd_lib.resources.node.node.StatusField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

health = <sushy.resources.base.Field object>
health_rollup = <sushy.resources.base.Field object>
state = <sushy.resources.base.Field object>
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.