Merge "Symlink ceph libraries out of venv"

This commit is contained in:
Jenkins 2015-11-05 18:17:33 +00:00 committed by Gerrit Code Review
commit 921fd0e9dd
3 changed files with 66 additions and 0 deletions

View File

@ -124,6 +124,28 @@
- cinder-install
- cinder-pip-packages
# TODO(mattt): remove once ceph_client role can install ceph packages from pypi
# This is being done as a temporary workaround since we currently cannot obtain
# ceph-related libraries from pypi. There is work in progress [1] to address
# this.
# [1] http://tracker.ceph.com/issues/5900
- name: Link ceph libraries into the venv
file:
src: "{{ item.name }}"
dest: "{{ cinder_venv_bin | dirname }}/lib/python2.7/site-packages/{{ item.name | basename }}"
state: "{{ item.state }}"
force: "yes"
with_items:
- { state: link, name: "/usr/lib/python2.7/dist-packages/rados.py" }
- { state: link, name: "/usr/lib/python2.7/dist-packages/rbd.py" }
when:
- cinder_venv_enabled | bool
- inventory_hostname in groups['cinder_volume']
- cinder_backend_rbd_inuse|bool
tags:
- cinder-install
- cinder-pip-packages
- name: Install pip packages (no venv)
pip:
name: "{{ item }}"

View File

@ -124,6 +124,28 @@
- glance-install
- glance-pip-packages
# TODO(mattt): remove once ceph_client role can install ceph packages from pypi
# This is being done as a temporary workaround since we currently cannot obtain
# ceph-related libraries from pypi. There is work in progress [1] to address
# this.
# [1] http://tracker.ceph.com/issues/5900
- name: Link ceph libraries into the venv
file:
src: "{{ item.name }}"
dest: "{{ glance_venv_bin | dirname }}/lib/python2.7/site-packages/{{ item.name | basename }}"
state: "{{ item.state }}"
force: "yes"
with_items:
- { state: link, name: "/usr/lib/python2.7/dist-packages/rados.py" }
- { state: link, name: "/usr/lib/python2.7/dist-packages/rbd.py" }
when:
- glance_venv_enabled | bool
- inventory_hostname in groups['glance_api']
- glance_default_store == 'rbd'
tags:
- glance-install
- glance-pip-packages
- name: Install pip packages (no venv)
pip:
name: "{{ item }}"

View File

@ -77,6 +77,28 @@
- nova-install
- nova-pip-packages
# TODO(mattt): remove once ceph_client role can install ceph packages from pypi
# This is being done as a temporary workaround since we currently cannot obtain
# ceph-related libraries from pypi. There is work in progress [1] to address
# this.
# [1] http://tracker.ceph.com/issues/5900
- name: Link ceph libraries into the venv
file:
src: "{{ item.name }}"
dest: "{{ nova_venv_bin | dirname }}/lib/python2.7/site-packages/{{ item.name | basename }}"
state: "{{ item.state }}"
force: "yes"
with_items:
- { state: link, name: "/usr/lib/python2.7/dist-packages/rados.py" }
- { state: link, name: "/usr/lib/python2.7/dist-packages/rbd.py" }
when:
- nova_venv_enabled | bool
- inventory_hostname in groups['nova_compute']
- (cinder_backends_rbd_inuse|bool or nova_libvirt_images_rbd_pool is defined)
tags:
- nova-install
- nova-pip-packages
- name: Install pip packages (no venv)
pip:
name: "{{ item }}"