Bug 1146292
| Summary: | katello-agent will fail to start properly on future rhel releases (and subscription-manager releases) | |||
|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Justin Sherrill <jsherril> | |
| Component: | katello-agent | Assignee: | Justin Sherrill <jsherril> | |
| Status: | CLOSED ERRATA | QA Contact: | Tazim Kolhar <tkolhar> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.0.4 | CC: | achan, bbuckingham, bkearney, chrobert, cwelton, hiltona, jmontleo, kmurugad, mmccune, sthirugn, tbrodbec | |
| Target Milestone: | Unspecified | Keywords: | Triaged | |
| Target Release: | Unused | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| URL: | http://projects.theforeman.org/issues/7815 | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: |
A recent update in the Red Hat Subscription Manager (RHSM) package moved the ConsumerIdentity class location and prevented goferd from importing the katello plugin. This prevented all katello-agent functionality from working. A fix has been added to reference the new location for ConsumerIdentity. The katello plugin should import without any issues when goferd is started.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1163962 (view as bug list) | Environment: | ||
| Last Closed: | 2014-11-13 22:29:24 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1163962 | |||
|
Description
Justin Sherrill
2014-09-24 23:47:19 UTC
traceback running katello-package-upload
[root@dhcp129-85 ~]# katello-package-upload
Traceback (most recent call last):
File "/usr/sbin/katello-package-upload", line 19, in ?
import package_upload
File "/usr/lib/yum-plugins/package_upload.py", line 19, in ?
from subscription_manager import certmgr
ImportError: cannot import name certmgr
Connecting redmine issue http://projects.theforeman.org/issues/7553 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/7553 has been closed ------------- Xak Ru I found this module in https://github.com/alikins/subscription-manager-docs/blob/master/subscription_manager.certlib how to fix this error? In katello-agent 1.4 i don't see same errors. Only in katello-agent 2.0 ------------- Eric Helms After talking to Xak, this appears to be an issue with the newest subscription manager. They moved the location of ConsumerIdentity that katello-agent relies on (https://github.com/candlepin/subscription-manager/commit/c641b59240e46274087f90ed2e85514fe18b9176). Instead of being at: subscription_manager.certlib The ConsumerIdentity class looks like it is located at: subscription_manager.identity (https://github.com/candlepin/subscription-manager/blob/master/src/subscription_manager/identity.py#L28) ------------- Justin Sherrill Christian, see the comments above, there is a PR open to fix that issue (#4) https://github.com/Katello/katello-agent/pull/12 It should fix it for el6 and 7. It was introduced by a change to subscription-manager upstream. Note this is not fully fixed due to http://projects.theforeman.org/issues/7815 Moving back to assigned Moving to POST since upstream bug http://projects.theforeman.org/issues/7553 has been closed ------------- Xak Ru I found this module in https://github.com/alikins/subscription-manager-docs/blob/master/subscription_manager.certlib how to fix this error? In katello-agent 1.4 i don't see same errors. Only in katello-agent 2.0 ------------- Eric Helms After talking to Xak, this appears to be an issue with the newest subscription manager. They moved the location of ConsumerIdentity that katello-agent relies on (https://github.com/candlepin/subscription-manager/commit/c641b59240e46274087f90ed2e85514fe18b9176). Instead of being at: subscription_manager.certlib The ConsumerIdentity class looks like it is located at: subscription_manager.identity (https://github.com/candlepin/subscription-manager/blob/master/src/subscription_manager/identity.py#L28) ------------- Justin Sherrill Christian, see the comments above, there is a PR open to fix that issue (#4) https://github.com/Katello/katello-agent/pull/12 It should fix it for el6 and 7. It was introduced by a change to subscription-manager upstream. Upstream bug assigned to jsherril Moving to POST since upstream bug http://projects.theforeman.org/issues/7815 has been closed NOTE! there are 2 PRs/commits that need cherry picking: https://github.com/Katello/katello-agent/pull/12 https://github.com/Katello/katello-agent/pull/15 In that order VERIFIED:
*** This bug is verified in upstream. This fix should eventually land in future downstream builds ***
# rpm -qa | grep foreman
foreman-1.6.0.47-1.el7sat.noarch
foreman-compute-1.6.0.47-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.5-2.el7sat.noarch
foreman-gce-1.6.0.47-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-1.3.0-2.el7sat.noarch
foreman-libvirt-1.6.0.47-1.el7sat.noarch
foreman-proxy-1.6.0.30-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.0.4-2.el7sat.noarch
foreman-vmware-1.6.0.47-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch
foreman-selinux-1.6.0.15-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.9-1.1.el7sat.noarch
foreman-ovirt-1.6.0.47-1.el7sat.noarch
foreman-postgresql-1.6.0.47-1.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-proxy-1.0-1.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-client-1.0-1.noarch
rubygem-hammer_cli_foreman-0.1.1-16.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-2.0.6-1.1.el7sat.noarch
# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.26-1
subscription management rules: 5.11
subscription-manager: 1.12.14-7.el6
# tail -f /var/log/messages
Oct 31 07:34:42 hp-ml370g5-01 yum[24493]: Installed: pulp-rpm-handlers-2.4.3-1.el6sat.noarch
Oct 31 07:34:45 hp-ml370g5-01 goferd: [INFO][MainThread] gofer.agent.plugin:521 - plugin [builtin] loaded using: /usr/share/gofer/plugins/builtin.py
Oct 31 07:34:45 hp-ml370g5-01 yum[24493]: Installed: katello-agent-1.5.3-6.el6sat.noarch
Oct 31 07:34:45 hp-ml370g5-01 goferd: [INFO][MainThread] gofer.agent.plugin:521 - plugin [katelloplugin] loaded using: /usr/lib/gofer/plugins/katelloplugin.py
Oct 31 07:34:46 hp-ml370g5-01 goferd: [INFO][MainThread] rhsm.connection:659 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
Oct 31 07:34:46 hp-ml370g5-01 goferd: [INFO][MainThread] rhsm.connection:670 - Connection Built: host: subscription.rhn.redhat.com, port: 443, handler: /subscription
Oct 31 07:34:47 hp-ml370g5-01 goferd: [INFO][MainThread] katelloplugin:277 - reporting: {'enabled_repos': {'repos': [{'baseurl': ['https://cdn.redhat.com/content/aus/rhel/server/6/6Server/x86_64/os'], 'repositoryid': 'rhel-6-server-aus-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/eus/rhel/server/6/6Server/x86_64/os'], 'repositoryid': 'rhel-6-server-eus-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/mrg-g/2/os'], 'repositoryid': 'rhel-6-server-grid-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/htb/rhel/server/6/6Server/x86_64/os'], 'repositoryid': 'rhel-6-server-htb-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/mrg-g-execute/2/os'], 'repositoryid': 'rhel-6-server-mrg-grid-execute-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/mrg-r/2/os'], 'repositoryid': 'rhel-6-server-realtime-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os'], 'repositoryid': 'rhel-6-server-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/dist/rhs/server/2.0/x86_64/rhel/6.2/scalablefilesystem/os'], 'repositoryid': 'rhel-6.2-scalefs-server-for-rhs-2.0-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/dist/rhs/server/2.0/x86_64/rhel/6.2/os'], 'repositoryid': 'rhel-6.2-server-for-rhs-2.0-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/aus/rhel/server/6/6Server/x86_64/highavailability/os'], 'repositoryid': 'rhel-ha-for-rhel-6-server-aus-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/eus/rhel/server/6/6Server/x86_64/highavailability/os'], 'repositoryid': 'rhel-ha-for-rhel-6-server-eus-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/highavailability/os'], 'repositoryid': 'rhel-ha-for-rhel-6-server-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/hpn/os'], 'repositoryid': 'rhel-hpn-for-rhel-6-server-rpms'}, {'baseurl': ['https://cdn.redhat.com/content/aus/rhel/server/6/6Server/x86_64/loadbalancer/os'], 'reposi
Oct 31 07:34:48 hp-ml370g5-01 goferd: [ERROR][MainThread] katelloplugin:103 - send enabled report failed: Runtime Error Could not find resource for relative : /systems/e177350e-596b-4f7f-a6c0-ad3f0a5730f0/enabled_repos of full path: http://candlepin.dist.prod.ext.phx2.redhat.com/candlepin/systems/e177350e-596b-4f7f-a6c0-ad3f0a5730f0/enabled_repos at org.jboss.resteasy.core.registry.RootSegment.matchChildren:360
Oct 31 07:34:48 hp-ml370g5-01 goferd: [INFO][Actions] builtin:38 - Hello: [main] enabled=1 [messaging] url= uuid=admin.eng.bos.redhat.com
Oct 31 07:34:48 hp-ml370g5-01 goferd: [INFO][MainThread] gofer.transport.qpid.broker:69 - connecting: {subscription.rhn.redhat.com:5671}:|transport=SSL|host=subscription.rhn.redhat.com|port=5671|cacert=/etc/rhsm/ca/candlepin-local.pem|clientcert=/etc/pki/consumer/bundle.pem|userid=None|password=None|vhost=None
Oct 31 07:35:48 hp-ml370g5-01 goferd: [WARNING][MainThread] qpid.messaging:453 - recoverable error[attempt 1]: timed out
Oct 31 07:35:48 hp-ml370g5-01 goferd: [WARNING][MainThread] qpid.messaging:455 - sleeping 1 seconds
Oct 31 07:35:49 hp-ml370g5-01 goferd: [WARNING][Thread-2] qpid.messaging:537 - trying: subscription.rhn.redhat.com:5671
Oct 31 07:36:49 hp-ml370g5-01 goferd: [WARNING][Thread-2] qpid.messaging:453 - recoverable error[attempt 2]: timed out
Oct 31 07:36:49 hp-ml370g5-01 goferd: [WARNING][Thread-2] qpid.messaging:455 - sleeping 2 seconds
Oct 31 07:36:51 hp-ml370g5-01 goferd: [WARNING][Thread-2] qpid.messaging:537 - trying: subscription.rhn.redhat.com:5671
katello-agent works fine
VERIFIED against z-stream Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2014:1857 *** Bug 1158585 has been marked as a duplicate of this bug. *** |