add some utility scripts and update the playbook to verify API connectitivy and image download
Change-Id: I007a2aef68f5c60a4c809cd711aff4d18d87efb9
diff --git a/roles/compute-node/files/delete-node-prov-state b/roles/compute-node/files/delete-node-prov-state
new file mode 100755
index 0000000..ced8baa
--- /dev/null
+++ b/roles/compute-node/files/delete-node-prov-state
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+LIST=$(curl -sS http://$(docker-ip provisioner):4243/provision/ | jq . | grep "node-" | awk '{print $2}' | sed -e 's/"//g')
+
+for i in $LIST; do
+ echo "DELETE PROV RECORD '$i'"
+ curl -sS -XDELETE http://$(docker-ip provisioner):4243/provision/$i
+done
+