Skip to content

Commit

Permalink
Stash baremetal deploy image IDs in a namespace.
Browse files Browse the repository at this point in the history
Baremetal PXE driver should read deploy_kernel_id & deploy_ramdisk_id
from the 'baremetal:' namespace within instance_type['extra_specs']
so that it doesn't conflict with ComputeCapabilitiesFilter any more.

This allows nova-compute to use ComputeCapabilitiesFilter with baremetal
again. For this filter to properly match the baremetal ndoe's RAM,
we need to tune two other Nova options for physical hardware.

Fixes bug 1129485.

Change-Id: I0aa1b0fef8ac59a06217577af8c747437d2d6bf5
  • Loading branch information
AevaOnline committed Mar 4, 2013
1 parent f90b274 commit 2920b7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions lib/baremetal
Expand Up @@ -258,9 +258,10 @@ function create_baremetal_flavor() {
nova flavor-create $BM_FLAVOR_NAME $BM_FLAVOR_ID \
$BM_FLAVOR_RAM $BM_FLAVOR_ROOT_DISK $BM_FLAVOR_CPU
nova flavor-key $BM_FLAVOR_NAME set \
cpu_arch=$BM_FLAVOR_ARCH \
deploy_kernel_id=$aki \
deploy_ramdisk_id=$ari
"cpu_arch"="$BM_FLAVOR_ARCH" \
"baremetal:deploy_kernel_id"="$aki" \
"baremetal:deploy_ramdisk_id"="$ari"

}

# pull run-time kernel/ramdisk out of disk image and load into glance
Expand Down
5 changes: 2 additions & 3 deletions stack.sh
Expand Up @@ -1078,9 +1078,8 @@ if is_service_enabled nova; then
iniset $NOVA_CONF DEFAULT compute_driver nova.virt.baremetal.driver.BareMetalDriver
iniset $NOVA_CONF DEFAULT firewall_driver $LIBVIRT_FIREWALL_DRIVER
iniset $NOVA_CONF DEFAULT scheduler_host_manager nova.scheduler.baremetal_host_manager.BaremetalHostManager
# NOTE(deva): ComputeCapabilitiesFilter does not currently work with Baremetal. See bug # 1129485
# As a work around, we disable CCFilter by explicitly enabling all the other default filters.
iniset $NOVA_CONF DEFAULT scheduler_default_filters ComputeFilter,RetryFilter,AvailabilityZoneFilter,ImagePropertiesFilter
iniset $NOVA_CONF DEFAULT ram_allocation_ratio 1.0
iniset $NOVA_CONF DEFAULT reserved_host_memory_mb 0
iniset $NOVA_CONF baremetal instance_type_extra_specs cpu_arch:$BM_CPU_ARCH
iniset $NOVA_CONF baremetal driver $BM_DRIVER
iniset $NOVA_CONF baremetal power_manager $BM_POWER_MANAGER
Expand Down

0 comments on commit 2920b7d

Please sign in to comment.