Bug 790207

Summary: Repo export --generate-isos did not generate any isos
Product: [Retired] Pulp Reporter: James Slagle <jslagle>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: pkilambi, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:14:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Slagle 2012-02-13 22:35:22 UTC
I exported a synced repo of the candlepin repo:

$ pulp-admin repo export --id candlepin-x86_64 -t /tmp/candlepin --overwrite --generate-isos

I specified --generate-isos, but it did not generate any isos.

[slagle@veeone ~]$ find /tmp/candlepin/
/tmp/candlepin/
/tmp/candlepin/candlepin-0.5.17-1.el6.noarch.rpm
/tmp/candlepin/candlepin-tomcat6-0.5.17-1.el6.noarch.rpm
/tmp/candlepin/candlepin-jboss-0.5.17-1.el6.noarch.rpm
/tmp/candlepin/isos
/tmp/candlepin/candlepin-deps-0.0.21-1.el6.noarch.rpm
/tmp/candlepin/repodata
/tmp/candlepin/repodata/repomd.xml
/tmp/candlepin/repodata/primary.sqlite.bz2
/tmp/candlepin/repodata/other.xml.gz
/tmp/candlepin/repodata/filelists.sqlite.bz2
/tmp/candlepin/repodata/primary.xml.gz
/tmp/candlepin/repodata/filelists.xml.gz
/tmp/candlepin/repodata/other.sqlite.bz2
/tmp/candlepin/candlepin-tomcat6-0.5.8-1.el6.noarch.rpm
/tmp/candlepin/candlepin-selinux-0.5.17-1.el6.noarch.rpm
/tmp/candlepin/candlepin-devel-0.5.8-1.el6.noarch.rpm
/tmp/candlepin/candlepin-devel-0.5.17-1.el6.noarch.rpm
/tmp/candlepin/candlepin-jboss-0.5.8-1.el6.noarch.rpm
/tmp/candlepin/candlepin-0.5.8-1.el6.noarch.rpm


Does it only generate isos if the repo has isos?  The help text makes it sound like it will always generate isos:

[slagle@veeone ~]$ pulp-admin repo export -h
Usage: pulp-admin <options> repo export <options>

Options:
  -h, --help            show this help message and exit
  --id=ID               repository id
  -g GROUPID, --groupid=GROUPID
                        repository group id to export a group of repos
  -t TARGET, --target_dir=TARGET
                        target location on server to write the exported
                        content
  --generate-isos       wrap exported content into iso images (optional)
  --overwrite           overwrite existing content in target location
                        (optional)
  -F, --foreground      export repository in the foreground
  --status              exporter status for given repository (optional)

Comment 1 Pradeep Kilambi 2012-02-14 14:03:24 UTC
are you sure you have mkisofs installed? I just did this from master and i see the isos generated

[pkilambi@localhost ~]$ pulp-admin repo export --id=testrepo2 -t /tmp/testrepo --overwrite --generate-isos
Export on repository testrepo2 started
Use "repo export --status" to check on the progress
[pkilambi@localhost ~]$ pulp-admin repo export --id=testrepo2 -t /tmp/testrepo --overwrite --generate-isos --status
+------------------------------------------+
            Status for testrepo2
+------------------------------------------+
Step: Finished (/)
RPMs: 7/7
Errata: 1/1

[pkilambi@localhost ~]$ ls -l /tmp/testrepo/
total 3128
-rw-r--r-- 1 apache apache    4361 Feb 14 09:02 animaniacs-0.1-1.noarch.rpm
-rw-r--r-- 1 apache apache    4375 Feb 14 09:02 emoticons-0.1-2.noarch.rpm
-rw-r--r-- 1 apache apache 1050973 Feb 14 09:02 feedless-1.0-1.noarch.rpm
drwxr-xr-x 2 apache apache    4096 Feb 14 09:02 isos
-rw-r--r-- 1 apache apache 1050959 Feb 14 09:02 origin-1.0-1.noarch.rpm
-rw-r--r-- 1 apache apache 1050959 Feb 14 09:02 parent-1.0-1.noarch.rpm
-rw-r--r-- 1 apache apache    4863 Feb 14 09:02 patb-0.1-2.noarch.rpm
drwxr-xr-x 2 apache apache    4096 Feb 14 09:02 repodata
-rw-r--r-- 1 apache apache     768 Feb 14 09:02 updateinfo.xml
-rw-r--r-- 1 apache apache    4347 Feb 14 09:02 warnerbros-0.1-1.noarch.rpm
[pkilambi@localhost ~]$ ls -l /tmp/testrepo/isos/
total 3500
-rw-r--r-- 1 apache apache 3581952 Feb 14 09:02 pulp-testrepo2-20120214-01.iso

