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

In v2.3.0 LXD default remote doesn't work #535

Closed
stew3254 opened this issue Oct 11, 2024 · 2 comments
Closed

In v2.3.0 LXD default remote doesn't work #535

stew3254 opened this issue Oct 11, 2024 · 2 comments

Comments

@stew3254
Copy link

When trying to set another remote as default in LXD, I get the following error

│ Error: Failed initialize LXD provider
│ 
│   with provider["registry.terraform.io/terraform-lxd/lxd"],
│   on main.tf line 10, in provider "lxd":
│   10: provider "lxd" {
│ 
│ Multiple remotes are configured as default: [image-server]

When I change default = true to default = false it works and simply uses my local LXD instance. Here is my provider

provider "lxd" {
  generate_client_certificates = true
  accept_remote_certificate = var.accept_remote_certificates

  remote {
    name = var.remote_image_server_name
    address = var.remote_image_server_address
    password = var.remote_image_server_password
    default = true
  }
}

With variable substititon, it looks something like this:

provider "lxd" {
  generate_client_certificates = true
  accept_remote_certificate = true

  remote {
    name = mine
    address = "https://1.2.3.4:8443"
    password = "lxd"
    default = true
  }
}

This same config works in v2.2.0

@MusicDin
Copy link
Member

Thanks for reporting the issue. It was fixed yesterday in #534. A release will be made asap to apply the fix.
Apologies for the inconvenience.

@MusicDin
Copy link
Member

Fixed in 2.4.0

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

No branches or pull requests

2 participants