Add `collect-diag` makefile target, documentation
Change-Id: I581db8b52bc2b9a4b7e4c850f9b432664fbc6c92
diff --git a/Makefile b/Makefile
index bb1c0c3..24a3d76 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,6 @@
# Config file generation
config: $(CONFIG_FILES)
-
$(CONFIG_FILES):
ansible-playbook -i 'localhost,' --extra-vars="cord_podconfig='$(PODCONFIG_PATH)' genconfig_dir='$(GENCONFIG_D)' scenarios_dir='$(SCENARIOS_D)'" $(BUILD)/ansible/genconfig.yml $(LOGCMD)
@@ -100,6 +99,9 @@
xos-update-images: clean-images
rm -f $(M)/start-xos $(M)/local-start-xos
+collect-diag:
+ $(ANSIBLE_PB) $(PI)/collect-diag-playbook.yml $(LOGCMD)
+
compute-node-refresh:
$(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_MAAS) $(PI)/compute-node-refresh-playbook.yml" $(LOGCMD)
@@ -225,7 +227,7 @@
touch $@
# Testing targets
-pod-test: $(M)/onboard-openstack
+pod-test: $(M)/onboard-openstack collect-diag
$(ANSIBLE_PB) $(PI)/pod-test-playbook.yml $(LOGCMD)
# Local Targets, bring up XOS containers without a VM
diff --git a/docs/quickstart_make.md b/docs/quickstart_make.md
index 1d6420a..e0d1325 100644
--- a/docs/quickstart_make.md
+++ b/docs/quickstart_make.md
@@ -209,6 +209,9 @@
- `xos-teardown`: Stop and remove a running set of XOS docker containers
+ - `collect-diag`: Collect detailed diagnostic information on a deployed head
+ and compute nodes, into `diag-<datestamp>` directory on the head node.
+
- `compute-node-refresh`: Reload compute nodes brought up by MaaS into XOS,
useful in the cord virtual and physical scenarios