1 heat_template_version: ocata
4 OpenStack Cinder Volume service configured with Puppet
7 CinderEnableNfsBackend:
9 description: Whether to enable or not the NFS backend for Cinder
11 CinderEnableIscsiBackend:
13 description: Whether to enable or not the Iscsi backend for Cinder
15 CinderEnableRbdBackend:
17 description: Whether to enable or not the Rbd backend for Cinder
21 description: The iSCSI helper to use with cinder.
25 description: Whether to use TCP ('iscsi') or iSER RDMA ('iser') for iSCSI
27 CinderLVMLoopDeviceSize:
29 description: The size of the loopback file used by the cinder LVM driver.
31 CinderNfsMountOptions:
34 Mount options for NFS mounts used by Cinder NFS backend. Effective
35 when CinderEnableNfsBackend is true.
40 NFS servers used by Cinder NFS backend. Effective when
41 CinderEnableNfsBackend is true.
42 type: comma_delimited_list
51 description: Mapping of service_name -> network name. Typically set
52 via parameter_defaults in the resource registry. This
53 mapping overrides those in ServiceNetMapDefaults.
60 description: Mapping of service endpoint -> protocol. Typically set
61 via parameter_defaults in the resource registry.
63 MonitoringSubscriptionCinderVolume:
64 default: 'overcloud-cinder-volume'
66 CinderVolumeLoggingSource:
69 tag: openstack.cinder.volume
70 path: /var/log/cinder/cinder-volume.log
75 type: ./cinder-base.yaml
77 ServiceNetMap: {get_param: ServiceNetMap}
78 DefaultPasswords: {get_param: DefaultPasswords}
79 EndpointMap: {get_param: EndpointMap}
83 description: Role data for the Cinder Volume role.
85 service_name: cinder_volume
86 monitoring_subscription: {get_param: MonitoringSubscriptionCinderVolume}
87 logging_source: {get_param: CinderVolumeLoggingSource}
92 - get_attr: [CinderBase, role_data, config_settings]
93 - tripleo::profile::base::cinder::volume::cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend}
94 tripleo::profile::base::cinder::volume::cinder_enable_nfs_backend: {get_param: CinderEnableNfsBackend}
95 tripleo::profile::base::cinder::volume::cinder_enable_rbd_backend: {get_param: CinderEnableRbdBackend}
96 tripleo::profile::base::cinder::volume::nfs::cinder_nfs_mount_options: {get_param: CinderNfsMountOptions}
97 tripleo::profile::base::cinder::volume::nfs::cinder_nfs_servers:
101 SERVERS: {get_param: CinderNfsServers}
102 tripleo::profile::base::cinder::volume::iscsi::cinder_lvm_loop_device_size: {get_param: CinderLVMLoopDeviceSize}
103 tripleo::profile::base::cinder::volume::iscsi::cinder_iscsi_helper: {get_param: CinderISCSIHelper}
104 tripleo::profile::base::cinder::volume::iscsi::cinder_iscsi_protocol: {get_param: CinderISCSIProtocol}
105 tripleo::profile::base::cinder::volume::rbd::cinder_rbd_pool_name: {get_param: CinderRbdPoolName}
106 tripleo::profile::base::cinder::volume::rbd::cinder_rbd_user_name: {get_param: CephClientUserName}
107 tripleo.cinder_volume.firewall_rules:
108 '120 iscsi initiator':
110 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
111 # for the given network; replacement examples (eg. for internal_api):
113 # internal_api_uri -> [IP]
114 # internal_api_subnet - > IP/CIDR
115 tripleo::profile::base::cinder::volume::iscsi::cinder_iscsi_address: {get_param: [ServiceNetMap, CinderIscsiNetwork]}
117 include ::tripleo::profile::base::cinder::volume
119 - name: Check if cinder_volume is deployed
120 command: systemctl is-enabled openstack-cinder-volume
123 register: cinder_volume_enabled
124 - name: "PreUpgrade step0,validation: Check service openstack-cinder-volume is running"
125 shell: /usr/bin/systemctl show 'openstack-cinder-volume' --property ActiveState | grep '\bactive\b'
126 when: cinder_volume_enabled.rc == 0
127 tags: step0,validation
128 - name: Stop cinder_volume service
130 when: cinder_volume_enabled.rc == 0
131 service: name=openstack-cinder-volume state=stopped