Open Osazz opened 5 days ago
We also encounter this issue.
For us it happens with two artifactory_remote_terraform_repository
resources. We also have many other remote/virtuals repos (also docker) which are not affected.
We are running on terraform provider version 11.6.0 - to me it looks like this is not a problem of the provider, but a problem of Artifactory itself?
@Osazz @Junkern Thanks for the report. This issue is introduced by RTDEV-49236
in Artifactory v7.101.2. See release note.
The Artifactory engineering team is working on a fix/patch. I don't have a ETA or release version yet. Once I know, I'll pass it on here.
I am also seeing this issue on Artifactory version 7.77.5. Specifically when trying to use the platform_permission
resource https://registry.terraform.io/providers/jfrog/platform/latest/docs/resources/permission. Using the same TF version and providers as the OP. Alongside the latest platform provider.
Describe the bug I have a docker remote and virtual repository been managed by Terraform. (resource has been created).
Time to modify something as easy as the description and Terraform is retuning a
HTTP response status 404:Failed to execute add project resource with error Could not find project
error.This behaviour is confirmed for both remote and virtual docker repository and Conan remote repository
Even though terraform failed, modification was still applied in the artifactory
Version Information
Artifactory: 7.101.2 Terraform : 1.9.8 Terraform provider Version: 12.5.1
Terraform Error
More Debug log maybe this will be helpful
More Debug Log
```log 2024-11-28T11:40:10.968-0400 [WARN] Provider "registry.terraform.io/jfrog/artifactory" produced an invalid plan for artifactory_remote_docker_repository.repository[0], but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations: - .cdn_redirect: planned value cty.False for a non-computed attribute - .priority_resolution: planned value cty.False for a non-computed attribute - .download_direct: planned value cty.False for a non-computed attribute - .query_params: planned value cty.StringVal("") for a non-computed attribute - .notes: planned value cty.StringVal("") for a non-computed attribute - .bypass_head_requests: planned value cty.False for a non-computed attribute - .curated: planned value cty.False for a non-computed attribute - .local_address: planned value cty.StringVal("") for a non-computed attribute - .disable_proxy: planned value cty.False for a non-computed attribute - .disable_url_normalization: planned value cty.False for a non-computed attribute - .enable_cookie_management: planned value cty.False for a non-computed attribute - .store_artifacts_locally: planned value cty.True for a non-computed attribute - .hard_fail: planned value cty.False for a non-computed attribute - .project_id: planned value cty.StringVal("") for a non-computed attribute - .username: planned value cty.StringVal("") for a non-computed attribute - .allow_any_host_auth: planned value cty.False for a non-computed attribute - .archive_browsing_enabled: planned value cty.False for a non-computed attribute - .proxy: planned value cty.StringVal("") for a non-computed attribute - .socket_timeout_millis: planned value cty.NumberIntVal(15000) for a non-computed attribute - .blacked_out: planned value cty.False for a non-computed attribute - .includes_pattern: planned value cty.StringVal("**/*") for a non-computed attribute - .mismatching_mime_types_override_list: planned value cty.StringVal("") for a non-computed attribute - .project_key: planned value cty.StringVal("") for a non-computed attribute - .remote_repo_layout_ref: planned value cty.StringVal("") for a non-computed attribute - .content_synchronisation: block count in plan (1) disagrees with count in config (0) artifactory_remote_docker_repository.repository[0]: Modifying... [id=aws-ecr-registry-delete-me] 2024-11-28T11:40:10.968-0400 [INFO] Starting apply for artifactory_remote_docker_repository.repository[0] 2024-11-28T11:40:10.968-0400 [DEBUG] artifactory_remote_docker_repository.repository[0]: applying the planned Update change 2024-11-28T11:40:10.996-0400 [WARN] unexpected data: registry.terraform.io/jfrog/artifactory:stderr= | 2024/11/28 11:40:10.996637 DEBUG RESTY | ============================================================================== | ~~~ REQUEST ~~~ | POST /artifactory/api/system/usage HTTP/1.1 | HOST : priv.jfrog.io | HEADERS: | \tAccept: */* | \tAuthorization: