When a feed-less repo is created, it's completely empty. The metadata isn't generated until the first time a package is added. This is misleading if a consumer is bound to the repo before any packages are added. Yum will show an error with the repo that repomd.xml doesn't exist. Really though, the repo is there, it's just empty. We should generate empty metadata to make that use case cleaner so that the client doesn't see an error. In the RHUI case, it's possible the provider will want to make a repository accessible to clients as a future-looking thing, with the intention of putting update RPMs in it. In such a case, the repo will likely be empty at image creation time (i.e. when the .repo file is created) but we don't want clients to see yum errors every time until that repo is used.
commit 8681ffd82f15aa73c130ec764d6b88e061c3da93 $ sudo pulp-admin repo create --id=test_empty Successfully created repository [ test_empty ] $ ls -l /var/lib/pulp/repos/test_empty/ total 4 drwxr-xr-x. 2 apache apache 4096 Apr 20 10:42 repodata $ ls -l /var/lib/pulp/repos/test_empty/repodata/ total 28 -rw-r--r--. 1 apache apache 594 Apr 20 10:42 filelists.sqlite.bz2 -rw-r--r--. 1 apache apache 179 Apr 20 10:42 filelists.xml.gz -rw-r--r--. 1 apache apache 575 Apr 20 10:42 other.sqlite.bz2 -rw-r--r--. 1 apache apache 175 Apr 20 10:42 other.xml.gz -rw-r--r--. 1 apache apache 1144 Apr 20 10:42 primary.sqlite.bz2 -rw-r--r--. 1 apache apache 188 Apr 20 10:42 primary.xml.gz -rw-r--r--. 1 apache apache 2681 Apr 20 10:42 repomd.xml
build: 0.170
verified [root@preethi ~]# rpm -q pulp pulp-0.0.179-1.fc14.noarch [root@preethi ~]# pulp-admin repo create --id=test_empty Successfully created repository [ test_empty ] [root@preethi ~]# ls -l /var/lib/pulp/repos/test_empty/ total 4 drwxr-sr-x. 2 apache apache 4096 May 24 14:56 repodata [root@preethi ~]# ls -l /var/lib/pulp/repos/test_empty/repodata/ total 28 -rw-r--r--. 1 apache apache 583 May 24 14:56 filelists.sqlite.bz2 -rw-r--r--. 1 apache apache 179 May 24 14:56 filelists.xml.gz -rw-r--r--. 1 apache apache 560 May 24 14:56 other.sqlite.bz2 -rw-r--r--. 1 apache apache 175 May 24 14:56 other.xml.gz -rw-r--r--. 1 apache apache 1242 May 24 14:56 primary.sqlite.bz2 -rw-r--r--. 1 apache apache 188 May 24 14:56 primary.xml.gz -rw-r--r--. 1 apache apache 2684 May 24 14:56 repomd.xml
Closing with Community Release 15 pulp-0.0.223-4.