Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature vmimage options #402

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ed58f14
do not remove vhost_net anymore
breu Nov 20, 2013
43bffb6
Use new get_mysql_endpoint method in osops-utils
claco Nov 22, 2013
860909e
use shared node["osops"]["region"] attribute
brc Nov 27, 2013
cb05b84
Use new get_mysql_endpoint method in osops-utils
claco Nov 22, 2013
a8ffb3c
sysfsutils is needed to attach an volume to an instance
mancdaz Nov 22, 2013
431a652
move systool package to ubuntu section
mancdaz Nov 21, 2013
bd8390c
remove extra libvirt_packages attribute
willkelly Dec 2, 2013
93571d4
Update VERSION
willkelly Dec 2, 2013
078ba8c
Merge branch 'v4.2.1rc' of github.com:rcbops-cookbooks/nova into v4.2…
willkelly Dec 2, 2013
9d60818
Updating VERSION
claco Dec 18, 2013
ebb6fde
Add HA bits for OS metadata service
breu Jan 31, 2014
4768c0a
Merge pull request #376 from rackerjoe/v4.2.2rc
rcbjenkins Feb 1, 2014
4879ff2
Add libvirt_cpu_mode/libvirt_cpu_model attributes
mattt416 Dec 12, 2013
bb382c0
Enable block_migration_flag
breu Feb 20, 2014
4e685c9
add a flag for config_drive_format, default to iso9660
breu Feb 20, 2014
04f3524
Merge pull request #386 from rackerjoe/v4.2.2rc
rcbjenkins Feb 21, 2014
b2add50
Make scheduler_host_subset_size configurable.
Feb 20, 2014
11f4a8a
Merge pull request #388 from rackerjoe/v4.2.2rc
rcbjenkins Mar 3, 2014
b7d9b92
Use recreate action on keystone_endpoints
claco Mar 3, 2014
cfa2724
Issue #665: Attributes for sql pool settings
claco Mar 3, 2014
58a7bd5
Merge pull request #390 from claco/recreate-action
rcbjenkins Mar 4, 2014
bdb2e5b
Merge pull request #391 from claco/sql-pool-settings
rcbjenkins Mar 4, 2014
69c4622
Fix for issue 754
claco Mar 3, 2014
d5ffd60
Merge pull request #394 from claco/fix-comf-spelling
rcbjenkins Mar 4, 2014
af47a1e
Add favicon to novncproxy
claco Mar 3, 2014
bca3750
Merge pull request #393 from claco/add-proxy-favicon
rcbjenkins Mar 4, 2014
956df5e
Fix incorrect attribute check
claco Mar 3, 2014
0fd38b6
Merge pull request #392 from claco/fix-attr-check
rcbjenkins Mar 4, 2014
21ef0d5
default libvirt injection part to -2
claco Mar 7, 2014
f883a7f
Merge pull request #396 from claco/v4.2.2rc
rcbjenkins Mar 7, 2014
f099388
Enable send_arp_for_ha_count in nova.conf
claco Mar 14, 2014
d50fa46
Merge pull request #399 from claco/v4.2.2rc
rcbjenkins Mar 14, 2014
0c56744
Adding VM backing image file options
Apr 15, 2014
4197ba9
Whitespace correction
Apr 15, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ NOTE: service password is no longer set statically in the attributes file, but s
* `nova["services"]["volume"]["path"]` - URI to use
* `nova["services"]["volume"]["cinder_catalog_info"]` - URL used for cinder

* `nova["compute"]["region"]` - Region name, defaults to RegionOne

* `nova["scheduler"]["scheduler_driver"]` - The scheduler driver to use
NOTE: The filter scheduler currently does not work with ec2.
* `nova["scheduler"]["scheduler_weight_classes"]` - A list of weight class names (separated by commas) to use for weighing hosts, defaults to nova.scheduler.weights.ram.RAMWeigher
Expand All @@ -206,11 +204,15 @@ NOTE: The filter scheduler currently does not work with ec2.
* `nova["libvirt"]["libvirt_inject_key"]` - Inject ssh public key at boot?
* `nova["libvirt"]["libvirt_inject_password"]` - Inject root password at boot?
* `nova["libvirt"]["libvirt_inject_partition"]` - The partition to inject to: -2 = disable, -1 = inspect (libguestfs only), 0 = not partitioned, >0 = partition number
* `nova["libvirt"]["libvirt_cpu_mode"]` - Options include "host-model", "host-passthrough", "custom", and "none"; cookbook defaults to nil and does not insert into nova.conf unless adjusted
* `nova["libvirt"]["libvirt_cpu_model"]` - This attribute is only applicable when `virt_type` is "kvm" or "qemu" and `libvirt_cpu_mode` is "custom"; cookbook defaults to nil and does not insert into nova.conf unless changed and applicable
* `nova["libvirt"]["disk_cachemodes"]` - KVM disk caching modes. Defaults to "file=none". To set writeback mode use "file=writeback". To set multiple modes use "file=writeback,block=none"
* `nova["config"]["use_single_default_gateway"]` - Use single default gateway?
* `nova["config"]["availability_zone"]` - Nova availability zone. Usually set at the node level to place a compute node in another az
* `nova["config"]["default_schedule_zone"]` - The availability zone to schedule instances in when no az is specified in the request
* `nova["config"]["force_raw_images"]` - Convert all images used as backing files for instances to raw (we default to false)
* `nova["config"]["libvirt_images_type"]` - VM backing file format. If set to default the use_cow_images is used. Possible values are raw, qcow2, lvm, rbd .
* `nova["config"]["preallocate_images"]` - Pre-allocate VM backing image if set to 'space' (default to none)
* `nova["config"]["allow_same_net_traffic"]` - Disable security groups for internal networks (we default to true)
* `nova["config"]["osapi_max_limit"]` - The maximum number of items returned in a single response from a collection resource (default is 1000)
* `nova["config"]["cpu_allocation_ratio"]` - Virtual CPU to Physical CPU allocation ratio (default 16.0)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.0
4.2.2
53 changes: 47 additions & 6 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
default["nova"]["services"]["admin-api"]["port"] = 8774
default["nova"]["services"]["admin-api"]["path"] = "/v2/%(tenant_id)s"

default["nova"]["services"]["api-metadata"]["scheme"] = "http"
# TODO(breu): do we need network here?
default["nova"]["services"]["api-metadata"]["network"] = "management"
default["nova"]["services"]["api-metadata"]["port"] = 8775
# TODO(breu): do we need path here?
default["nova"]["services"]["api-metadata"]["path"] = "/"

default["nova"]["services"]["ec2-admin"]["scheme"] = "http"
default["nova"]["services"]["ec2-admin"]["network"] = "public"
default["nova"]["services"]["ec2-admin"]["port"] = 8773
Expand Down Expand Up @@ -91,8 +98,6 @@
default["nova"]["services"]["volume"]["path"] = "/v1/%(tenant_id)s"
default["nova"]["services"]["volume"]["cinder_catalog_info"] = "volume:cinder:publicURL"

# can this be wedged into the "api" endpoint?
default["nova"]["compute"]["region"] = "RegionOne"
default["nova"]["compute"]["connection_type"] = "libvirt"

default["nova"]["scheduler"]["scheduler_driver"] = "nova.scheduler.filter_scheduler.FilterScheduler"
Expand All @@ -107,6 +112,7 @@
"DifferentHostFilter",
"RetryFilter"
]
default["nova"]["scheduler"]["scheduler_host_subset_size"] = 1

