Nm, I got things going. Some of the consumer upgrades did not go so well earlier, and it appears they were missing some packages that probably were related to distributors. This fixed it:
sudo yum groupinstall pulp-consumer-qpid I know, it's right there in the docs, but Puppet currently does not have support for a yum groupinstall so I have to declare the packages I want to be installed individually. Looks like I missed pulp-puppet-consumer-extensions and python-pulp-puppet-common. Though these actually sound more puppet-related... It could also have been restarting goferd on the consumer side (though I swear I tried that several times). -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ashby, Jason (IMS) Sent: Monday, November 03, 2014 3:10 PM To: 'Brian Bouterse' Cc: [email protected] Subject: Re: [Pulp-list] Missing resources distributor=yum_distributor Here is an example task "Waiting" task and the details for the repository. This happens on a bunch of repos. $ pulp-admin tasks details --task-id 6097998e-9775-4d60-baa4-dc77d1d04a37 Operations: agent_bind Resources: foo.example.com (consumer), Dev-EPEL-x86_64 (repository), yum_distributor (repository_distributor) State: Waiting Start Time: Unstarted Finish Time: Incomplete Result: Incomplete Task Id: 6097998e-9775-4d60-baa4-dc77d1d04a37 Progress Report: $ pulp-admin repo list --details Id: Dev-EPEL-x86_64 Display Name: EPEL x86_64 - Development Description: None Content Unit Counts: Erratum: 3466 Package Category: 3 Package Group: 208 Rpm: 11127 Yum Repo Metadata File: 1 Notes: Importers: Config: Id: yum_importer Importer Type Id: yum_importer Last Sync: None Repo Id: Dev-EPEL-x86_64 Scheduled Syncs: Distributors: Auto Publish: True Config: Checksum Type: sha256 Http: False Https: True Relative URL: Dev-EPEL-x86_64 Distributor Type Id: yum_distributor Id: yum_distributor Last Publish: 2014-11-03T14:39:38-05:00 Repo Id: Dev-EPEL-x86_64 Scheduled Publishes: Auto Publish: False Config: Http: False Https: True Distributor Type Id: export_distributor Id: export_distributor Last Publish: None Repo Id: Dev-EPEL-x86_64 Scheduled Publishes: This repository was created with a basic config: pulp-admin rpm repo create --repo-id=Dev-EPEL-x86_64 This is a frozen repo, so there is no feed associated with it. My "live" EPEL repo was created with: pulp-admin rpm repo create --repo-id=EPEL-x86_64 --feed=https://mirror.umd.edu/fedora/epel/6Server/x86_64 and then I copy packages from one to the other like so: pulp-admin rpm repo copy all --from-repo-id= EPEL-x86_64 --to-repo-id=Dev-EPEL-x86_64 The repositories the hosts are binding to are in an "unconfirmed" state. $ pulp-admin consumer list Display Name: foo.example.com Description: None Bindings: Confirmed: Unconfirmed: Dev-CentOS65-updates-x86_64, DuoSecurity, Dev-CentOS65-updates-i386, CentOS65-os-i386, Dev-EPEL-i386, Dev-EPEL-x86_64, CentOS65-os-x86_64, Dev-Custom Notes: -----Original Message----- From: Brian Bouterse [mailto:[email protected]] Sent: Monday, November 03, 2014 2:15 PM To: Ashby, Jason (IMS) Cc: [email protected] Subject: Re: [Pulp-list] Missing resources distributor=yum_distributor 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)" <[email protected]> > To: [email protected] > 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 > [email protected] > https://www.redhat.com/mailman/listinfo/pulp-list ________________________________ 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 [email protected] https://www.redhat.com/mailman/listinfo/pulp-list ________________________________ 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 [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
