Improve the deployment's creation and deletion

1. When a deployment creation fails because of schema validation error,
an exception should be raised, the deployment status should be changed
to 'deploy->failed'.
2. When a deployment creation fails because of schema validation error,
users can never destroy a deployment, also because of validation error.
This patch ensures that users could always be able to delete a deployment
successfully.

Change-Id: I7dea64da19e4d4ba4302f0270e524c584f43d65d
Closes-Bug: #1368484
Merge "Improve the deployment's creation and deletion"