Deploying PAS for Windows fails with the error message: drain scripts failed. Failed Jobs: enable_ssh.
Task 24756 | 23:30:53 | Updating instance windows_diego_cell: windows_diego_cell/3cf60898-a2f4-41d3-a81f-f90d0e1dbb3d (0) (canary) (00:00:13) L Error: Action Failed get_task: Task 2af6afeb-d1e1-4b68-449d-beb5663fdb89 result: 1 of 3 drain scripts failed. Failed Jobs: enable_ssh. Successful Jobs: rep_windows, enable_rdp.
There is a defect in the PAS for Windows tile. If Open SSH is not installed in the stemcell, then the drain script to fail when the Windows Diego cell shuts down.
This issue is fixed in version 2.1.2, 2.0.4, and 1.12.8 of PAS for Windows.
If you are at lower version than this, then you will need to manually deploy with flag --skip-drain=windows_diego_cell in order to avoid this issue and get to the version with the fix.
Perform the steps as mentioned below:
1. Upload and configure version 2.1.2, 2.0.4, or 1.12.8 version of PAS for Windows tile through the Operations (Ops) Manager UI.
2. SSH to Operations Manager: ssh ubuntu@<opsmanager fqdn>
3. Deploy Windows for PAS tile manually with --skip-drain=windows_diego_cell
flag:
bosh
v1: bosh deploy --skip-drain=windows_diego_cell /var/tempest/workspaces/default/deployments/p-windows-runtime-0867eda19243ad768c06.yml
bosh
v2: bosh -e my-env -d p-windows-runtime-0867eda19243ad768c06 deploy --skip-drain=windows_diego_cell /var/tempest/workspaces/default/deployments/p-windows-runtime-0867eda19243ad768c06.yml
4. Deploying in the future will no longer have a problem once the Windows tile is upgraded to release with v0.7.0 of windows-utilities.