1 heat_template_version: ocata
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
33 description: The Ceph monitors key. Can be created with ceph-authtool --gen-print-key.
39 ManilaCephFSDataPoolName:
42 ManilaCephFSMetadataPoolName:
43 default: manila_metadata
45 CinderBackupRbdPoolName:
59 It can be used to override settings for one of the predefined pools, or to create
60 additional ones. Example:
70 CephValidationRetries:
73 description: Number of retry attempts for Ceph validation
77 description: Interval (in seconds) in between validation checks
78 MonitoringSubscriptionCephMon:
79 default: 'overcloud-ceph-mon'
84 type: ./ceph-base.yaml
86 ServiceNetMap: {get_param: ServiceNetMap}
87 DefaultPasswords: {get_param: DefaultPasswords}
88 EndpointMap: {get_param: EndpointMap}
89 RoleName: {get_param: RoleName}
90 RoleParameters: {get_param: RoleParameters}
94 description: Role data for the Ceph Monitor service.
96 service_name: ceph_mon
97 monitoring_subscription: {get_param: MonitoringSubscriptionCephMon}
100 - get_attr: [CephBase, role_data, config_settings]
101 - ceph::profile::params::ms_bind_ipv6: {get_param: CephIPv6}
102 ceph::profile::params::mon_key: {get_param: CephMonKey}
103 ceph::profile::params::osd_pool_default_pg_num: 32
104 ceph::profile::params::osd_pool_default_pgp_num: 32
105 ceph::profile::params::osd_pool_default_size: 3
106 # repeat returns items in a list, so we need to map_merge twice
107 tripleo::profile::base::ceph::mon::ceph_pools:
113 - {get_param: CinderRbdPoolName}
114 - {get_param: ManilaCephFSDataPoolName}
115 - {get_param: ManilaCephFSMetadataPoolName}
116 - {get_param: CinderBackupRbdPoolName}
117 - {get_param: NovaRbdPoolName}
118 - {get_param: GlanceRbdPoolName}
119 - {get_param: GnocchiRbdPoolName}
122 pg_num: "%{hiera('ceph::profile::params::osd_pool_default_pg_num')}"
123 pgp_num: "%{hiera('ceph::profile::params::osd_pool_default_pgp_num')}"
124 size: "%{hiera('ceph::profile::params::osd_pool_default_size')}"
125 - {get_param: CephPools}
126 tripleo.ceph_mon.firewall_rules:
130 service_config_settings:
131 get_attr: [CephBase, role_data, service_config_settings]
133 include ::tripleo::profile::base::ceph::mon
135 # Note we perform these tasks in list order, but they are all step0 so
136 # we can perform a rolling upgrade of all mon nodes in step0, then a
137 # rolling upgrade of all osd nodes in step1
139 tags: step0,validation
140 shell: ceph health | egrep -sq "HEALTH_OK|HEALTH_WARN"
144 name: ceph-mon@{{ ansible_hostname }}
146 - name: Update Ceph packages
151 - name: Start CephMon
154 name: ceph-mon@{{ ansible_hostname }}
157 # https://github.com/ceph/ceph-ansible/blob/master/infrastructure-playbooks/rolling_update.yml#L149-L157
158 - name: Wait for the monitor to join the quorum...
159 tags: step0,ceph_quorum_validation
161 ceph -s | grep monmap | sed 's/.*quorum//' | egrep -sq {{ ansible_hostname }}
162 register: ceph_quorum_nodecheck
163 until: ceph_quorum_nodecheck.rc == 0
164 retries: {get_param: CephValidationRetries}
165 delay: {get_param: CephValidationDelay}
166 - name: ceph osd crush tunables default
168 shell: ceph osd crush tunables default