Bug 1298875

Summary: Configuring Ceph Storage ExtraConfig params::osds in storage-environment.yaml
Product: Red Hat OpenStack Reporter: gaelL <glambert>
Component: openstack-tripleo-heat-templatesAssignee: Sébastien Han <shan>
Status: CLOSED NOTABUG QA Contact: Yogev Rabl <yrabl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: dh3, jcoufal, johfulto, jomurphy, mburns, rhel-osp-director-maint, sankarshan
Target Milestone: ---   
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-12 15:36:06 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:

Description gaelL 2016-01-15 10:45:28 UTC
I have a very simple virtual deployment in 7.2, using default templates for a lab. (1 controller, 1 compute, X ceph)

Looking at the official documentation (6.3.5. Configuring Ceph Storage) : https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html/Director_Installation_and_Usage/sect-Advanced-Scenario_3_Using_the_CLI_to_Create_an_Advanced_Overcloud_with_Ceph_Nodes.html#sect-Advanced-Configuring_Ceph_Storage

I tried to use the ExtraConfig for ceph OSD.


editing : /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml to add ExtraConfig for OSD
(Note : keeping the openstack-tripleo-heat-templates to avoid path mistake to debug this issue)

	# grep -Ev '^(( +)?#.*|)$' /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml
	parameters:
	  CinderEnableIscsiBackend: false
	  CinderEnableRbdBackend: true
	  NovaEnableRbdBackend: true
	  GlanceBackend: rbd
	parameter_defaults:
	  ExtraConfig:
		ceph::profile::params::osds:
		    '/srv/data': {}
		    '/srv/data2': {}

(adding /srv/data2)

Regarding the default value of ceph::profile::params::osds in .../puppet/hieradata/ceph.yaml
	ceph::profile::params::osds: {/srv/data: {}}

At the end, I still have the default value on my ceph nodes : (also in /var/lib/os-collect-config/cfn.json)
	[root@overcloud-cephstorage-0 srv]# grep -rn ceph::profile::params::osds /etc/puppet/
	/etc/puppet/hieradata/ceph.yaml:6:ceph::profile::params::osds: {/srv/data: {}}


The ExtraConfig/ceph::profile::params::osds present in my storage-environment.yaml file seems to be ignored.
I'm expected to have my both OSD directory.
The behavior is not the same as describe in the doc. Did I miss something ?


Additional informations :

This is my deploy command :
	openstack overcloud deploy --templates -e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml --control-scale 1 --compute-scale 1 --control-flavor baremetal --ceph-storage-scale 5 --ceph-storage-flavor baremetal --compute-flavor baremetal --libvirt-type qemu

It's work if you modify directly the .../puppet/hieradata/ceph.yaml.

Comment 2 Mike Burns 2016-04-07 21:03:37 UTC
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.

Comment 5 John Fulton 2016-10-12 15:36:06 UTC
This supported in OSP8 and newer only. The bug is opened in OSP7 so it's working as expected. If you have reproduced this on a newer version then please re-open.