[Pulp-list] Missing resources distributor=yum_distributor

Brian Bouterse bbouters at redhat.com
Mon Nov 3 19:15:24 UTC 2014


Hi Jason,

Perhaps you have the right distributors installed, but maybe the distributor config associated with the 'Dev-EPEL-x86_64' repo is misconfigured in some may. I believe you can list the distributors using the repository with --details using pulp-admin or you can use GET on the api endpoint for the repository.

If the repo seems "broken as soon as you create it" listing the commands you used to make the repo would also be helpful.

-Brian


----- Original Message -----
> From: "Jason Ashby (IMS)" <AshbyJ at imsweb.com>
> To: pulp-list at redhat.com
> Sent: Monday, November 3, 2014 11:45:25 AM
> Subject: [Pulp-list] Missing resources distributor=yum_distributor
> 
> 
> 
> 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.
> 
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list




More information about the Pulp-list mailing list