Utilities and helper functions.
Execute dd from src to dst.
| Parameters: |
|
|---|---|
| Raises: | processutils.ProcessExecutionError if it failed to run the process. |
Convenience wrapper around oslo’s execute() method.
Executes and logs results from a system command. See docs for oslo_concurrency.processutils.execute for usage.
| Parameters: |
|
|---|---|
| Returns: | (stdout, stderr) from process execution |
| Raises: | UnknownArgumentError on receiving unknown arguments |
| Raises: | ProcessExecutionError |
| Raises: | OSError |
Format a file or block device
| Parameters: |
|
|---|
Parse the root_device property of a node.
Parses and validates the root_device property of a node. These are hints for how a node’s root device is created. The ‘size’ hint should be a positive integer. The ‘rotational’ hint should be a Boolean value.
| Parameters: | root_device – the root_device dictionary from the node’s property. |
|---|---|
| Returns: | a dictionary with the root device hints parsed or None if there are no hints. |
| Raises: | ValueError, if some information is invalid. |