Description of problem: If you set up a repo with --schedules option and tail pulp.log you can see that the repo sync is not logged in the pulp.log. If you check /var/lib/pulp/ you can see that the repo sync is completed Here is the irc conversation for reference <preethi> jdob, ping <jdob> preethi: pong <preethi> jdob, so the sync that is setup through schedules, does not get logged in the pulp.log, is that the correct behavior <jdob> hrm, you mean the sync itself when it runs doesnt get logged? <jdob> oh, ya know what, you're right <jdob> cause it runs outside of the server where logging is configured <jdob> please file a bug for that <jdob> i totally hadnt thought of that
commit 7df333427617a0246a0611791ed624761c51b7db tree 5ddbaa9535f2e96af906c0919c44d56342580cd9 641912 - Added call to start logging on cron initiated scripts. src/pulp/server/api/repo.py src/pulp/server/auditing.py I added the logging configuration call to the auditing cull operations which function according to the same model.
Fixed in build 0.76.
logging is being done now. Reopening though as I see this error in pulp.log 2010-10-28 09:15:07,257 [INFO][MainThread] mkdir() @ keystore.py:176 - mkdir: /var/lib/pulp/published/gpg/tmp/pulp_schedule_test 2010-10-28 09:15:07,262 [ERROR][MainThread] keyfiles() @ keystore.py:135 - /var/lib/pulp/repos/tmp/pulp_schedule_test/packages Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/api/keystore.py", line 129, in keyfiles f = open(fp) IOError: [Errno 21] Is a directory: u'/var/lib/pulp/repos/tmp/pulp_schedule_test/packages' 2010-10-28 09:15:07,273 [ERROR][MainThread] keyfiles() @ keystore.py:135 - /var/lib/pulp/repos/tmp/pulp_schedule_test/repodata Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/api/keystore.py", line 129, in keyfiles f = open(fp) IOError: [Errno 21] Is a directory: u'/var/lib/pulp/repos/tmp/pulp_schedule_test/repodata' 2010-10-28 09:15:07,770 [INFO][MainThread] add_packages_from_dir() @ repo_sync.py:161 - No image files to import to repo..
Jeff - Can you take a look at this? For some reason the repo sync schedules are barfing due to GPG related issues.
Fixed: 75ad0cc598217c9b2726a7a5d636c21767f034f3 Directories skipped.
Fixed in 0.77.
Fixed in build 0.78.
There is another bug open on the error we see in the pulp.log verified [root@preethi ~]# pulp-admin -u admin -p admin repo create --id=f13_test_relative --feed=yum:http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-13/x86_64/ --schedule="*/5 * * * *" --relativepath=/tmp/pulp_schedule_test/ Successfully created repository [ f13_test_relative ] [root@preethi ~]# pulp-admin repo schedules +------------------------------------------+ Available Repository Schedules +------------------------------------------+ Label f13_test_relative Schedule */5 * * * * Label f14 Schedule None Label f13 Schedule None tail -f /var/log/pulp/pulp.log 2010-11-08 10:40:04,632 [INFO][MainThread] mkdir() @ keystore.py:178 - mkdir: /var/lib/pulp/published/gpg/tmp/pulp_schedule_test 2010-11-08 10:40:04,634 [ERROR][MainThread] keyfiles() @ keystore.py:137 - /var/lib/pulp/repos/tmp/pulp_schedule_test/packages Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/api/keystore.py", line 131, in keyfiles f = open(fp) IOError: [Errno 21] Is a directory: u'/var/lib/pulp/repos/tmp/pulp_schedule_test/packages' 2010-11-08 10:40:04,635 [ERROR][MainThread] keyfiles() @ keystore.py:137 - /var/lib/pulp/repos/tmp/pulp_schedule_test/repodata Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/api/keystore.py", line 131, in keyfiles f = open(fp) IOError: [Errno 21] Is a directory: u'/var/lib/pulp/repos/tmp/pulp_schedule_test/repodata' 2010-11-08 10:40:05,170 [INFO][MainThread] add_packages_from_dir() @ repo_sync.py:161 - No image files to import to repo..
Closing with community release pulp-0.0.139-1.fc14.noarch