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.
21 MonitoringSubscriptionCephOsd:
22 default: 'overcloud-ceph-osd'
27 type: ./ceph-base.yaml
29 ServiceNetMap: {get_param: ServiceNetMap}
30 DefaultPasswords: {get_param: DefaultPasswords}
31 EndpointMap: {get_param: EndpointMap}
35 description: Role data for the Cinder OSD service.
37 service_name: ceph_osd
38 monitoring_subscription: {get_param: MonitoringSubscriptionCephOsd}
41 - get_attr: [CephBase, role_data, config_settings]
42 - tripleo.ceph_osd.firewall_rules:
47 include ::tripleo::profile::base::ceph::osd
50 tags: step1,validation
51 shell: ceph health | grep -qv HEALTH_ERR
54 shell: ls /var/lib/ceph/osd | awk 'BEGIN { FS = "-" } ; { print $2 }'
56 # "so that mirrors aren't rebalanced as if the OSD died" - gfidente / leseb
57 - name: ceph osd set noout
59 command: ceph osd set noout
60 - name: ceph osd set norebalance
62 command: ceph osd set norebalance
63 - name: ceph osd set nodeep-scrub
65 command: ceph osd set nodeep-scrub
66 - name: ceph osd set noscrub
68 command: ceph osd set noscrub
71 service: name=ceph-osd@{{ item }} state=stopped
72 with_items: "{{osd_ids.stdout.strip().split()}}"
73 - name: Update ceph OSD packages
75 yum: name=ceph-osd state=latest
76 - name: Start ceph-osd service
78 service: name=ceph-osd@{{ item }} state=started
79 with_items: "{{osd_ids.stdout.strip().split()}}"
80 - name: ceph osd unset noout
82 command: ceph osd unset noout
83 - name: ceph osd unset norebalance
85 command: ceph osd unset norebalance
86 - name: ceph osd unset nodeep-scrub
88 command: ceph osd unset nodeep-scrub
89 - name: ceph osd unset noscrub
91 command: ceph osd unset noscrub