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: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
25 description: The Ceph monitors key. Can be created with ceph-authtool --gen-print-key.
31 ManilaCephFSDataPoolName:
34 ManilaCephFSMetadataPoolName:
35 default: manila_metadata
37 CinderBackupRbdPoolName:
51 It can be used to override settings for one of the predefined pools, or to create
52 additional ones. Example:
62 CephValidationRetries:
65 description: Number of retry attempts for Ceph validation
69 description: Interval (in seconds) in between validation checks
70 MonitoringSubscriptionCephMon:
71 default: 'overcloud-ceph-mon'
76 type: ./ceph-base.yaml
78 ServiceNetMap: {get_param: ServiceNetMap}
79 DefaultPasswords: {get_param: DefaultPasswords}
80 EndpointMap: {get_param: EndpointMap}
84 description: Role data for the Ceph Monitor service.
86 service_name: ceph_mon
87 monitoring_subscription: {get_param: MonitoringSubscriptionCephMon}
90 - get_attr: [CephBase, role_data, config_settings]
91 - ceph::profile::params::ms_bind_ipv6: {get_param: CephIPv6}
92 ceph::profile::params::mon_key: {get_param: CephMonKey}
93 ceph::profile::params::osd_pool_default_pg_num: 32
94 ceph::profile::params::osd_pool_default_pgp_num: 32
95 ceph::profile::params::osd_pool_default_size: 3
96 # repeat returns items in a list, so we need to map_merge twice
97 tripleo::profile::base::ceph::mon::ceph_pools:
103 - {get_param: CinderRbdPoolName}
104 - {get_param: ManilaCephFSDataPoolName}
105 - {get_param: ManilaCephFSMetadataPoolName}
106 - {get_param: CinderBackupRbdPoolName}
107 - {get_param: NovaRbdPoolName}
108 - {get_param: GlanceRbdPoolName}
109 - {get_param: GnocchiRbdPoolName}
112 pg_num: "%{hiera('ceph::profile::params::osd_pool_default_pg_num')}"
113 pgp_num: "%{hiera('ceph::profile::params::osd_pool_default_pgp_num')}"
114 size: "%{hiera('ceph::profile::params::osd_pool_default_size')}"
115 - {get_param: CephPools}
116 tripleo.ceph_mon.firewall_rules:
120 service_config_settings:
121 get_attr: [CephBase, role_data, service_config_settings]
123 include ::tripleo::profile::base::ceph::mon
125 # Note we perform these tasks in list order, but they are all step0 so
126 # we can perform a rolling upgrade of all mon nodes in step0, then a
127 # rolling upgrade of all osd nodes in step1
129 tags: step0,validation
130 shell: ceph health | egrep -sq "HEALTH_OK|HEALTH_WARN"
134 name: ceph-mon@{{ ansible_hostname }}
136 - name: Update Ceph packages
141 - name: Start CephMon
144 name: ceph-mon@{{ ansible_hostname }}
147 # https://github.com/ceph/ceph-ansible/blob/master/infrastructure-playbooks/rolling_update.yml#L149-L157
148 - name: Wait for the monitor to join the quorum...
149 tags: step0,ceph_quorum_validation
151 ceph -s | grep monmap | sed 's/.*quorum//' | egrep -sq {{ ansible_hostname }}
152 register: ceph_quorum_nodecheck
153 until: ceph_quorum_nodecheck.rc == 0
154 retries: {get_param: CephValidationRetries}
155 delay: {get_param: CephValidationDelay}
156 - name: ceph osd crush tunables default
158 shell: ceph osd crush tunables default