From 167737dd3de02057403fb458c50d22cf94a85b95 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 25 Sep 2019 14:20:48 +0200 Subject: [PATCH] iscsigw: install python-requests Typical error at rbd-target-api startup: ``` Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: Traceback (most recent call last): Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: File "/usr/bin/rbd-target-api", line 39, in Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: from gwcli.utils import (APIRequest, valid_gateway, valid_client, Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: File "/usr/lib/python2.7/site-packages/gwcli/utils.py", line 1, in Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: import requests Sep 25 12:12:29 iscsi-gw0 rbd-target-api[9959]: ImportError: No module named requests ``` Signed-off-by: Guillaume Abrioux --- roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml b/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml index 7c604330f..f2bcd2e81 100644 --- a/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml +++ b/roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml @@ -63,7 +63,9 @@ state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" register: result until: result is succeeded - with_items: "{{ ceph_iscsi_pkgs }}" + with_items: + - "{{ ceph_iscsi_pkgs }}" + - python-requests - name: check the status of the target.service override stat: