Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot update/recreate SSH fleet #1952

Closed
un-def opened this issue Nov 4, 2024 · 0 comments · Fixed by #1955
Closed

[Bug]: Cannot update/recreate SSH fleet #1952

un-def opened this issue Nov 4, 2024 · 0 comments · Fixed by #1955
Assignees
Labels
bug Something isn't working ssh-fleets

Comments

@un-def
Copy link
Collaborator

un-def commented Nov 4, 2024

Steps to reproduce

  1. Create and apply an SSH fleet configuration:

    type: fleet
    name: fleet-vm
    ssh_config:
      hosts:
        - hostname: 192.168.122.75
          user: debian
          identity_file: ~/.ssh/vm_debian12
    dstack apply -f .dstack/fleet-vm.dstack.yml
     Project        main
     User           admin
     Configuration  .dstack/fleet-vm.dstack.yml
     Type           fleet
     Fleet type     ssh
     Nodes          1
     Placement      cluster
    
    Fleet fleet-vm does not exist yet.
    Create the fleet? [y/n]:
  2. Update and apply the configuration to add more hosts, or even apply the same exact configuration, to, for example, update the shim binary:

    type: fleet
    name: fleet-vm
    ssh_config:
      hosts:
        # the same host
        - hostname: 192.168.122.75
          user: debian
          identity_file: ~/.ssh/vm_debian12
        # a new host
        - hostname: 192.168.122.58
          user: ubuntu
          identity_file: ~/.ssh/vm_ubuntu24_04

Actual behaviour

dstack apply -f .dstack/fleet-vm.dstack.yml
Instances [192.168.122.75] are already assigned to a fleet.

Expected behaviour

No response

dstack version

master branch (0.18.22 with #1938 merged)

Server logs

No response

Additional information

No response

@un-def un-def added bug Something isn't working ssh-fleets labels Nov 4, 2024
@un-def un-def self-assigned this Nov 4, 2024
un-def added a commit that referenced this issue Nov 4, 2024
un-def added a commit that referenced this issue Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ssh-fleets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant