[Pulp-list] Unit test error: problem with cleanup, issue with deleting a cloned repo

John Matthews jmatthew at redhat.com
Fri Dec 16 12:27:53 UTC 2011


We've been seeing the below error intermittently popup on unit test runs.  I saw this on my dev box and fixed it by dropping the pulp_unittest db.

Looks like a problem with deleting a cloned repo.


File "/home/hudson/workspace/pulp-dev-rhel6/test/unit/../common/testutil.py", line 201, in setUp
    self.clean()
  File "/home/hudson/workspace/pulp-dev-rhel6/test/unit/../common/testutil.py", line 213, in clean
    self.repo_api.clean()
  File "/home/hudson/workspace/pulp-dev-rhel6/test/common/../../src/pulp/server/api/repo.py", line 214, in clean
    self.delete(r["id"])
  File "/home/hudson/workspace/pulp-dev-rhel6/test/common/../../src/pulp/server/api/repo.py", line 540, in delete
    cloned_repo = self._get_existing_repo(clone_id)
  File "/home/hudson/workspace/pulp-dev-rhel6/test/common/../../src/pulp/server/api/repo.py", line 115, in _get_existing_repo
    raise PulpException("No Repo with id: %s found" % id)
PulpException: No Repo with id: clone-some-id-parent found


> use pulp_unittest
switched to db pulp_unittest
> db.repos.find()
{ "_id" : "some-id", "package_count" : 18, "distributionid" : [ ], "consumer_cert" : null, "consumer_ca" : null, "filters" : [ ], "last_sync" : "2011-12-09T19:38:31-05:00", "id" : "some-id", "repomd_xml_path" : "/tmp/pulp//repos/repos/pulp/pulp/fedora-14/x86_64/repodata/repomd.xml", "preserve_metadata" : false, "_ns" : "repos", "publish" : true, "source" : { "url" : "http://repos.fedorapeople.org/repos/pulp/pulp/fedora-14/x86_64/", "type" : "remote" }, "sync_in_progress" : false, "packagegroups" : { }, "files" : [ ], "relative_path" : "repos/pulp/pulp/fedora-14/x86_64", "arch" : "i386", "sync_schedule" : null, "packages" : [ ], "group_gz_xml_path" : "", "feed_cert" : null, "name" : "some name", "feed_ca" : null, "notes" : { }, "groupid" : [ ], "content_types" : "yum", "clone_ids" : [ "clone-some-id-parent" ], "packagegroupcategories" : { }, "group_xml_path" : "", "release" : null, "checksum_type" : "sha256", "sync_options" : { }, "errata" : { } }





More information about the Pulp-list mailing list