Bug 1281870

Summary: Cinder error when CinderNfsMountOptions option is empty or absent
Product: Red Hat OpenStack Reporter: Pierre Blanc <pblanc>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: lkuchlan <lkuchlan>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 8.0 (Liberty)CC: achernet, djuran, hbrock, jcoufal, jschluet, mburns, rhel-osp-director-maint
Target Milestone: ga   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-0.8.8-1.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:42:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pierre Blanc 2015-11-13 16:24:54 UTC
Description of problem:

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 define to '', the deployment fails.

Version-Release number of selected component (if applicable):
Tested on rhel 7.1 with osp-d 7.1

How reproducible:

Deploy with NFS cinder backend, and customized the templates/environments/storage-environment.yaml with this option:

  #### CINDER NFS SETTINGS ####

  ## NFS mount options
  CinderNfsMountOptions: ''
  ## NFS mount point, e.g. '192.168.122.1:/export/cinder'
  CinderNfsServers: '<SERVER>:<PATH>'
 

Actual results:

Deployment failed with this error: 
Nov 13 10:34:10 overcloud-controller-0.localdomain os-collect-config[3952]: Error: Could not find data item cinder_nfs_mount_options in any Hiera data file and no default suppli
ed at /var/lib/heat-config/heat-config-puppet/435aaed1-ef71-42fb-ad51-fc1c11a74315.pp:805 on node overcloud-controller-0.localdomain

Expected results:

A successful deployment.

Comment 5 lkuchlan 2016-03-08 10:10:49 UTC
Tested using:
openstack-tripleo-heat-templates-0.8.9-1.el7ost.noarch

Verification instructions:

Deploy with NFS cinder backend, and customized the templates/environments/storage-environment.yaml with this option:

#### CINDER NFS SETTINGS ####

  ## NFS mount options
  CinderNfsMountOptions: ''
  ## NFS mount point, e.g. '192.168.122.1:/export/cinder'
  CinderNfsServers: '10.35.160.111:/export/liron'

Result:

The deployment was finished successfully

Comment 7 errata-xmlrpc 2016-04-07 21:42:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0604.html