Description of problem: On systems with RHSM subscriptions and a subscription-manager version that supports repo-override, occasionally a repo-override operation can fail due to some upstream error (e.g. 502 or 500 HTTP errors are what I have seen in the past). oo-admin-yum-validator doesn't process the error code subscription-manager generates in these instances, but it should Version-Release number of selected component (if applicable): openshift-enterprise-yum-validator-2.0.11.5-1.el6op How reproducible: Not very - it depends on a failure on systems that we don't have control over Steps to Reproduce: 1. run oo-admin-yum-validator -e -f 2. if step 1 doesn't cause a failure, run subscription-manager repo-override --remove-all and re-run step 1 3. Actual results: The subscription-manager error is displayed in the same output stream as the yum-validator output Expected results: yum-validator would detect the failure and retry the operation a few times before failing Additional info: Because of the nature of the failures I've seen I think this is best implemented as retry with expanding timeout
Verify step: env: ose2.0.z/2014-12-15.3 Setup: 1.Register rhsm in env 2.Install oo-admin-yum-validator and yum-plugin-priorities Actions: 1.subscription-manager repo-override --repo=rhel-6-server-ose-2.0-jbosseap-rpms --add=enabled:0 2.Modify "/usr/lib64/python2.6/site-packages/yumvalidator/check_sources.py" file let it error in get_update_override_cmd, then execute "oo-admin-yum-validator -o 2.0 -r client -r node-eap -f" output: ... A problem occured while using subscription-manager services. This often indicates a problem communicating with the subscription-manager server component. Please resolve the issue and try again. subscription-manager failed, with these arguments: /usr/sbin/subscription-manager repo-override --repo=rhel-6-server-ose-2.2-node-rpms --add=enabled:1 Can find it retried a few times before failing
(In reply to wangyanyan from comment #3) > Verify step: > env: ose2.0.z/2014-12-15.3 > Setup: > 1.Register rhsm in env > 2.Install oo-admin-yum-validator and yum-plugin-priorities > > Actions: > 1.subscription-manager repo-override > --repo=rhel-6-server-ose-2.0-jbosseap-rpms --add=enabled:0 > 2.Modify "/usr/lib64/python2.6/site-packages/yumvalidator/check_sources.py" > file let it error in get_update_override_cmd, then execute > "oo-admin-yum-validator -o 2.0 -r client -r node-eap -f" > > output: > ... > A problem occured while using subscription-manager services. This often > indicates a problem communicating with the subscription-manager server > component. Please resolve the issue and try again. > > subscription-manager failed, with these arguments: > /usr/sbin/subscription-manager repo-override > --repo=rhel-6-server-ose-2.2-node-rpms --add=enabled:1 > > Can find it retried a few times before failing Modify output output: ... A problem occured while using subscription-manager services. This often indicates a problem communicating with the subscription-manager server component. Please resolve the issue and try again. subscription-manager failed, with these arguments: /usr/sbin/subscription-manager repo-override --repo=rhel-6-server-ose-2.0-jbosseap-rpms --add=enabled:1 Can find it retried a few times before failing
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-0053.html