Skip to content

Re-creating failed gateways with a single apply - #4442

Merged
jvstme merged 1 commit into
masterfrom
pr_re_creating_failed_gateways
Oct 29, 2026
Merged

jvstme merged 1 commit into
masterfrom
pr_re_creating_failed_gateways

Conversation

@jvstme

@jvstme jvstme commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Before:

$ dstack apply -f test.dstack.yml
Gateway 'test-gateway' is in FAILED status and cannot be updated in-place. Delete it and re-apply.

$ dstack delete -f test.dstack.yml
Delete the gateway test-gateway? [y/n]: y
Gateway test-gateway deleted

$ dstack apply -f test.dstack.yml
Gateway test-gateway does not exist yet.
Create the gateway? [y/n]: y
 NAME          BACKEND          HOSTNAME       DOMAIN       DEFAULT  STATUS   CREATED
 test-gateway  aws (eu-west-1)  18.203.81.150  example.com           running  23:39

After:

$ dstack apply -f test.dstack.yml
Found gateway test-gateway in FAILED status.
Re-create the gateway? [y/n]: y
 NAME          BACKEND          HOSTNAME       DOMAIN       DEFAULT  STATUS   CREATED
 test-gateway  aws (eu-west-1)  18.203.81.150  example.com           running  23:39

The new behavior is only available if both the
server and the CLI are updated to this commit.

Before:

```
$ dstack apply -f test.dstack.yml
Gateway 'test-gateway' is in FAILED status and cannot be updated in-place. Delete it and re-apply.

$ dstack delete -f test.dstack.yml
Delete the gateway test-gateway? [y/n]: y
Gateway test-gateway deleted

$ dstack apply -f test.dstack.yml
Gateway test-gateway does not exist yet.
Create the gateway? [y/n]: y
 NAME          BACKEND          HOSTNAME       DOMAIN       DEFAULT  STATUS   CREATED
 test-gateway  aws (eu-west-1)  18.203.81.150  example.com           running  23:39
```

After:

```
$ dstack apply -f test.dstack.yml
Found gateway test-gateway in FAILED status.
Re-create the gateway? [y/n]: y
 NAME          BACKEND          HOSTNAME       DOMAIN       DEFAULT  STATUS   CREATED
 test-gateway  aws (eu-west-1)  18.203.81.150  example.com           running  23:39
```

The new behavior is only available if both the
server and the CLI are updated to this commit.
@jvstme
jvstme merged commit 1380764 into master Oct 29, 2026
29 checks passed
@jvstme
jvstme deleted the pr_re_creating_failed_gateways branch October 29, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant