Fail on upgrade if legacy ceph::profile::params::osds hiera is found

We should stop the deployment if there is certain stale puppet-ceph
hieradata because if it isn't converted into ceph-ansible variables
the latter could break the deployment using wrong defaults.

Change-Id: Ice2e79a4a3b9a2427b706ec888d6bb8bcca2c542
Related-Bug: #1723085
This commit is contained in:
Giulio Fidente 2017-11-09 11:09:37 +01:00
parent 3bf720ee11
commit ee10ae9f6e

View File

@ -55,7 +55,10 @@ outputs:
description: Role data for the Ceph OSD service.
value:
service_name: ceph_osd
upgrade_tasks: []
upgrade_tasks:
- name: Check legacy Ceph hieradata
tags: step0,validation
shell: test "nil" == "$(hiera -c /etc/puppet/hiera.yaml ceph::profile::params::osds)"
step_config: ''
puppet_config:
config_image: ''