[Pulp-list] Missing resources distributor=yum_distributor

Ashby, Jason (IMS) AshbyJ at imsweb.com
Mon Nov 3 16:45:25 UTC 2014


Hey all,
This guy again.  I'm running Pulp 2.4.3 on CentOS 6.5.   I'm having trouble getting some consumers binding to the repositories.  Actually, the consumers register and bind OK with the server, but /etc/yum.repos.d/pulp.repo is never created.

The servers were built fresh with 2.4.3, but the consumers were upgraded from 2.3.

I don't see anything in ~/.pulp or /var/log/messages or /var/log/gofer/agent.log on the consumer, so looks good there.  I've tried restarting httpd,mongod,qpidd,gofer,pulp_workers,pulp_resourcemanager, pulp_celerybeat, but no luck.

I see a ton of tasks in State=Waiting, e.g.:

$ pulp-admin tasks details --task-id dc51af27-44f4-485c-9b70-97eeae2231ff
+----------------------------------------------------------------------+
                              Task Details
+----------------------------------------------------------------------+

Operations:       agent_bind
Resources:        foo-dev.example.com (consumer), Dev-EPEL-x86_64
                  (repository), yum_distributor (repository_distributor)
State:            Waiting
Start Time:       Unstarted
Finish Time:      Incomplete
Result:           Incomplete
Task Id:          dc51af27-44f4-485c-9b70-97eeae2231ff
Progress Report:

I think these tasks are in a waiting state because of this error, but I'm not 100% sure that's the reason:

..snip...
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     return p(lambda: process(processors))
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     result = handler()
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in <lambda>
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     return p(lambda: process(processors))
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 28, in process
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     return self.handle()
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     return self._delegate(fn, self.fvars, args)
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/web/application.py", line 405, in _delegate
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     return handle_class(f)
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     return tocall(*args)
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 227, in _auth_decorator
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     value = method(self, *args, **kwargs)
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/consumers.py", line 238, in POST
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     consumer_id, repo_id, distributor_id, notify_agent, binding_config, options)
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/pulp/server/tasks/consumer.py", line 45, in bind
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     binding = bind_manager.bind(consumer_id, repo_id, distributor_id, notify_agent, binding_config)
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/pulp/server/managers/consumer/bind.py", line 77, in bind
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     manager.get_distributor(repo_id, distributor_id)
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:   File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/distributor.py", line 61, in get_distributor
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR:     raise MissingResource(distributor=distributor_id)
Nov  3 11:31:55 pulp-srv-01 pulp: pulp.server.webservices.middleware.exception:ERROR: MissingResource: Missing resource(s): distributor=yum_distributor


Seems to me like I've got that distributor installed on the server.

$ pulp-admin server distributors
+----------------------------------------------------------------------+
                         Supported Distributors
+----------------------------------------------------------------------+

Id:           iso_distributor
Display Name: ISO Distributor
Types:        iso

Id:           puppet_distributor
Display Name: Puppet Distributor
Types:        puppet_module

Id:           puppet_install_distributor
Display Name: Puppet Install Distributor
Types:        puppet_module

Id:           yum_distributor
Display Name: Yum Distributor
Types:        rpm, srpm, drpm, erratum, package_group, package_category,
              distribution, yum_repo_metadata_file

Id:           export_distributor
Display Name: Export Distributor
Types:        rpm, srpm, drpm, erratum, distribution, package_category,
              package_group

Id:           puppet_file_distributor
Display Name: Puppet File Distributor
Types:        puppet_module


Thoughts, ideas?  Thanks

________________________________

Information in this e-mail may be confidential. It is intended only for the addressee(s) identified above. If you are not the addressee(s), or an employee or agent of the addressee(s), please note that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender of the error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20141103/0bd0c7fd/attachment.htm>


More information about the Pulp-list mailing list