Temporarily disable uefi support

Because novaclient removed the images proxy, this is currently
breaking build-nodes-json for people using the latest OpenStack.
A proper fix to use glanceclient will follow shortly, but in the
meantime this should unblock users broken by the proxy change.
This commit is contained in:
Ben Nemec 2017-04-25 14:30:37 -05:00
parent 2ecfa35922
commit 2fe2fd0569
1 changed files with 6 additions and 5 deletions

View File

@ -177,11 +177,12 @@ def _build_nodes(nova, bmc_ports, bm_ports, provision_net, baremetal_base,
# If a node has uefi firmware ironic needs to be aware of this, in nova
# this is set using a image property called "hw_firmware_type"
if not cache.get(baremetal.image['id']):
cache[baremetal.image['id']] = nova.images.get(baremetal.image['id'])
image = cache.get(baremetal.image['id'])
if image.metadata.get('hw_firmware_type') == 'uefi':
node['capabilities'] += ",boot_mode:uefi"
# TODO(bnemec): Re-enable uefi support
#if not cache.get(baremetal.image['id']):
#cache[baremetal.image['id']] = nova.images.get(baremetal.image['id'])
#image = cache.get(baremetal.image['id'])
#if image.metadata.get('hw_firmware_type') == 'uefi':
#node['capabilities'] += ",boot_mode:uefi"
bm_name_end = baremetal.name[len(baremetal_base):]
if '-' in bm_name_end: