Update for f29
In Fedora 29 dstat was merged with pcp-system-tools (see
https://pagure.io/fesco/issue/1956)
Work around a iscsi bug with external packages until we can get the
package fixed.
Obsolete F27
Change-Id: I2f16658c5a3e22cac70912a0f3ad65cdd7071a1e
diff --git a/lib/nova b/lib/nova
index 22f0706..c8e6164 100644
--- a/lib/nova
+++ b/lib/nova
@@ -296,6 +296,16 @@
fi
fi
+ if is_fedora; then
+ # There is an iscsi-initiator bug where it inserts
+ # different whitespace that causes a bunch of output
+ # matching to fail. We have not been able to get
+ # fixed, yet :/ Exists in fedora 29 & 30
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1676365
+ sudo dnf copr enable -y iwienand/iscsi-initiator-utils
+ sudo dnf update -y
+ fi
+
if [[ ${ISCSID_DEBUG} == "True" ]]; then
# Install an override that starts iscsid with debugging
# enabled.