Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Add param for RBD disk cache modes"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jun 6, 2021
2 parents db95929 + 8a3cf6a commit ef63ee4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
9 changes: 8 additions & 1 deletion deployment/nova/nova-compute-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,12 @@ parameters:
description: The name of the stack/plan.
type: string

RbdDiskCachemodes:
type: comma_delimited_list
default: ['network=writeback']
description: >
Disk cachemodes for RBD backend.
parameter_groups:
- label: deprecated
description: |
Expand Down Expand Up @@ -1081,6 +1087,7 @@ outputs:
- {get_param: CephClientUserName}
tripleo::profile::base::nova::compute::cinder_nfs_backend: {get_param: CinderEnableNfsBackend}
rbd_persistent_storage: {get_param: CinderEnableRbdBackend}
rbd_disk_cachemodes: {get_param: RbdDiskCachemodes}
nova::keystone::authtoken::project_name: 'service'
nova::keystone::authtoken::user_domain_name: 'Default'
nova::keystone::authtoken::project_domain_name: 'Default'
Expand All @@ -1103,7 +1110,7 @@ outputs:
nova::compute::live_migration_wait_for_vif_plug: {get_param: NovaLiveMigrationWaitForVIFPlug}
nova::migration::libvirt::live_migration_permit_post_copy:
if:
- permit_post_copy_set
- permit_post_copy_set
- {get_attr: [RoleParametersValue, value, nova_permit_post_copy]}
- if:
- live_migration_optimization_set
Expand Down
8 changes: 7 additions & 1 deletion deployment/nova/nova-libvirt-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ parameters:
description: >
Setting this to a unique value will re-run any deployment tasks which
perform configuration on a Heat stack-update.
RbdDiskCachemodes:
type: comma_delimited_list
default: ['network=writeback']
description: >
Disk cachemodes for RBD backend.
conditions:
use_tls_for_live_migration:
Expand Down Expand Up @@ -364,7 +369,7 @@ resources:
VhostuserSocketGroup: {get_param: VhostuserSocketGroup}
QemuMemoryBackingDir: {get_param: QemuMemoryBackingDir}
NovaLibvirtOptVolumes: {get_param: NovaLibvirtOptVolumes}

ContainersCommon:
type: ../containers-common.yaml

Expand Down Expand Up @@ -447,6 +452,7 @@ outputs:
nova::compute::libvirt::log_filters: {get_param: LibvirtLogFilters}
nova::compute::libvirt::virtlogd::log_filters: {get_param: LibvirtVirtlogdLogFilters}
rbd_persistent_storage: {get_param: CinderEnableRbdBackend}
rbd_disk_cachemodes: {get_param: RbdDiskCachemodes}
- if:
- use_tls_for_live_migration
- tripleo::profile::base::nova::migration::client::libvirt_tls: true
Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/rbd-disk-cache-modes-284a73271741ea62.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
features:
- |
New parameter `RbdDiskCachemodes` allows to override
the disk cache modes for RBD. Defaults to ['network=writeback'].

0 comments on commit ef63ee4

Please sign in to comment.