Bug 1298875 - Configuring Ceph Storage ExtraConfig params::osds in storage-environment.yaml
Summary: Configuring Ceph Storage ExtraConfig params::osds in storage-environment.yaml
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 10.0 (Newton)
Assignee: Sébastien Han
QA Contact: Yogev Rabl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-15 10:45 UTC by gaelL
Modified: 2016-10-12 15:36 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-12 15:36:06 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.