Role os_cinder for OpenStack-Ansible
Go to file
git-harry 1e2e15ee87 Enable udev for lvm in cinder-volume container
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
2015-06-10 01:57:53 +00:00
defaults Update cinder.conf for cinder-backup 2015-04-29 15:10:32 -05:00
files Update cinder services to kilo 2015-04-03 18:03:17 +00:00
handlers Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
meta added role to pin packages 2015-05-08 13:22:42 -05:00
tasks Applying copy_update to all policy.json files 2015-04-17 20:22:28 +00:00
templates Enable udev for lvm in cinder-volume container 2015-06-10 01:57:53 +00:00
CONTRIBUTING.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00

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 }}"