-
Notifications
You must be signed in to change notification settings - Fork 70
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
Root resource was present, but now absent. #163
Comments
I was seeing a similar error when attempting to create a computer account. In my case, I suspect the issue is related to AD replication. In my initial configuration of the ad provider, I left the optional Not specifying a domain controller causes the PowerShell commands to be executed using the domain name, as shown in the below trace logs where it successfully created the object:
On the post-creation check, the same type of command is used. However, this time we see PowerShell returns a "Directory object not found" error.
In my AD environment, there are more than 20 DCs, so there's a good chance that when "EXAMPLE.com" gets resolved on the To prevent this from happening without specifying a domain controller, perhaps it would make sense for the provider to resolve the domain name to a specific domain controller beforehand, and then use that same DC for the |
ad_group.g: Creating... Same here 2 out of 10 times |
Success! The configuration is valid.
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to ad_ou.ou_client, provider
│ "provider["registry.terraform.io/hashicorp/ad"]" produced an unexpected
│ new value: Root resource was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
time=2022-12-27T17:01:25Z level=error msg=Terraform invocation failed in
The text was updated successfully, but these errors were encountered: