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

Terraform is unable to populate usernameSource properly #18535

Closed
1 task done
mbrosius opened this issue Sep 26, 2022 · 1 comment · Fixed by #20428
Closed
1 task done

Terraform is unable to populate usernameSource properly #18535

mbrosius opened this issue Sep 26, 2022 · 1 comment · Fixed by #20428

Comments

@mbrosius
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.2.2

AzureRM Provider Version

HPC cache 14.1.0

Affected Resource(s)/Data Source(s)

HPC Cache

Terraform Configuration Files

"directoryServicesSettings": {
      "usernameDownload": {
        "extendedGroups": false,
        "usernameSource": "None",
        "groupFileURI": "",
        "userFileURI": "",
        "ldapServer": "",
        "ldapBaseDN": "",
        "encryptLdapConnection": false,
        "requireValidCertificate": false,

Debug Output/Panic Output

2022-08-01T12:55:09.676-0400 [DEBUG] provider.terraform-provider-azurerm_v2.66.0_x5: AzureRM Request:
GET /subscriptions/e981345d-8588-42e9-8bbf-57299b1f30ad/resourceGroups/vdbench4_hpc_filer_rg/providers/Microsoft.Network/networkInterfaces/nasfiler1-nic?api-version=2020-11-01 HTTP/1.1
Host: management.azure.com
User-Agent: Go/go1.16.3 (amd64-linux) go-autorest/v14.2.1 Azure-SDK-For-Go/v55.3.0 network/2020-11-01 HashiCorp Terraform/1.2.2 (+https://www.terraform.io) Terraform Plugin SDK/2.7.0 terraform-provider-azurerm/2.66.0 pid-222c6c49-1b0a-5959-a213-6608f9eb8820
X-Ms-Correlation-Request-Id: cfc706a9-ebad-7b9d-755e-3cd566dbc405
Accept-Encoding: gzip: timestamp=2022-08-01T12:55:09.676-0400
2022-08-01T12:55:09.717-0400 [DEBUG] provider.terraform-provider-azurerm_v2.66.0_x5: AzureRM Response for https://management.azure.com/subscriptions/e981345d-8588-42e9-8bbf-57299b1f30ad/resourcegroups/vdbench4_hpccache_rg/providers/Microsoft.StorageCache/caches/ajointhpccache4?api-version=2021-03-01:
HTTP/2.0 200 OK
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Mon, 01 Aug 2022 16:55:09 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-HTTPAPI/2.0
Server: Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: cfc706a9-ebad-7b9d-755e-3cd566dbc405
X-Ms-Ratelimit-Remaining-Subscription-Reads: 11999
X-Ms-Request-Id: fbfea375-9afa-4736-af22-b9ce292793db
X-Ms-Routing-Request-Id: EASTUS:20220801T165510Z:d263d66e-e500-4d3c-916b-f4b9baaf819e
X-Ms-Served-By: b898e293-1d26-47be-9bc7-2473812d8153_132969477689823239,b898e293-1d26-47be-9bc7-2473812d8153_132969477689823239

{
"name": "ajointhpccache4",
"id": "/subscriptions/e981345d-8588-42e9-8bbf-57299b1f30ad/resourceGroups/vdbench4_hpccache_rg/providers/Microsoft.StorageCache/caches/ajointhpccache4",
"type": "Microsoft.StorageCache/caches",
"location": "eastus2",
"tags": {},
"sku": {
"name": "Standard_2G"
},
"properties": {
"networkSettings": {
"mtu": 1500,
"utilityAddresses": [
"10.0.1.10",
"10.0.1.11",
"10.0.1.12"
],
"ntpServer": "time.windows.com"
},
"securitySettings": {
"accessPolicies": [
{
"name": "default",
"accessRules": [
{
"scope": "default",
"access": "rw",
"suid": false,
"submountAccess": true,
"rootSquash": false
}
]
}
]
},
"directoryServicesSettings": {
"usernameDownload": {
"extendedGroups": false,
"usernameSource": "None",
"groupFileURI": "",
"userFileURI": "",
"ldapServer": "",
"ldapBaseDN": "",
"encryptLdapConnection": false,
"requireValidCertificate": false,

Expected Behaviour

The expected behavior is that the defaults are the same as an empty set.

Actual Behaviour

when usernameSource is set to "None", we see the following response:
¦ Error: source type "None" is not supported
¦
¦ with azurerm_hpc_cache.hpc_cache,
¦ on main.tf line 108, in resource "azurerm_hpc_cache" "hpc_cache":
¦ 108: resource "azurerm_hpc_cache" "hpc_cache" {

When usernameSource is toggled on/off, the value is set to "". Then we see the following output:
source type "" is not supported

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants