Role os_cinder for OpenStack-Ansible
1e2e15ee87
The current configuration of LVM for cinder-volume has udev_sync=0. This means that udev is not creating the devices that appear in /dev. The device files created reference specific device numbers, and these persist between reboots. When the host is rebooted there is no guarantee that device numbers allocated to the logical volumes will match those defined in the device files. This can be observed by comparing the output of 'dmsetup info' and 'ls -l /dev/mapper'. LVM's use of udev was disabled in an attempt to protect the host from the potential that uevents generated would be processed by all containers on the host. In practise this should not be an issue because there are not other containers running on a cinder host. This commit adjusts the lvm.conf file created so that udev is used. It also adds a mount entry to create a devtmpfs on /dev. Finally 'udevadm trigger' is run to add the devices under /dev/mapper. Closes-Bug: #1436999 Change-Id: I9ab35cf4438a369563f8c08870c1acfd0cc394b0 |
||
---|---|---|
defaults | ||
files | ||
handlers | ||
meta | ||
tasks | ||
templates | ||
CONTRIBUTING.rst | ||
LICENSE | ||
README.rst |
OpenStack cinder
- tags
-
openstack, cinder, cloud, ansible
- category
-
*nix
Role for deployment, setup and installation of cinder.
- This role will install the following:
-
- cinder-api
- cinder-volume
- cinder-scheduler
- name: Installation and setup of cinder
hosts: cinder_all
user: root
roles:
- { role: "os_cinder", tags: [ "os-cinder" ] }
vars:
galera_address: "{{ internal_lb_vip_address }}"