6e7c0b6a94
The ceph-loop-device role was changed [1] to create an LVM structure on the loop device but only for versions which can use that structure for bluestore. However, the zuul.branch variable doesn't work as expected to differentiate versions so remove the code that uses it. In place of switching on the version create two loop devices, then legacy jobs which don't support LVM can use the loop device without LVM. Call the legacy loop device /dev/loop3 so older jobs get the expected name. [1] https://review.openstack.org/#/c/637196 Change-Id: I778bf3d78ccf492e852a2c932ccd5e8266bcfe71 Related-Bug: #1817688 |
||
---|---|---|
.. | ||
defaults | ||
tasks | ||
README.rst |
README.rst
ceph-loop-device
This roles creates the /dev/loop3 and /dev/loop4 (default) loop devices required when you have Ceph services in the deployment. The first device is used for legacy jobs which use Ceph Filestore. The second loop device has three logical volumes created on it for use with Ceph Bluestore.
Role Variables
ceph_loop_device: /dev/loop4 ceph_loop_device_legacy: /dev/loop3 ceph_loop_device_file: /var/lib/ceph-osd.img ceph_loop_device_file_legacy: /var/lib/ceph-osd-legacy.img ceph_logical_volume_group: ceph_vg ceph_logical_volume_wal: ceph_lv_wal ceph_logical_volume_db: ceph_lv_db ceph_logical_volume_data: ceph_lv_data
Requirements
- ansible >= 2.4
- python >= 2.6
Dependencies
None
Example Playbooks
- hosts: localhost
roles:
- ceph-loop-device
License
Apache 2.0