[Pulp-list] Pulp 2.4.1 with mongodb authentication - can't upload RPMs

Randy Barlow rbarlow at redhat.com
Wed Oct 1 17:55:02 UTC 2014


On 09/30/2014 10:15 PM, Trey Dockendorf wrote:
> I am getting errors when attempting to upload RPMs via pulp-admin that
> point to authorization problems with MongoDB with "auth=true" in my
> mongo config.

Hi Trey,

Pulp 2.4.1 has issues with MongoDB authorization[0]. From your logs, I
believe this message is due to the referenced bug:

Sep 30 20:51:49 repo01 pulp: celery.worker.job:CRITICAL: Task
pulp.server.async.tasks._reserve_resource[dce4a7a5-fa98-4ee7-a931-860162da76a5]
INTERNAL ERROR: OperationFailure(u'not authorized to create index on
pulp_database.celery_taskmeta',)

We do plan for this to be fixed with 2.5.0, and I've personally been
developing with only readWrite and dbAdmin[1] permissions on our master
branch so you can expect our MongoDB authorization support to improve in
the future.

You will have to grant dbAdmin permissions to your Pulp user, however,
as Pulp does need permissions to create indices.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1132609
[1] http://docs.mongodb.org/manual/reference/built-in-roles/#dbAdmin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20141001/82ca5dc7/attachment.sig>


More information about the Pulp-list mailing list