ironic.drivers.modules.oneview.deploy_utils.
allocate_server_hardware_to_ironic
(node, server_profile_name)[source]¶Allocate Server Hardware to ironic.
Parameters: |
|
---|---|
Raises: | OneViewError – if an error occurs while allocating the Server Hardware to ironic or the node is already in use by OneView. |
ironic.drivers.modules.oneview.deploy_utils.
deallocate_server_hardware_from_ironic
(task)[source]¶Deallocate Server Hardware from ironic.
Parameters: | task – a TaskManager object |
---|---|
Raises: | OneViewError – if an error occurs while deallocating the Server Hardware to ironic |
ironic.drivers.modules.oneview.deploy_utils.
is_node_in_use_by_ironic
(node)[source]¶Check if node is in use by ironic in OneView.
Parameters: | node – an ironic node object. |
---|---|
Returns: | Boolean value. True if node is in use by ironic, False otherwise. |
Raises: | OneViewError – if not possible to get OneView’s information for the given node, if not possible to retrieve Server Hardware from OneView. |
ironic.drivers.modules.oneview.deploy_utils.
is_node_in_use_by_oneview
(node)[source]¶Check if node is in use by OneView user.
Parameters: | node – an ironic node object. |
---|---|
Returns: | Boolean value. True if node is in use by OneView, False otherwise. |
Raises: | OneViewError – if not possible to get OneView’s informations for the given node, if not possible to retrieve Server Hardware from OneView. |
ironic.drivers.modules.oneview.deploy_utils.
prepare
(task)[source]¶Applies Server Profile and update the node when preparing.
This method is responsible for applying a Server Profile to the Server Hardware and add the uri of the applied Server Profile in the node’s ‘applied_server_profile_uri’ field on properties/capabilities.
Parameters: | task – A TaskManager object |
---|---|
Raises: | InstanceDeployFailure – If the node doesn’t have the needed OneView informations, if Server Hardware is in use by an OneView user, or if the Server Profile can’t be applied. |
ironic.drivers.modules.oneview.deploy_utils.
prepare_cleaning
(task)[source]¶Applies Server Profile and update the node when preparing cleaning.
This method is responsible for applying a Server Profile to the Server Hardware and add the uri of the applied Server Profile in the node’s ‘applied_server_profile_uri’ field on properties/capabilities.
Parameters: | task – A TaskManager object |
---|---|
Raises: | NodeCleaningFailure – If the node doesn’t have the needed OneView informations, if Server Hardware is in use by an OneView user, or if the Server Profile can’t be applied. |
ironic.drivers.modules.oneview.deploy_utils.
tear_down
(task)[source]¶Remove Server profile and update the node when tear down.
This method is responsible for power a Server Hardware off, remove a Server Profile from the Server Hardware and remove the uri of the applied Server Profile from the node’s ‘applied_server_profile_uri’ in properties/capabilities.
Parameters: | task – A TaskManager object |
---|---|
Raises: | InstanceDeployFailure – If node has no uri of applied Server Profile, or if some error occur while deleting Server Profile. |
ironic.drivers.modules.oneview.deploy_utils.
tear_down_cleaning
(task)[source]¶Remove Server profile and update the node when tear down cleaning.
This method is responsible for power a Server Hardware off, remove a Server Profile from the Server Hardware and remove the uri of the applied Server Profile from the node’s ‘applied_server_profile_uri’ in properties/capabilities.
Parameters: | task – A TaskManager object |
---|---|
Raises: | NodeCleaningFailure – If node has no uri of applied Server Profile, or if some error occur while deleting Server Profile. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.