Actions
Issue #1565
closedPulp does not publish more than once
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
The simplest way to see this is to create a repository, publish it, and then sync it (with auto publish).
repo.json
{"id":"test-repo","display_name":"test-repo","importer_type_id":"yum_importer","importer_config":{"feed":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","ssl_ca_cert":null,"ssl_client_cert":null,"ssl_client_key":null},"notes":{"_repo-type":"rpm-repo"},"distributors":[{"distributor_type_id":"yum_distributor","distributor_config":{"relative_url":"test-repo","http":true,"https":true,"protected":true},"auto_publish":true,"distributor_id":"test-repo"},{"distributor_type_id":"export_distributor","distributor_config":{"http":false,"https":false},"auto_publish":false,"distributor_id":"export_distributor"}]}
publish.json
{"id":"test-repo","override_config":null}
sync.json
{"override_config":{"num_threads":4,"validate":true}}
Steps to reproduce:
$ http --verify no --auth admin:admin POST https://localhost/pulp/api/v2/repositories/ < repo.json
$ http --verify no --auth admin:admin POST https://localhost/pulp/api/v2/repositories/test-repo/actions/publish/ < publish.json
$ http --verify no --auth admin:admin POST https://localhost/pulp/api/v2/repositories/test-repo/actions/sync/ < sync.json
Actions
Adds validation to the UTCDateTimeField for mongoengine
Due to a bug in datetime utils, we can't rely on mongonegine to convert a string representation of a timestamp with timezone represented as Z on end. As a result we now require the date to be supplied as a datetime object with tzinfo set.
https://pulp.plan.io/issues/1565 closes #1565