Nova Ironic driver to set pxe_swap_mb in Ironic

This patch fix the Nova Ironic driver to make it look at the swap field
in the flavor and map it to Ironic as driver_info/pxe_swap_mb.

Change-Id: Ic6091fd6b6c8e1a32a33969ce5cdd20f6c243167
Closes-Bug: #1297937
This commit is contained in:
Lucas Alvares Gomes 2014-03-26 16:45:42 +00:00
parent fadfa2fd80
commit a244d1bc7b
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ class PXE(object):
'ironic_variable': 'pxe_root_gb',
'nova_object': 'instance',
'object_field': 'root_gb'},
{'ironic_path': '/driver_info',
'ironic_variable': 'pxe_swap_mb',
'nova_object': 'flavor',
'object_field': 'swap'},
{'ironic_path': '/driver_info',
'ironic_variable': 'pxe_deploy_kernel',
'nova_object': 'flavor',