Failure cleanup does not occur
Pattern Manager does not do the failure cleanup after a software deployment failure.
Symptoms
The software deploy process involves the following steps:
- Update vault.
- Update runlist.
- Update node attributes.
- Do software deployment.
If the software deployment fails, the items created during the previous three steps are not removed.
Resolving the problem
If you have access to a Chef server, you can run the following commands:
-
Update or delete vault:
knife vault update [vault] [item] '[value]'or
knife vault delete [vault] [item] -
Update runlist:
knife node run_list set [node_name] [runlist] -
Update node attributes:
Use
knife execto remove node attributes.Note:
knife execis a powerful tool and it should be used carefully.