From 29ab9b8e3065488842a2477a8a8c48020d955094 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Tue, 22 Jan 2019 16:23:42 +0100 Subject: [PATCH] Always start iscsid for nova-compute Recently iscsid was disabled by default on Ubuntu 18.04 (bionic), and it may be on Xenial too, see: https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1755858 On a local Bionic deployment with Python 3, the lack of iscsid makes nova-compute fail with an exception when trying to attach a volume: Invalid input received: Connector doesn't have required information: initiator Asking for the service to be started even if it is already running should not hurt, so remove the check for the distribution. This does not seem to be an issue on CentOS 7 (but Python 2) where the socket activation of iscsid seems to work, so maybe there is another way to make this working. Also, the service could be enabled, not just started. Change-Id: Ifa995dcf8eb930e959f54e96af6f5fce3eac28ae --- lib/nova | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/nova b/lib/nova index 199550bf03..0b08c0ac6c 100644 --- a/lib/nova +++ b/lib/nova @@ -327,10 +327,8 @@ function configure_nova { sudo chown -R $STACK_USER $NOVA_INSTANCES_PATH fi fi - if is_suse; then - # iscsid is not started by default - start_service iscsid - fi + # ensure that iscsid is started, even when disabled by default + start_service iscsid fi # Rebuild the config file from scratch