default["nova"]["libvirt"]["virt_type"] = "kvm"
default["nova"]["libvirt"]["vncserver_listen"] = nil
Expand All @@ -118,12 +124,17 @@
default["nova"]["libvirt"]["checksum_base_images"] = false
default["nova"]["libvirt"]["libvirt_inject_key"] = false
default["nova"]["libvirt"]["libvirt_inject_password"] = false
default["nova"]["libvirt"]["libvirt_inject_partition"] = 1
default["nova"]["libvirt"]["libvirt_inject_partition"] = -2
default["nova"]["libvirt"]["libvirt_cpu_mode"] = nil
default["nova"]["libvirt"]["libvirt_cpu_model"] = nil
default["nova"]["libvirt"]["disk_cachemodes"] = ["file=none"]
default["nova"]["libvirt"]["block_migration_flag"] = "VIR_MIGRATE_UNDEFINE_SOURCE, VIR_MIGRATE_PEER2PEER, VIR_MIGRATE_NON_SHARED_INC"
default["nova"]["config"]["use_single_default_gateway"] = false
default["nova"]["config"]["availability_zone"] = "nova"
default["nova"]["config"]["default_schedule_zone"] = "nova"
default["nova"]["config"]["force_raw_images"] = false
default["nova"]["config"]["libvirt_images_type"] = "default"
default["nova"]["config"]["preallocate_images"] = "none"
default["nova"]["config"]["allow_same_net_traffic"] = true
default["nova"]["config"]["osapi_max_limit"] = 1000
default["nova"]["config"]["cpu_allocation_ratio"] = 16.0
Expand All @@ -144,19 +155,49 @@
# requires https://review.openstack.org/#/c/8423/
default["nova"]["config"]["resume_guests_state_on_host_boot"] = false
default["nova"]["config"]["force_config_drive"] = false
default["nova"]["config"]["config_drive_format"] = "iso9660"
default['nova']['config']['image_cache_manager_interval'] = 2400
default["nova"]["config"]["max_age"] = 0
default["nova"]["config"]["reserved_host_disk_mb"] = 0

# LOGGING VERBOSITY
#
# in order of verbosity (most to least)
# DEBUG, INFO, WARNING, ERROR, CRITICAL
default["nova"]["config"]["log_verbosity"] = "INFO"

# quota settings
# QUOTA SETTINGS
#
default["nova"]["config"]["quota_security_groups"] = 50
default["nova"]["config"]["quota_security_group_rules"] = 20

# DB CONNECTION SETTINGS
#
# (IntOpt) Verbosity of SQL debugging information. 0=None, 100=Everything
default["nova"]["config"]["sql_connection_debug"] = 0

# (IntOpt) Timeout before idle sql connections are reaped
default["nova"]["config"]["sql_idle_timeout"] = 3600

# (IntOpt) Interval between retries of opening a sql connection
default["nova"]["config"]["sql_retry_interval"] = 10

# (IntOpt) Maximum db connection retries during startup.
# Setting -1 implies an infinite retry count.
default["nova"]["config"]["sql_max_retries"] = 10

# (IntOpt) Minimum number of SQL connections to keep open in a pool
default["nova"]["config"]["sql_min_pool_size"] = 1

# (IntOpt) If set, Maximum number of SQL connections to keep open in a pool
#default["nova"]["config"]["sql_max_pool_size"] = 5

# (IntOpt) If set, use this value for max_overflow with sqlalchemy
# http://docs.sqlalchemy.org/en/rel_0_9/core/pooling.html#sqlalchemy.pool.QueuePool
#default["nova"]["config"]["sql_max_overflow"] = 10

# NOVA RATELIMIT SETTINGS
#
default["nova"]["ratelimit"]["settings"] = {
"generic-post-limit" => { "verb" => "POST", "uri" => "*", "regex" => ".*", "limit" => "10", "interval" => "MINUTE" },
"create-servers-limit" => { "verb" => "POST", "uri" => "*/servers", "regex" => "^/servers", "limit" => "50", "interval" => "DAY" },
Expand Down Expand Up @@ -303,10 +344,10 @@
"iscsi_helper" => "tgtadm",
"iscsi_service" => "tgt",
# README(shep): python-libvirt does not get automatically upgraded
"libvirt_packages" => ["libvirt-bin", "python-libvirt", "pm-utils"],
"libvirt_packages" => ["libvirt-bin", "python-libvirt", "pm-utils", "sysfsutils"],
"libvirt_service" => "libvirt-bin",
"mysql_service" => "mysql",
"package_options" =>
"package_options" =>
"-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'"
}
default["nova"]["ssl"]["dir"] = "/etc/ssl"
Expand Down
2 changes: 1 addition & 1 deletion files/default/ec2api_modwsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from nova import config
from paste import deploy

config_files = ['/etc/nova/api-paste.ini', '/etc/nova/nova.comf']
config_files = ['/etc/nova/api-paste.ini', '/etc/nova/nova.conf']
config.parse_args([], default_config_files=config_files)

