Bug 1150150
Summary: | when you attach or remove subscriptions with OStree content, Ostree update report should log updates in proper section | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Shwetha Kallesh <skallesh> |
Component: | subscription-manager | Assignee: | William Poteat <wpoteat> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | alikins, bcl, bkearney, crog, stoner, wpoteat |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 11:48:14 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: | 1121117 |
Description
Shwetha Kallesh
2014-10-07 14:22:04 UTC
*** Bug 1253074 has been marked as a duplicate of this bug. *** fix in master commit cf0c9a652cc62ed06c5b1ef14922a5de4a749cef Author: William Poteat <wpoteat> Date: Thu Aug 13 08:23:01 2015 -0400 1150150: Ostree update report should log updates in proper section Verifying Version... [root@jsefler-7 ~]# rpm -q subscription-manager-plugin-ostree ostree subscription-manager-plugin-ostree-1.15.9-6.el7.x86_64 ostree-2015.6-4.atomic.el7.x86_64 Adding a subscription..... [root@jsefler-7 ~]# subscription-manager attach --auto Installed Product Current Status: Product Name: Red Hat Enterprise Linux Atomic Host Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@jsefler-7 ~]# tail -f /var/log/rhsm/rhsm.log 2015-08-18 15:09:50,198 [INFO] subscription-manager:10084 @ostree_content.py:34 - ostree update_content_hook plugin. 2015-08-18 15:09:50,199 [DEBUG] subscription-manager:10084 @__init__.py:85 - Searching for content of type: ostree 2015-08-18 15:09:50,200 [DEBUG] subscription-manager:10084 @config.py:199 - full_url: https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/x86_64/ostree/repo 2015-08-18 15:09:50,317 [DEBUG] subscription-manager:10084 @action_invoker.py:90 - Ostree update report: Ostree repo updates Updates: Added: remote "rhel-atomic-host-ostree" url: /content/dist/rhel/atomic/7/7Server/x86_64/ostree/repo gpg-verify: False tls-client-cert-path: /etc/pki/entitlement/9068605545642672994.pem tls-client-key-path: /etc/pki/entitlement/9068605545642672994-key.pem tls-ca-path: None Deleted: 2015-08-18 15:09:50,324 [DEBUG] subscription-manager:10084 @entbranding.py:47 - BrandInstaller ent_certs: [] Removing a subscription..... [root@jsefler-7 ~]# subscription-manager remove --all 1 subscription removed at the server. 1 local certificate has been deleted. [root@jsefler-7 ~]# tail -f /var/log/rhsm/rhsm.log 2015-08-18 16:10:17,491 [INFO] subscription-manager:13753 @ostree_content.py:34 - ostree update_content_hook plugin. 2015-08-18 16:10:17,492 [DEBUG] subscription-manager:13753 @__init__.py:85 - Searching for content of type: ostree 2015-08-18 16:10:17,607 [DEBUG] subscription-manager:13753 @action_invoker.py:90 - Ostree update report: Ostree repo updates Updates: Added: Deleted: remote "rhel-atomic-host-ostree" url: https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/x86_64/ostree/repo gpg-verify: false tls-client-cert-path: /etc/pki/entitlement/9068605545642672994.pem tls-client-key-path: /etc/pki/entitlement/9068605545642672994-key.pem tls-ca-path: /etc/rhsm/ca/redhat-uep.pem 2015-08-18 16:10:17,611 [DEBUG] subscription-manager:13753 @entbranding.py:47 - BrandInstaller ent_certs: [] Updating a subscription.... [root@jsefler-7 ~]# /usr/libexec/rhsmcertd-worker Updating entitlement certificates & repositories Total updates: 0 Found (local) serial# [7555636081254561814L] Expected (UEP) serial# [7555636081254561814] Added (new) <NONE> Deleted (rogue): <NONE> Report status: 1 updates: [] exceptions: Fact updates status: None updates: [] exceptions: Package profile updates status: 0 updates: [] exceptions: Installed Products status: 0 updates: [] exceptions: [root@jsefler-7 ~]# tail -f /var/log/rhsm/rhsm.log 2015-08-18 16:40:41,952 [INFO] rhsmcertd-worker:16376 @ostree_content.py:34 - ostree update_content_hook plugin. 2015-08-18 16:40:41,954 [DEBUG] rhsmcertd-worker:16376 @__init__.py:85 - Searching for content of type: ostree 2015-08-18 16:40:41,956 [DEBUG] rhsmcertd-worker:16376 @config.py:199 - full_url: https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/x86_64/ostree/repo 2015-08-18 16:40:42,069 [DEBUG] rhsmcertd-worker:16376 @action_invoker.py:90 - Ostree update report: Ostree repo updates Updates: Added: remote "rhel-atomic-host-ostree" url: /content/dist/rhel/atomic/7/7Server/x86_64/ostree/repo gpg-verify: False tls-client-cert-path: /etc/pki/entitlement/7555636081254561814.pem tls-client-key-path: /etc/pki/entitlement/7555636081254561814-key.pem tls-ca-path: None Deleted: remote "rhel-atomic-host-ostree" url: https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/x86_64/ostree/repo gpg-verify: false tls-client-cert-path: /etc/pki/entitlement/7555636081254561814.pem tls-client-key-path: /etc/pki/entitlement/7555636081254561814-key.pem tls-ca-path: /etc/rhsm/ca/redhat-uep.pem 2015-08-18 16:40:42,074 [DEBUG] rhsmcertd-worker:16376 @base_action_client.py:85 - running lib: <subscription_manager.factlib.FactsActionInvoker object at 0x17178d0> VERIFIED: When adding a subscription that provides ostree content, the rhsm.log now reports the changes to /etc/ostree/remotes.d/redhat.conf in the "Added" section of the log. VERIFIED: When removing a subscription that provides ostree content, the rhsm.log now reports the changes to /etc/ostree/remotes.d/redhat.conf in the "Deleted" section of the log VERIFIED: When updating a subscription that provides ostree content, the rhsm.log now reports the changes to /etc/ostree/remotes.d/redhat.conf in both the "Added" and "Deleted" section of the log (I'm not entirely sure if this is the desired behavior). 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://rhn.redhat.com/errata/RHBA-2015-2122.html |