[Pulp-list] Error with Nosetest

Jay Dobies jason.dobies at redhat.com
Wed Jan 26 13:16:21 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This might have happened if you had the RPMs installed and then changed
over to the developer setup. Did you run "python pulp-dev.py --debug
- --install" ? That should create any directories you need and set the
right permissions.

That said, I'm a bit curious about that test. They should be
configurable so that we're not writing to real directories like /etc/pki
during their runs. I'll file a bug for that.

On 01/25/2011 07:06 PM, Jason Rist wrote:
> Hey All - Did the full gamut of upgrades and I ran nosetests to see if
> everything passed.  I have one test that isn't passing, so I'm just
> curious if I missed a perm somewhere?  Anyone seen this one?
> 
> nosetests -s -w test/ unit/
> 
> (tests that passed not included in this paste)...
> ======================================================================
> ERROR: test_create_product_repo (test_product_repo.TestProductRepo)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/workspace/pulp/test/unit/test_product_repo.py", line 63, in
> test_create_product_repo
>     self.rapi.create_product_repo(content_set, cert_data,
> groupid="test-product")
>   File "/workspace/pulp/test/unit/../../src/pulp/server/compat.py", line
> 40, in _decorator
>     return decorator(*args,**kwargs)
>   File "/workspace/pulp/test/unit/../../src/pulp/server/auditing.py",
> line 204, in _audit
>     result = method(*args, **kwargs)
>   File "/workspace/pulp/test/unit/../../src/pulp/server/api/repo.py",
> line 321, in create_product_repo
>     cert_files = self._write_certs_to_disk(groupid, cert_data)
>   File "/workspace/pulp/test/unit/../../src/pulp/server/api/repo.py",
> line 290, in _write_certs_to_disk
>     os.makedirs(cert_dir)
>   File "/usr/lib64/python2.6/os.py", line 157, in makedirs
>     mkdir(name, mode)
> OSError: [Errno 13] Permission denied: '/etc/pki/content/test-product'
> -------------------- >> begin captured logging << --------------------
> auditing: INFO: [2011-01-25 17:02:19.816492] Admin called RepoApi.clean on
> auditing: INFO: [2011-01-25 17:02:19.841817] Admin called
> RepoApi.create_product_repo on groupid: test-product, content_set:
> [{'content_set_label': 'rhel-server', 'content_rel_url':
> '/content/dist/rhel/server/$releasever/$basearch/os'}]
> --------------------- >> end captured logging << ---------------------
> 
> ----------------------------------------------------------------------
> Ran 262 tests in 90.375s
> 
> FAILED (errors=1)
> Exception in thread Thread-53 (most likely raised during interpreter
> shutdown):
> Traceback (most recent call last):
>   File "/usr/lib64/python2.6/threading.py", line 525, in __bootstrap_inner
>   File "/usr/lib64/python2.6/threading.py", line 477, in run
>   File
> "/workspace/pulp/test/unit/../../src/pulp/server/tasking/queue/fifo.py",
> line 100, in _dispatchException in thread Thread-18 (most likely raised
> during interpreter shutdown):Exception in thread Thread-32 (most likely
> raised during interpreter shutdown):
>  Exception in thread Thread-28 (most likely raised during interpreter
> shutdown):


- -- 
Jay Dobies
RHCE# 805008743336126
Freenode: jdob
http://pulpproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNQB6lAAoJEOMmcTqOSQHCnM8H/AgTH60MtJSINhguNsvmQHW/
u1oOwBYsEUeoHE5J7n0SUCKyUjfYjY+O0HypR4n7SEFUqqgzo2z5WTEGWRL9eDge
74oLv8DAkGzT9iaDSbt4NQyqjm4sAEPGjefzz9QssWSdr8DsY3Dc0Wyt9ATuBy3z
t2X6HP39Z0GNUczwZv7JtpXjooirHWXqgjF8HBv2gYSUggnW5p7aXcbfW1zizkEw
zEb2ViKliC5W4C9fLwSbjaXFKnh5j2X+dRsMksSu3IqqoEigSg4nMq//nr04hVrh
wzBMB7N3w6CIC3oS0Ttfgy774G4ybWAKCBr6e2PYinKkKHRzb9IhvHk0dy+HLSI=
=9N/v
-----END PGP SIGNATURE-----




More information about the Pulp-list mailing list