-
Notifications
You must be signed in to change notification settings - Fork 110
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
local debian repositories have id drift. #1200
Comments
@madelaney Which version of the provider is used to created this repository originally? A ballpark (i.e. major.minor) version would suffice. |
Possible related to #1186 |
@alexhung , the repos were created with artifactory provider revision |
@madelaney Can you check if this is still an issue with the latest release v12.9.0? |
I'm having drift for the ID's on both Debian local and RPM local repos. Installed jfrog/artifactory v12.9.0 resource "artifactory_local_rpm_repository" "afs" {
key = "afs"
repo_layout_ref = "simple-default"
includes_pattern = "**/*"
calculate_yum_metadata = true
yum_root_depth = "2"
xray_index = true
} # artifactory_local_rpm_repository.afs will be updated in-place
~ resource "artifactory_local_rpm_repository" "afs" {
~ id = "afs" -> (known after apply)
Apply:
artifactory_local_rpm_repository.afs: Modifying... [id=afs] Applying plan from 12.9.0 doesn't resolve the drift. Nothing is changing in the state either. |
@alexhung Yep, confirmed after upgrade to # artifactory_local_debian_repository.repo-debian will be updated in-place
~ resource "artifactory_local_debian_repository" "repo-debian" {
~ id = "repo-debian" -> (known after apply)
# (20 unchanged attributes hidden)
}
# artifactory_local_debian_repository.repo-input will be updated in-place
~ resource "artifactory_local_debian_repository" "repo-input" {
~ id = "repo-input" -> (known after apply)
# (20 unchanged attributes hidden)
}
# artifactory_local_debian_repository.repo-debianorg will be updated in-place
~ resource "artifactory_local_debian_repository" "repo-debianorg" {
~ id = "repo-debianorg" -> (known after apply)
# (20 unchanged attributes hidden)
}
# artifactory_local_debian_repository.repo-build will be updated in-place
~ resource "artifactory_local_debian_repository" "repo-build" {
~ id = "repo-build" -> (known after apply)
# (20 unchanged attributes hidden)
}
# artifactory_remote_docker_repository.repo-docker will be updated in-place
~ resource "artifactory_remote_docker_repository" "repo-docker" {
~ id = "repo-docker" -> (known after apply)
# (47 unchanged attributes hidden)
}
# artifactory_remote_rpm_repository.repo-rpm will be updated in-place
~ resource "artifactory_remote_rpm_repository" "repo-rpm" {
~ id = "repo-rpm" -> (known after apply)
# (41 unchanged attributes hidden)
} |
@erlarson85 @zamanh Thanks for the update. I'm glad last release resolves the |
Fix local and remote repo 'id' diff issue
Describe the bug
While nothing has changed, on either the Artifactory side, or terraform, I get always get changes like the following:
For the full code for this repo, see: https://gist.github.com/madelaney/5449bd445c1490b2ef87b47ef43d3e2f
The terraform version is:
The artifactory version is:
Requirements for and issue
curl
it at$host/artifactory/api/system/version
Expected behavior
I would expect that
terraform plan
orterraform apply
would not need to actually apply anything but it alwasy wants to update theid
.Additional context
N/A
The text was updated successfully, but these errors were encountered: