aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2019-01-18 00:09:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-18 00:09:02 +0000
commitdbe461f185aeed76c1a63b5302ff9b0f20952df6 (patch)
tree3ce93b62ef45b8bcefd2431ce39564dda00c3742
parent9f47d24dbb3852852a1ec73c8a987a67ff38a2dc (diff)
parent695b413f7e71d5fd506cc4b11d024f426583a2e2 (diff)
Merge "Enable statd service"
-rwxr-xr-xtools/setup.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/setup.sh b/tools/setup.sh
index 7a12825..d0bff67 100755
--- a/tools/setup.sh
+++ b/tools/setup.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
-# Copyright (c) 2017-2018
+# Copyright (c) 2017-2019
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
@@ -11,7 +11,7 @@
set -o nounset
set -o pipefail
-vagrant_version=2.2.0
+vagrant_version=2.2.3
if ! $(vagrant version &>/dev/null); then
enable_vagrant_install=true
else
@@ -177,9 +177,10 @@ modprobe vhost_net
${INSTALLER_CMD} ${packages[@]}
if ! which pip; then
curl -sL https://bootstrap.pypa.io/get-pip.py | sudo python
+else
+ sudo -H -E pip install --upgrade pip
fi
-sudo -H pip install --upgrade pip
-sudo -H pip install tox
+sudo -H -E pip install tox
if [[ ${http_proxy+x} ]]; then
vagrant plugin install vagrant-proxyconf
fi
@@ -187,5 +188,10 @@ if [ $VAGRANT_DEFAULT_PROVIDER == libvirt ]; then
vagrant plugin install vagrant-libvirt
sudo usermod -a -G $libvirt_group $USER # This might require to reload user's group assigments
sudo systemctl restart libvirtd
+
+ # Start statd service to prevent NFS lock errors
+ sudo systemctl enable rpc-statd
+ sudo systemctl start rpc-statd
+
kvm-ok
fi