6.2

Table Of Contents
9 For each script, the agent waits for the dependent tasks to finish successfully, and downloads all of
the content to the virtual machine directory
at /tmp/runid/content/ComponentName/PropertyName and the task scripts to the directory
at /tmp/runid/TaskName. The agent runs the tasks according to the parameter values sent by the
server. When a task is complete, the agent informs the server about the status of the task.
If a script finishes with a nonzero exit status, the agent marks that task as failed. Otherwise, the agent
marks the script as completed and proceeds to the next task. When a task fails, the entire
deployment is stopped, marked as Failed Deployment, and no future tasks are run. The reason for
failure is available on the Details tab. When all of the tasks pass, the deployment is marked as
Deployed Successfully.
Note For a script to run without interruptions, the return value must be set to zero (0). This value
allows the agent to capture all of the computed properties and send them to the Application Services
server.
For troubleshooting purposes, you can access the deployment details or view the provisioning task logs
included in the execution plan. The task information is captured in log files for the install, configure, start,
update, rollback, and teardown scripts used on each component of the deployment. These logs capture
all of the information that is sent to the stdout and stderr log files.
Understanding Deployment Failures
When you deploy an application to the cloud or update a deployed application in the cloud, virtual
machines are created and software is provisioned in the virtual machines. During these processes,
deployment failures can occur that can affect your deployment.
Failures can occur in several deployment phases. In Application Services, you can identify where failures
occurred by viewing the execution plan. You can use the Resume Deployment option, which is available
in the Execution Plan panel in the Deployment View, to resume a failed deployment.
Table 161. Deployment Phases
Deployment Phases Kinds of Failure
Pre-Provisioning
n
Policy validation
n
Template validation
n
DE reachability validation
Provisioning Boot Strap failure occurs for the following reasons:
n
Maximum virtual machines exhausted
n
OS install
n
IP setup
n
Storage issue
Agent bootstrap failure occurs for the following reasons:
n
Firewall issue in the template
n
Gateway issue in the template
n
Timeout occurs during communication from agent to Application Services due to network and
firewall issues
Using Application Services
VMware, Inc. 194