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

time parameter #16950

Closed
E-N-G-XOR opened this issue Dec 19, 2017 · 11 comments
Closed

time parameter #16950

E-N-G-XOR opened this issue Dec 19, 2017 · 11 comments

Comments

@E-N-G-XOR
Copy link

E-N-G-XOR commented Dec 19, 2017

Terraform Version

.terraform --version
Terraform v0.11.1
+ provider.azurerm v0.3.1

Terraform Configuration Files

resource "azurerm_servicebus_queue" "k8s_dev1_sb_que" {
  name                = "k8s-dev1-sb-que"
  resource_group_name = "${azurerm_resource_group.k8s-dev1-rg.name}"
  namespace_name      = "${azurerm_servicebus_namespace.k8s_dev1_sb.name}"
  requires_duplicate_detection = "False"
  default_message_ttl = "00:30:00"
  duplicate_detection_history_time_window = "00:15:00"
  enable_partitioning = true
}

resource "azurerm_servicebus_topic" "k8s_dev1_sb_topic" {
  name                = "k8s-dev1-sb-topic"
  resource_group_name = "${azurerm_resource_group.k8s-dev1-rg.name}"
  namespace_name      = "${azurerm_servicebus_namespace.k8s_dev1_sb.name}"
  enable_partitioning = true
  default_message_ttl = "00:30:00"
  duplicate_detection_history_time_window = "00:15:00"
}

Output

* azurerm_servicebus_queue.k8s_dev1_sb_que: servicebus.QueuesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The string '00:30:00' is not a valid TimeSpan value. CorrelationId: 35d09bb5-cca0-4d3f-a456-cd99a2e3db73"
* azurerm_servicebus_topic.k8s_ukbeta_sb_topic: 1 error(s) occurred:

* azurerm_servicebus_topic.k8s_dev1_sb_topic: servicebus.TopicsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The string '00:30:00' is not a valid TimeSpan value. CorrelationId: 45dc663c-d549-47fb-8c09-10083abf7e2d"
* azurerm_servicebus_queue.k8s_uat_sb_que: 1 error(s) occurred:

Expected Behavior

Terraform should have created the que and topic with the correct ttl values...

Actual Behavior

This worked in in .0.10.x, I upgraded and it will not accept the values for TTL.

Steps to Reproduce

Please list the full steps required to reproduce the issue, for example:

  1. terraform init
  2. terraform apply
@jbardin
Copy link
Member

jbardin commented Dec 19, 2017

Hi @LaneEnglot,

Sorry, I'm not sure what the question is here exactly. I expect this might be an azurerm provider related issue, but do you have some details about what didn't work, and what you expected to happen?

@jbardin jbardin added the waiting-response An issue/pull request is waiting for a response from the community label Dec 19, 2017
@E-N-G-XOR
Copy link
Author

E-N-G-XOR commented Dec 19, 2017 via email

@jbardin
Copy link
Member

jbardin commented Dec 19, 2017

@LaneEnglot,
What exactly is the error you're receiving?
Is this with the same version of the azurerm provider under both versions of Terraform?
Does this work differently with the current version of the azurerm provider?

@E-N-G-XOR
Copy link
Author

E-N-G-XOR commented Dec 19, 2017 via email

@E-N-G-XOR
Copy link
Author

E-N-G-XOR commented Dec 19, 2017 via email

@jbardin
Copy link
Member

jbardin commented Dec 21, 2017

Seems like you've tracked down the reason for the change.
We can reopen this under the azure provider is there still is an outstanding bug.

@jbardin jbardin closed this as completed Dec 21, 2017
@E-N-G-XOR
Copy link
Author

E-N-G-XOR commented Dec 21, 2017 via email

@jbardin
Copy link
Member

jbardin commented Dec 21, 2017

@LaneEnglot,

OK. This error is coming from the Azure API. I'm not sure if there's a mismatch in the documentation and what the API expects, or a bug the client libraries. I'll move the issue over to the Azure provider where they can check it out.

@jbardin jbardin reopened this Dec 21, 2017
@jbardin
Copy link
Member

jbardin commented Dec 21, 2017

I edited your issue to include the added error output and note about the regression.

@jbardin jbardin added provider/azurerm regression and removed waiting-response An issue/pull request is waiting for a response from the community labels Dec 21, 2017
@hashibot
Copy link
Contributor

This issue has been automatically migrated to hashicorp/terraform-provider-azurerm#646 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to this issue and let us know.

@ghost
Copy link

ghost commented Apr 5, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants