The ironic.drivers.modules.agent_client Module

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]
finalize_rescue(*args, **kwargs)[source]

Instruct the ramdisk to finalize entering of rescue mode.

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.

  • 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.

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.