IP | Cluster IP |
Username | Cluster User |
Password | Cluster Pass |
Service: One tier of a multiple tier application. This can be made up of 1 more VMs (or existing machines) that all have the same config and do the same thing
Application (App): A whole application with multiple parts that are all working towards the same thing (for example, a Web Application might be made up of an Apache Server, a MySQL database and a HAProxy Load balancer. Alone each service doesn’t do much, but as a whole they do what they’re supposed to)
Macro: A Calm construct that is evaluated before being ran on the target machine. Macros and Variables are denoted in the @@{[name]}@@ format in the scripts.
In this lab participants will learn about NuCalm Blueprint Best Practices, identify anamolies, and diagnose poorly written or defective Blueprints.
In this exercise you’ll walk through the steps to:
Note: There should be a mapping or SMB share configured to connect to: smb://pocfs.nutanixdc.local/images. This will be used to import existing blueprints.
Download the blueprint to be imported by clicking the following link Blueprint:
From Apps (NuCalm) within Prism Central, navigate to the Blueprint Workspace by clicking () icon located on the left tool ribbon. This will open the Blueprint Workspace where self-authored blueprints are staged for editing, publishing, and/or launching as Applications. When the Blueprint grid appears, click the Upload Blueprint button located along the top of the Blueprint grid.
Navigate to the blueprint file (i.e. Troubleshooting.json) recently downloaded and select it by clicking on the file.
A modal dialog will appear prompting for a name and project when saving. Complete the fileds as shown below and click upload. This will save the blueprint to the workspace.
The Blueprint workspace should appear as follows.
Since Blureprints are exported as clear text, they do not retain credential information that could potentially be used maliciously. You’ll be required to set the Credentials.
Credential | |
Name: | centos |
User: | root |
Password: | nutanix/4u |
Save the Blueprint. The red ! should no longer appear.
Once the blueprint has been successfully updated and saved, click the () button to lanuch the Blueprint. Name the application with Calm Workshop Troubleshooting.
Click Create to launch the application.
Once the application has been launched, the Application Management Dialog will appear showing the state of the Application. Click the Audit button in the tool-bar located along the top of the Application Management Dialog to monitor or audit the provisioning progress of the application.
Continue to monitor the progress by expanding the Create
If an error occurs during the execution of a Blueprint, both the Application Management Dialog the and the Audit tree will show the error.
Using the Audit tree and expanding Create, scroll down to the first failure occurrance to read the logs and compare it with the script.
Expand the PackageInstallTask for Jenkins_Master-Package Install. You can toggle between the script and the script output to diagnose the problem…
Examine the script’s contents and it’s output to get an idea of what failed.
Make a note of what you suspect is failing. Make the changes within the Blueprint by navigating to the Blueprint Workspace from the Application Managment Dialog Overview and clicking the Blueprint link.
Clean up the Application workspace by deleting the failed applications. Click the Manage button in the tool-bar located along the top of the Application Management Dialog to execute an application action. Click Delete to start a delete task.
You can monitor the completion of the application deletion by clicking Audit
Repeat parts 4-6 until application successfully deploys…