Open fao89 opened 2 years ago
From: ironfroggy (ironfroggy) Date: 2019-11-05T18:47:37Z
{"errors":[{"status":"400","code":"invalid","title":"Invalid input.","detail":"Artifact already exists."}]}
From: daviddavis (daviddavis) Date: 2019-11-12T12:28:24Z
I confirmed that this problem is specific to pulp_ansible. In pulpcore, we reuse any existing artifact:
It looks like the behavior is different for pulp_ansible:
Author: ironfroggy (ironfroggy)
Redmine Issue: 5666, https://pulp.plan.io/issues/5666
When an imported is begun and fails, after uploading the artifact and attempting to spawn the import task, the artifact itself is still present. As such, any attempt to publish the same artifact again fails with "Artifact already exists", even though it was never completed successfully and is not available.