The Azure Log Analytics Nozzle Tile is tricky to troubleshoot because it deploys an app to perform its function.
The errand also deploys and deletes a VM very quickly, preventing the admin to ssh onto the VM for troubleshooting purposes.
We can use the power of the Bosh Director to prevent the VM deletion during the errand and troubleshoot any issue related to the Tile.
To stop the VM deletion, first SSH into the BOSH Director VM.
Open a new terminal with access to the BOSH CLI and run the following command to trigger the Azure Log Analytics Nozzle errand:
bosh -d azure-log-analytics-nozzle run-errand deploy-all
While the Azure Log Analytics Nozzle errand is running:
Wait for the VM creation process to begin.
Before the VM is fully created, execute the following command on the BOSH Director VM:sudo monit restart all
This causes the errand to fail.
Once the Director processes are back up and running, use the following command to recreate the deploy-all VM into a running state:
bosh -d azure-log-analytics-nozzle recreate
To run the Azure Log Analytics Nozzle errand manually:
SSH into the deploy-all
VM:
bosh -d azure-log-analytics-nozzle ssh
Execute the following command from the deploy-all
VM to run the errand manually:
sudo /var/vcap/jobs/deploy-all/bin/run
You can manually deploy the Azure Log Analytics Nozzle application by setting up the CF CLI credentials inside the deploy-all
VM and redeploying the application.
Manifest file locations:
/var/vcap/jobs/deploy-all/config/manifest.yml
/var/vcap/packages/azure_log_analytics_nozzle/manifest.yml
CF CLI executables:
/var/vcap/packages/cf-cli-8-linux/bin/cf
/var/vcap/packages/cf-cli-6-linux/bin/cf
Depending on the version of the tile, the CF CLI credentials can be found in one of the following files:
/var/vcap/jobs/deploy-all/bin/run
/var/vcap/jobs/deploy-all/lib/common.sh
Run the following commands to configure the CF CLI and target the appropriate environment:
/var/vcap/jobs/deploy-all/bin//var/vcap/packages/cf-cli-6-linux/bin/cf api https://api.tanzu-lab.broadcom.net --skip-ssl-validation
/var/vcap/packages/cf-cli-6-linux/bin/cf auth system_services Pa$$w0rd
/var/vcap/packages/cf-cli-6-linux/bin/cf target -o system >/dev/null
/var/vcap/packages/cf-cli-6-linux/bin/cf target -s azure-log-analytics-nozzle-space >/dev/null
Finally, deploy the application using the following command:
/var/vcap/packages/cf-cli-6-linux/bin/cf push azure-log-analytics-nozzle-4.0.8 -f /var/vcap/packages/azure_log_analytics_nozzle/manifest.yml