Fix cinder error when CinderNfsMountOptions option is absent
authorPierre Blanc <pblanc@redhat.com>
Fri, 13 Nov 2015 16:28:54 +0000 (11:28 -0500)
committerPierre Blanc <pblanc@redhat.com>
Fri, 13 Nov 2015 16:28:54 +0000 (11:28 -0500)
When I deploy director with NFS backend for cinder,
sometimes I don't need nfs mount options.
If I choose to omit this option, or if the option
is defined to '', the deployment fails.

This patch add just a default value for this option.

Change-Id: Idf708aaecebd5c6db14f48ad2a53d6c2453be5ee
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1281870

puppet/manifests/overcloud_controller.pp
puppet/manifests/overcloud_controller_pacemaker.pp

index f1c24f0..34be39f 100644 (file)
@@ -381,7 +381,7 @@ if hiera('step') >= 3 {
     package {'nfs-utils': } ->
     cinder::backend::nfs { $cinder_nfs_backend :
       nfs_servers       => hiera('cinder_nfs_servers'),
-      nfs_mount_options => hiera('cinder_nfs_mount_options'),
+      nfs_mount_options => hiera('cinder_nfs_mount_options',''),
       nfs_shares_config => '/etc/cinder/shares-nfs.conf',
     }
   }
index 4f0dd72..6cfa13e 100644 (file)
@@ -757,7 +757,7 @@ if hiera('step') >= 3 {
     package { 'nfs-utils': } ->
     cinder::backend::nfs { $cinder_nfs_backend:
       nfs_servers       => hiera('cinder_nfs_servers'),
-      nfs_mount_options => hiera('cinder_nfs_mount_options'),
+      nfs_mount_options => hiera('cinder_nfs_mount_options',''),
       nfs_shares_config => '/etc/cinder/shares-nfs.conf',
     }
   }