[Spacewalk-list] Error rhnpush

James Hogarth james.hogarth at gmail.com
Wed Dec 9 10:55:45 UTC 2009


It certainly sounds like it. Will put proper reproduction steps when I get
some spare time this afternoon now I know how to successfully reproduce it.



2009/12/9 Michael Mraka <michael.mraka at redhat.com>

> James Hogarth wrote:
> % Hmm... reproduced it and not sure the best way of dealing with it at this
> % point....
> %
> % After a silly thing (thankfully this was early in the process of getting
> % systems subscribed to the server so not much loss) I had to rebuild the
> % spacewalk repo yesterday.
> %
> % Sync'd the repos overnight and found the following:
> %
> % Repo's that had been sync'd via spacewalk-repo-sync had a directory owned
> by
> % root:root. Further down the tree they were owned by apache:apache. A
> package
> % that is destined for an existing directory via rhnpush naturally gets
> % permission denied for that folder but for a fresh folder of course there
> are
> % no problems with the rhnpush.
> %
> % The spacewalk-repo-sync python script starts as follows:
> %
> % def main():
> %
> %     # quick check to see if you are a super-user.
> %     if os.getuid() != 0:
> %         sys.stderr.write('ERROR: must be root to execute\n')
> %         sys.exit(8)
> %
> % There is then an obvious logical break here.....
> %
> % For now I'll add a recursive chown apache:apache to my daily cron sync
> % script so that rhnpush for in house packages isn't broken. Going forwards
> we
> % should probably have the spacewalk-repo-sync script check ownership of
> % /var/satellite and run as that owner perhaps....
> %
> % Thoughts?
>
> Hi James,
>
> I think it's an instance of bug
> https://bugzilla.redhat.com/show_bug.cgi?id=516767 .
> Could you please update bugzilla with your findings? Especially steps to
> reproduce (aka test plan) are welcome ;).
>
> Thanks.
>
>
> --
> Michael Mráka
> Satellite Engineering, Red Hat
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20091209/ad6e2eac/attachment.htm>


More information about the Spacewalk-list mailing list