Project

Profile

Help

Issue #1565

Updated by dkliban@redhat.com over 5 years ago

The simplest way to see this is to create a repository, publish it, and then sync it (with auto publish).

repo.json Steps to reproduce:

<pre>
{"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"}] $ pulp-admin -u admin -p admin rpm repo create --repo-id foreman2 --relative-url foreman2 --feed http://yum.theforeman.org/releases/1.10/el7/x86_64/
</pre> Successfully created repository [foreman2]

$ pulp-admin -u admin -p admin rpm repo publish run --repo-id foreman2
+----------------------------------------------------------------------+
Publishing Repository [foreman2]
+----------------------------------------------------------------------+


publish.json This command may be exited via ctrl+c without affecting the request.

Initializing repo metadata
[-]
... completed


<pre> Publishing Distribution files
{"id":"test-repo","override_config":null} [-]
</pre> ... completed

sync.json Publishing RPMs
[-]
... completed


<pre> Publishing Delta RPMs
{"override_config":{"num_threads":4,"validate":true}} ... skipped

Publishing Errata

</pre> [-]
... completed


Steps Publishing Comps file
[-]
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files
to reproduce: web
[-]
... completed


<pre> Writing Listings File
[-]
... completed

Task Succeeded


$ http --verify no --auth admin:admin POST https://localhost/pulp/api/v2/repositories/ < repo.json pulp-admin -u admin -p admin rpm repo sync run --repo-id foreman2
+----------------------------------------------------------------------+
Synchronizing Repository [foreman2]
+----------------------------------------------------------------------+


$ http --verify no --auth admin:admin POST https://localhost/pulp/api/v2/repositories/test-repo/actions/publish/ < publish.json This command may be exited via ctrl+c without affecting the request.

Downloading metadata...
[\]
... completed


$ http --verify no --auth admin:admin POST https://localhost/pulp/api/v2/repositories/test-repo/actions/sync/ < sync.json Downloading repository content...
[==================================================] 100%
RPMs: 369/369 items
Delta RPMs: 0/0 items

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
... completed

Importing errata...
[-]
... completed

Importing package groups/categories...
[-]
... completed

Task Succeeded

Copying files
[-]
... completed

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[==================================================] 100%
369 of 369 items
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[-]
... completed

Publishing Comps file
[-]
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed

Task Succeeded


</pre>

Back