LOG = logging.getLogger(__name__)
Expand Down
Binary file added files/default/novncproxy.ico
Binary file not shown.
24 changes: 22 additions & 2 deletions providers/conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Chef::Log.info("Creating #{new_resource.name}")

# Search for mysql endpoint info
mysql_info = get_access_endpoint("mysql-master", "mysql", "db")
mysql_info = get_mysql_endpoint

# Search for rabbit endpoint info
rabbit_info = get_access_endpoint("rabbitmq-server", "rabbitmq", "queue")
Expand All @@ -28,6 +28,9 @@
# Get endpoint info for nova-api
api_bind = get_bind_endpoint("nova", "api")

# Get the socket bind information for nova-api-metadata
metadata_api_bind = get_bind_endpoint("nova", "api-metadata")

# Get endpoint info for nova-api-ec2
ec2_bind = get_bind_endpoint("nova", "ec2-public")

Expand Down Expand Up @@ -93,6 +96,7 @@
network_options["dmz_cidr"] = node[net_provider]["network"]["dmz_cidr"]
network_options["force_dhcp_release"] = node[net_provider]["network"]["force_dhcp_release"]
network_options["send_arp_for_ha"] = node[net_provider]["network"]["send_arp_for_ha"]
network_options["send_arp_for_ha_count"] = node[net_provider]["network"]["send_arp_for_ha_count"]
network_options["auto_assign_floating_ip"] = node[net_provider]["network"]["auto_assign_floating_ip"]
network_options["dhcp_domain"] = node[net_provider]["network"]["dhcp_domain"]
network_options["dhcpbridge_flagfile"] = "/etc/nova/nova.conf"
Expand Down Expand Up @@ -188,6 +192,7 @@
"scheduler_default_filters" => node["nova"]["scheduler"]["default_filters"].join(","),
"scheduler_weight_classes" => node["nova"]["scheduler"]["scheduler_weight_classes"],
"scheduler_ram_weight_multiplier" => node["nova"]["scheduler"]["ram_weight_multiplier"],
"scheduler_host_subset_size" => node["nova"]["scheduler"]["scheduler_host_subset_size"],
"availability_zone" => node["nova"]["config"]["availability_zone"],
"default_schedule_zone" => node["nova"]["config"]["default_schedule_zone"],
"connection_type" => node["nova"]["compute"]["connection_type"],
Expand All @@ -200,7 +205,12 @@
"libvirt_inject_key" => node["nova"]["libvirt"]["libvirt_inject_key"],
"libvirt_inject_password" => node["nova"]["libvirt"]["libvirt_inject_password"],
"libvirt_inject_partition" => node["nova"]["libvirt"]["libvirt_inject_partition"],
"block_migration_flag" => node["nova"]["libvirt"]["block_migration_flag"],
"libvirt_cpu_mode" => node["nova"]["libvirt"]["libvirt_cpu_mode"],
"libvirt_cpu_model" => node["nova"]["libvirt"]["libvirt_cpu_model"],
"force_raw_images" => node["nova"]["config"]["force_raw_images"],
"libvirt_images_type" => node["nova"]["config"]["libvirt_images_type"],
"preallocate_images" => node["nova"]["config"]["preallocate_images"],
"allow_same_net_traffic" => node["nova"]["config"]["allow_same_net_traffic"],
"quota_instances" => node["nova"]["config"]["quota_instances"],
"quota_fixed_ips" => node["nova"]["config"]["quota_fixed_ips"],
Expand All @@ -219,7 +229,10 @@
"scheduler_max_attempts" => node["nova"]["config"]["scheduler_max_attempts"],
"vpn_image_id" => node["nova"]["config"]["vpn_image_id"],
"force_config_drive" => node["nova"]["config"]["force_config_drive"],
"config_drive_format" => node["nova"]["config"]["config_drive_format"],
"cinder_catalog_info" => node["nova"]["services"]["volume"]["cinder_catalog_info"],
"metadata_listen" => metadata_api_bind["host"],
"metadata_listen_port" => metadata_api_bind["port"],
"osapi_compute_listen" => api_bind["host"],
"osapi_compute_listen_port" => api_bind["port"],
"ec2_listen" => ec2_bind["host"],
Expand All @@ -230,7 +243,14 @@
"memcached_servers" => memcached_servers,
"image_cache_manager_interval" => node["nova"]["config"]["image_cache_manager_interval"],
"max_age" => node["nova"]["config"]["max_age"],
"reserved_host_disk_mb" => node["nova"]["config"]["reserved_host_disk_mb"]
"reserved_host_disk_mb" => node["nova"]["config"]["reserved_host_disk_mb"],
"sql_connection_debug" => node["nova"]["config"]["sql_connection_debug"],
"sql_idle_timeout" => node["nova"]["config"]["sql_idle_timeout"],
"sql_retry_interval" => node["nova"]["config"]["sql_retry_interval"],
"sql_max_retries" => node["nova"]["config"]["sql_max_retries"],
"sql_min_pool_size" => node["nova"]["config"]["sql_min_pool_size"],
"sql_max_pool_size" => node["nova"]["config"]["sql_max_pool_size"] || nil,
"sql_max_overflow" => node["nova"]["config"]["sql_max_overflow"] || nil
)
end
new_resource.updated_by_last_action(t.updated_by_last_action?)
Expand Down
4 changes: 2 additions & 2 deletions recipes/api-ec2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@
api_ver ks_admin_endpoint["path"]
auth_token keystone["admin_token"]
service_type "ec2"
endpoint_region node["nova"]["compute"]["region"]
endpoint_region node["osops"]["region"]
endpoint_adminurl ec2_admin_endpoint["uri"]
endpoint_internalurl ec2_public_endpoint["uri"]
endpoint_publicurl ec2_public_endpoint["uri"]
action :create
action :recreate
end
4 changes: 2 additions & 2 deletions recipes/api-os-compute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@
api_ver ks_admin_endpoint["path"]
auth_token keystone["admin_token"]
service_type "compute"
endpoint_region node["nova"]["compute"]["region"]
endpoint_region node["osops"]["region"]
endpoint_adminurl api_admin_endpoint["uri"]
endpoint_internalurl api_internal_endpoint["uri"]
endpoint_publicurl api_endpoint["uri"]
action :create
action :recreate
end

