Skip to content

Commit

Permalink
Remove cpu_mode option in Nova configuration
Browse files Browse the repository at this point in the history
The nova code already detects and defaults the cpu_mode, so remove the value
from defaults and template to let Nova do the right things.

If a deploy wants to change this setting, they can then use the config override
mechanism to do so.

Change-Id: I930582092d2c9eefc57e54b8620a80da3c35ef37
Closes-bug: #1679707
  • Loading branch information
Duong Ha-Quang committed Jun 5, 2017
1 parent 3fe7e81 commit 27872a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion defaults/main.yml
Expand Up @@ -312,7 +312,6 @@ nova_external_ssl: false
nova_secure_proxy_ssl_header: HTTP_X_FORWARDED_PROTO

## Nova global config
nova_cpu_mode: host-model
nova_linuxnet_interface_driver: nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver


Expand Down
@@ -0,0 +1,6 @@
---
deprecations:
- |
The ``nova_cpu_mode`` Ansible variable has been removed to allow
Nova to detect the default value automatically. Hard-coded values
can cause problems.
1 change: 0 additions & 1 deletion templates/nova.conf.j2
Expand Up @@ -258,7 +258,6 @@ inject_partition = {{ nova_libvirt_inject_partition }}
inject_password = {{ nova_libvirt_inject_password }}
inject_key = {{ nova_libvirt_inject_key }}
use_virtio_for_bridges = True
cpu_mode = {{ nova_cpu_mode }}
virt_type = {{ nova_virt_type }}
remove_unused_resized_minimum_age_seconds = {{ nova_remove_unused_resized_minimum_age_seconds }}

Expand Down

0 comments on commit 27872a8

Please sign in to comment.