diff --git a/defaults/main.yml b/defaults/main.yml index d2579983..77e84438 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -312,6 +312,7 @@ nova_pip_packages: - python-novaclient - keystonemiddleware - nova + - python-cephlibs ## Tunable overrides diff --git a/tasks/nova_compute_kvm_install.yml b/tasks/nova_compute_kvm_install.yml index 67c74fbc..ba2564ac 100644 --- a/tasks/nova_compute_kvm_install.yml +++ b/tasks/nova_compute_kvm_install.yml @@ -77,28 +77,6 @@ - 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 }}"