include_recipe "nova::nova-osapi-patch"
11 changes: 0 additions & 11 deletions recipes/compute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,6 @@

include_recipe "nova::libvirt"

# The bridge checksum issue is fixed with a fill-checksum
# rule in grizzly (also fixed in upstream libvirt), at least
# in ubuntu

execute "remove vhost-net module" do
command "rmmod vhost_net"
notifies :restart, "service[nova-compute]"
notifies :restart, "service[libvirt-bin]"
only_if { node["kernel"]["modules"].has_key?('vhost_net') and node["platform_family"] == "rhel" }
end

# Sysctl tunables
sysctl_multi "nova" do
instructions "net.ipv4.ip_forward" => "1"
Expand Down
2 changes: 1 addition & 1 deletion recipes/nova-common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"password" => keystone["users"][keystone["admin_user"]]["password"],
"keystone_auth_uri" => ks_internal_endpoint["uri"],
"nova_api_version" => "1.1",
"keystone_region" => node["nova"]["compute"]["region"],
"nova_region" => node["osops"]["region"],
"auth_strategy" => "keystone",
"ec2_url" => ec2_public_endpoint["uri"],
"ec2_access_key" => ec2_creds["EC2"][keystone['admin_user']]["access"],
Expand Down
7 changes: 7 additions & 0 deletions recipes/vncproxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,10 @@
owner "root"
group "root"
end

