Skip to content
Snippets Groups Projects
Commit 3a815721 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Fix udev cinder issue"

parents 42c8fec7 3cd5eec2
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,8 @@
volumes:
- "{{ node_config_directory }}/cinder-volume/:{{ container_config_directory }}/:ro"
- "/var/lib/kolla/dev/log:/dev/log"
- /dev/:/dev/
- /run/:/run/
env:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
when: inventory_hostname in groups['cinder-volume']
......@@ -9,12 +9,7 @@ RUN yum -y install openstack-cinder \
lvm2 \
ceph-common \
&& yum clean all \
&& mkdir -p /etc/ceph \
&& sed -i "s|udev_rules = 1|udev_rules = 0|g" /etc/lvm/lvm.conf \
&& sed -i "s|udev_sync = 1|udev_sync = 0|g" /etc/lvm/lvm.conf
# NOTE(sdake): The sed operations make LVM tools work inside a container - see
# https://groups.google.com/forum/#!topic/docker-user/n4Xtvsb4RAw
&& mkdir -p /etc/ceph
{% endif %}
{% elif install_type == 'source' %}
......@@ -39,11 +34,6 @@ RUN ln -s cinder-base-source/* cinder \
&& pip --no-cache-dir install -c requirements/upper-constraints.txt /cinder \
&& mkdir -p /etc/cinder /var/log/cinder /home/cinder \
&& cp -r /cinder/etc/cinder/* /etc/cinder/ \
&& chown -R cinder: /etc/cinder /var/log/cinder /home/cinder \
&& sed -i "s|udev_rules = 1|udev_rules = 0|g" /etc/lvm/lvm.conf \
&& sed -i "s|udev_sync = 1|udev_sync = 0|g" /etc/lvm/lvm.conf
# NOTE(sdake): The sed operations make LVM tools work inside a container - see
# https://groups.google.com/forum/#!topic/docker-user/n4Xtvsb4RAw
&& chown -R cinder: /etc/cinder /var/log/cinder /home/cinder
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment