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
51 shell: ls /var/lib/ceph/osd | awk 'BEGIN { FS = "-" } ; { print $2 }'
53 # "so that mirrors aren't rebalanced as if the OSD died" - gfidente / leseb
54 - name: ceph osd set noout
56 command: ceph osd set noout
57 - name: ceph osd set norebalance
59 command: ceph osd set norebalance
60 - name: ceph osd set nodeep-scrub
62 command: ceph osd set nodeep-scrub
63 - name: ceph osd set noscrub
65 command: ceph osd set noscrub
68 service: name=ceph-osd@$item state=stopped
69 with_items: "{{osd_ids.stdout.strip().split()}}"
70 - name: Update ceph OSD packages
72 yum: name=ceph-osd state=latest
73 - name: Start ceph-osd service
75 service: name=ceph-osd@$item state=started
76 with_items: "{{osd_ids.stdout.strip().split()}}"
77 - name: ceph osd unset noout
79 command: ceph osd unset noout
80 - name: ceph osd unset norebalance
82 command: ceph osd unset norebalance
83 - name: ceph osd unset nodeep-scrub
85 command: ceph osd unset nodeep-scrub
86 - name: ceph osd unset noscrub
88 command: ceph osd unset noscrub