Skip to content

Commit

Permalink
Fixes config vars in nova.conf
Browse files Browse the repository at this point in the history
Closes #144
  • Loading branch information
auniyal61 committed Jul 30, 2024
1 parent 232a1f1 commit 8d3a6ed
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions templates/nova.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# overall then serializing live migrations so set this to 1 explictly
max_concurrent_live_migrations=1
state_path = /var/lib/nova
{{if eq .service_name "nova-api"}}
allow_resize_to_same_host = true
{{end}}
# enable log rotation in oslo config by default
max_logfile_count=1
max_logfile_size_mb=20
Expand All @@ -25,13 +27,12 @@ instance_usage_audit_period = hour
initial_cpu_allocation_ratio=4.0
initial_ram_allocation_ratio=1.0
initial_disk_allocation_ratio=0.9
{{end}}
{{/*using a config drive will void issues with ovn and metadata*/}}
force_config_drive=True
{{end}}
{{ if (index . "transport_url") }}
transport_url={{.transport_url}}
{{end}}

{{if eq .service_name "nova-api"}}
# scaling should be done by running more pods
osapi_compute_workers=1
Expand All @@ -41,7 +42,6 @@ enabled_apis=osapi_compute
metadata_workers=1
enabled_apis=metadata
{{end}}

{{if eq .service_name "nova-novncproxy"}}
{{ if (index . "SSLCertificateFile") }}
ssl_only=true
Expand Down Expand Up @@ -182,19 +182,22 @@ tls_enabled={{ .MemcachedTLS }}
backend = oslo_cache.dict
{{end}}

{{ if eq .service_name "nova-scheduler"}}
[workarounds]
disable_fallback_pcpu_query=true
{{end}}
{{ if eq .service_name "nova-compute"}}
[workarounds]
enable_qemu_monitor_announce_self=true
reserve_disk_resource_for_image_cache=true

# NOTE(gibi): We need this as live migration does not work with
# cpu_mode=host-model . See https://bugs.launchpad.net/nova/+bug/2039803
skip_cpu_compare_on_dest = true

{{end}}

{{ if eq .service_name "nova-compute"}}

{{ if eq .service_name "nova-compute" }}
{{ if eq .compute_driver "libvirt.LibvirtDriver" }}
[libvirt]
live_migration_permit_post_copy=true
live_migration_permit_auto_converge=true
Expand All @@ -211,6 +214,7 @@ volume_use_multipath=true
live_migration_uri = qemu+ssh://nova@%s/system?keyfile=/var/lib/nova/.ssh/ssh-privatekey
cpu_power_management=true
{{end}}
{{end}}

{{if (index . "cell_db_address")}}
[database]
Expand Down

0 comments on commit 8d3a6ed

Please sign in to comment.