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

Invalid property 'non-durable' for Quorum/Stream queues #4

Open
rfavreau opened this issue May 19, 2024 · 0 comments
Open

Invalid property 'non-durable' for Quorum/Stream queues #4

rfavreau opened this issue May 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rfavreau
Copy link

rfavreau commented May 19, 2024

Describe the bug
When i want to create a Quorum or a Stream queue, an error is returned by the provider.

Provider version
v1.8.0

RabbitMQ version
3.13.2

Terraform version
Terraform v1.0.11
on linux_amd64

Affected resource(s)

  • rabbitmq_queue

Terraform Configuration Files

# Create a vhost
resource "rabbitmq_vhost" "test" {
  name = "QueueTestVhost"
}

# Create a quorum queue
resource "rabbitmq_queue" "test_quorum" {
  name  = "QueueTestQuorum"
  vhost = "${rabbitmq_vhost.test.name}"

  settings {
    arguments = {
      "x-queue-type" : "quorum"
    }
  }
}

# Create a stream queue
resource "rabbitmq_queue" "test_stream" {
  name  = "QueueTestStream"
  vhost = "${rabbitmq_vhost.test.name}"

  settings {
    arguments = {
      "x-queue-type" : "stream"
    }
  }
}

Expected behavior
Two queues must be created.

Actual behavior
Queues are not created and an error message is returned by the provider:

Error: Error 400 (bad_request): invalid property 'non-durable' for queue 'QueueTestQuorum' in vhost 'QueueTestVhost'
│ 
│   with rabbitmq_queue.test_quorum,
│   on main.tf line 45, in resource "rabbitmq_queue" "test_quorum":
│   45: resource "rabbitmq_queue" "test_quorum" {
│ 
╵
╷
│ Error: Error 400 (bad_request): invalid property 'non-durable' for queue 'QueueTestStream' in vhost 'QueueTestVhost'
│ 
│   with rabbitmq_queue.test_stream,
│   on main.tf line 57, in resource "rabbitmq_queue" "test_stream":
│   57: resource "rabbitmq_queue" "test_stream" {

To reproduce
Steps to reproduce the behavior:

  1. terraform apply

Screenshots
N/A

Additional context
N/A

References
N/A

@rfavreau rfavreau changed the title Invalid property 'non-durable' for Quorum/Stream queue Invalid property 'non-durable' for Quorum/Stream queues May 19, 2024
@rfavreau rfavreau added the bug Something isn't working label May 21, 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
Projects
None yet
Development

No branches or pull requests

1 participant