alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
57 stars 15 forks source link

Cannot teardown when pulumi action in progress #1932

Closed craddm closed 2 months ago

craddm commented 3 months ago

:white_check_mark: Checklist

:computer: System information

:package: Packages

List of packages ```none Paste list of packages here ```

:no_entry_sign: Describe the problem

If an operation such as dsh sre deploy <whatever> previously failed, attempting to dsh sre teardown <whatever> will fail as there is a command in progress.

2024-06-07 12:39:40 [   ERROR]   pulumi-python:dynamic:Resource (workspace_02_file_test_functionality_python_py):                                                 cli.py:104
2024-06-07 12:39:40 [   ERROR]     error: Exception calling application: Failed to run command on 'shm-lincolnshire-sre-morcilla-vm-workspace-02'.              cli.py:104
2024-06-07 12:39:40 [   ERROR]     (Conflict) Run command extension execution is in progress. Please wait for completion before invoking a run command.                       cli.py:104
2024-06-07 12:39:40 [   ERROR]     Code: Conflict                                                                                                                             cli.py:104
2024-06-07 12:39:40 [   ERROR]     Message: Run command extension execution is in progress. Please wait for completion before invoking a run command.                      cli.py:104
2024-06-07 12:39:40 [   ERROR]                                                                                                                                                cli.py:104
2024-06-07 12:39:40 [   ERROR] Resources:                                                                                                                      cli.py:104
2024-06-07 12:39:40 [   ERROR]     - 13 deleted                                                                                                                    cli.py:104
2024-06-07 12:39:40 [   ERROR]                                                                                                                                                cli.py:104
2024-06-07 12:39:40 [   ERROR] Duration: 52m10s                                                                                                                cli.py:104
2024-06-07 12:39:40 [   ERROR]                                                                                                                                                cli.py:104
2024-06-07 12:39:40 [   ERROR]  stderr: .    

This is related to #1636

There is no --force option for teardown.

:steam_locomotive: Workarounds or solutions

Need to add a force option for teardown.