Comment 2 James Slagle 2012-02-14 14:11:08 UTC
I don't have it installed.   We don't tell you to install it.  Should probably add this requirement to the user guide and help text.

Comment 3 Pradeep Kilambi 2012-02-14 15:21:18 UTC
It was in our pulp.spec file, I guess it got dropped at some point when we were cleaning up the spec file assuming it wasnt used. We just need to add genisoimage dependency to our spec file and we should be ok.

Comment 4 Pradeep Kilambi 2012-02-15 18:28:38 UTC
commit 6b6f735c0f826f775d571cacec21df16328d74e9

Added a dependency to pull in mkisofs/genisoimage

on EL6:
$ rpm -qRp /tmp/tito/noarch/pulp-0.0.266-1.git.19.79e5ba4.el6.noarch.rpm |grep genisoimage
genisoimage

on EL5:
$ rpm -qRp /usr/src/redhat/RPMS/noarch/pulp-0.0.266-1.git.19.eaa7fc9.noarch.rpm | grep mkisofs
mkisofs

on F16:
$ rpm -qRp /tmp/tito/noarch/pulp-0.0.266-1.git.19.6b6f735.fc16.noarch.rpm |grep genisoimage
genisoimage

Comment 5 Jeff Ortel 2012-02-17 17:17:56 UTC
build: 0.267

Comment 6 Preethi Thomas 2012-02-21 13:49:19 UTC
verified

[root@preethi-el6-pulp ~]#  pulp-admin repo export --id pulp -t /tmp/pulp --overwrite --generate-isos
Export on repository pulp started
Use "repo export --status" to check on the progress
[root@preethi-el6-pulp ~]# pulp-admin repo export --status
error:  Error: repo id is required to check status of export
[root@preethi-el6-pulp ~]# 
[root@preethi-el6-pulp ~]# pulp-admin repo export --status --id=pulp
+------------------------------------------+
               Status for pulp
+------------------------------------------+
Step: Finished (/)
RPMs: 20/20

[root@preethi-el6-pulp ~]# ls /tmp/pulp/
gofer-0.65-1.el6.noarch.rpm
gofer-package-0.65-1.el6.noarch.rpm
grinder-0.0.136-1.el6.noarch.rpm
isos
m2crypto-0.21.1.pulp-7.el6.x86_64.rpm
m2crypto-debuginfo-0.21.1.pulp-7.el6.x86_64.rpm
mod_wsgi-3.3-3.pulp.el6.x86_64.rpm
mod_wsgi-debuginfo-3.3-3.pulp.el6.x86_64.rpm
pulp-0.0.267-1.el6.noarch.rpm
pulp-admin-0.0.267-1.el6.noarch.rpm
pulp-cds-0.0.267-1.el6.noarch.rpm
pulp-client-lib-0.0.267-1.el6.noarch.rpm
pulp-common-0.0.267-1.el6.noarch.rpm
pulp-consumer-0.0.267-1.el6.noarch.rpm
pulp-selinux-server-0.0.267-1.el6.noarch.rpm
python-gofer-0.65-1.el6.noarch.rpm
python-isodate-0.4.4-4.pulp.el6.noarch.rpm
python-oauth2-1.5.170-2.pulp.el6.noarch.rpm
python-qpid-0.7.946106-1.el6.noarch.rpm
python-rhsm-0.96.4-1.el6.noarch.rpm
python-webpy-0.32-8.el6.noarch.rpm
repodata
[root@preethi-el6-pulp ~]# ls /tmp/pulp/isos/
pulp-pulp-20120221-01.iso
[root@preethi-el6-pulp ~]#

Comment 7 Preethi Thomas 2012-02-24 20:14:38 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 8 Preethi Thomas 2012-02-24 20:19:33 UTC
Pulp v1.0 is released.