The ironic.drivers.modules.agent_client Module

class ironic.drivers.modules.agent_client.AgentClient(*args, **kwargs)[source]

Bases: object

Client for interacting with nodes via a REST API.

collect_system_logs(*args, **kwargs)[source]

Collect and package diagnostic and support data from the ramdisk.

execute_clean_step(*args, **kwargs)[source]
get_clean_steps(*args, **kwargs)[source]
get_commands_status(*args, **kwargs)[source]
install_bootloader(*args, **kwargs)[source]

Install a boot loader on the image.

power_off(*args, **kwargs)[source]

Soft powers off the bare metal node by shutting down ramdisk OS.

prepare_image(*args, **kwargs)[source]

Call the prepare_image method on the node.

start_iscsi_target(*args, **kwargs)[source]

Expose the node’s disk as an ISCSI target.

Parameters:
  • node – an Ironic node object
  • iqn – iSCSI target IQN
  • portal_port – iSCSI portal port
  • wipe_disk_metadata – True if the agent should wipe first the disk magic strings like the partition table, RAID or filesystem signature.
sync(*args, **kwargs)[source]

Flush file system buffers forcing changed blocks to disk.

Project Source

This Page