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:

  1. Update vault.
  2. Update runlist.
  3. Update node attributes.
  4. 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:

  1. Update or delete vault:

    knife vault update [vault] [item] '[value]'
    

    or

    knife vault delete [vault] [item]
    
  2. Update runlist:

    knife node run_list set [node_name] [runlist]
    
  3. Update node attributes:

    Use knife exec to remove node attributes.

    Note: knife exec is a powerful tool and it should be used carefully.