cookbook_file "/usr/share/novnc/favicon.ico" do
source "novncproxy.ico"
mode 0644
owner "root"
group "root"
end
21 changes: 20 additions & 1 deletion templates/default/nova.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ glance_api_servers=<%= @glance_serverlist %>
##### MISC #####
# force backing images to raw format
force_raw_images=<%= @force_raw_images %>
libvirt_images_type=<%= @libvirt_images_type %>
preallocate_images=<%= @preallocate_images %>
allow_same_net_traffic=<%= @allow_same_net_traffic %>
osapi_max_limit=<%= @osapi_max_limit %>
snapshot_image_format=<%= @snapshot_image_format %>
Expand All @@ -56,6 +58,7 @@ max_age=<%= @max_age %>
rpc_backend=nova.openstack.common.rpc.impl_kombu
<% if @force_config_drive -%>
force_config_drive=<%= @force_config_drive %>
config_drive_format=<%= @config_drive_format %>
<% end -%>
<% unless @memcached_servers.nil? -%>
memcached_servers=<%= @memcached_servers %>
Expand Down Expand Up @@ -103,6 +106,8 @@ cinder_catalog_info=<%= @cinder_catalog_info %>
##### API #####
ec2_workers=<%= node["nova"]["config"]["ec2_workers"] %>
osapi_compute_workers=<%= node["nova"]["config"]["osapi_compute_workers"] %>
metadata_listen=<%= @metadata_listen %>
metadata_listen_port=<%= @metadata_listen_port %>
metadata_workers=<%= node["nova"]["config"]["metadata_workers"] %>
osapi_volume_workers=<%= node["nova"]["config"]["osapi_volume_workers"] %>
osapi_compute_listen=<%= @osapi_compute_listen %>
Expand All @@ -119,7 +124,7 @@ ec2_private_dns_show_ip=True
<% if @iscsi_use_multipath == true -%>
##### EMC Multi-Path ####
libvirt_iscsi_use_multipath = "True"
<% end %>
<% end -%>

##### CEILOMETER #####
<% if @use_ceilometer.to_s.capitalize() == "True" -%>
Expand All @@ -130,3 +135,17 @@ notification_driver=ceilometer.compute.nova_notifier
<% else -%>
# disabled because ceilometer::ceilometer-compute is not in the run_list
<% end -%>

##### DATABASE CONNECTIONS #####
[DATABASE]
connection_debug=<%= @sql_connection_debug %>
idle_timeout=<%= @sql_idle_timeout %>
retry_interval=<%= @sql_retry_interval %>
max_retries=<%= @sql_max_retries %>
min_pool_size=<%= @sql_min_pool_size %>
<% if @sql_max_pool_size -%>
max_pool_size=<%= @sql_max_pool_size %>
<% end -%>
<% if @sql_max_overflow -%>
max_overflow=<%= @sql_max_overflow %>
<% end -%>
2 changes: 1 addition & 1 deletion templates/default/openrc.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export NOVA_PASSWORD=${OS_PASSWORD}
export NOVA_API_KEY=${OS_PASSWORD}
export NOVA_URL=${OS_AUTH_URL}
export NOVA_VERSION=<%= @nova_api_version %>
export NOVA_REGION_NAME=<%= @keystone_region %>
export NOVA_REGION_NAME=<%= @nova_region %>

# EUCA2OOLs ENV VARIABLES
export EC2_ACCESS_KEY=<%= @ec2_access_key %>
Expand Down
7 changes: 7 additions & 0 deletions templates/default/partials/compute-options.partial.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ libvirt_type=<%= @virt_type %>
libvirt_inject_key=<%= @libvirt_inject_key %>
libvirt_inject_password=<%= @libvirt_inject_password %>
libvirt_inject_partition=<%= @libvirt_inject_partition %>
<% if not @libvirt_cpu_mode.nil? -%>
libvirt_cpu_mode=<%= @libvirt_cpu_mode %>
<% end %>
<% if @libvirt_cpu_mode == "custom" and %w{kvm qemu}.include?(@virt_type) -%>
libvirt_cpu_model=<%= @libvirt_cpu_model %>
<% end %>
disk_cachemodes="<%= @disk_cachemodes.sort.join(',') %>"
block_migration_flag=<%= @block_migration_flag %>
<% end -%>
# Command prefix to use for running commands as root (default: sudo)
rootwrap_config=/etc/nova/rootwrap.conf
Expand Down
1 change: 1 addition & 0 deletions templates/default/partials/scheduler-options.partial.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ scheduler_weight_classes=<%= @scheduler_weight_classes %>
/all_weighers/.match(@scheduler_weight_classes) %>
ram_weight_multiplier=<%= @scheduler_ram_weight_multiplier %>
<%- end %>
scheduler_host_subset_size=<%= @scheduler_host_subset_size %>
default_availability_zone=<%= @availability_zone %>
default_schedule_zone=<%= @default_schedule_zone %>