If createrepo fails for any reason, Beaker doesn't capture its output so we have no way to know what went wrong (apart from its exit status).
Beaker should capture stdout/stderr from createrepo and include that in the exception if createrepo fails so that it's logged.
Steps for verification:
1. Set /var/www/beaker/rpms/repodata permissions on beaker-devel to 555
2. Upload a new task
3. Error message in Web UI: Failed to import task: createrepo failed with exit status 1: Cannot create/verify /var/www/beaker/rpms/./repodata
4. Traceback in server-errors.log:
2013-03-27 00:18:18,394 bkr.server.model ERROR Failed to import tmp-distribution-reservesys-5.0-1.noarch.rpm
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/bkr/server/tasks.py", line 234, in save
File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 6314, in update_repo
% (retcode, output))
ValueError: createrepo failed with exit status 1:
Cannot create/verify /var/www/beaker/rpms/./repodata
(In reply to comment #3)
> Cannot create/verify /var/www/beaker/rpms/./repodata
Sad that createrepo doesn't say anything more helpful than that... but I suppose there's nothing we can do about it. :-(
(In reply to comment #4)
> (In reply to comment #3)
> > Cannot create/verify /var/www/beaker/rpms/./repodata
> Sad that createrepo doesn't say anything more helpful than that... but I
> suppose there's nothing we can do about it. :-(
yeah, i double checked it to see if it's actually createrepo telling us that :)
Beaker 0.12 has been released.