aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/k8splugin/rb/definition.go6
-rwxr-xr-xvagrant/setup.sh5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/k8splugin/rb/definition.go b/src/k8splugin/rb/definition.go
index eb7a12fc..91419bf1 100644
--- a/src/k8splugin/rb/definition.go
+++ b/src/k8splugin/rb/definition.go
@@ -129,6 +129,12 @@ func (v *DefinitionClient) Delete(id string) error {
return pkgerrors.Wrap(err, "Delete Resource Bundle Definition")
}
+ //Delete the content when the delete operation happens
+ err = db.DBconn.Delete(v.storeName, id, v.tagContent)
+ if err != nil {
+ return pkgerrors.Wrap(err, "Delete Resource Bundle Definition Content")
+ }
+
return nil
}
diff --git a/vagrant/setup.sh b/vagrant/setup.sh
index 3bbcc4ce..a135ea96 100755
--- a/vagrant/setup.sh
+++ b/vagrant/setup.sh
@@ -188,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