Red Hat Bugzilla – Bug 1314380
installer failed on enabling ostree plugin with error: '/usr/bin/yum -d 0 -e 0 -y list pulp-ostree-plugins' returned 1
Last modified: 2016-07-27 05:04:17 EDT
Description of problem: I installed sat6.2 snap2. and enabled ostree plugin using "foreman-installer --katello-enable-ostree true". but it got failed due to below error: ~]# foreman-installer --katello-enable-ostree true Execution of '/usr/bin/yum -d 0 -e 0 -y list pulp-ostree-plugins' returned 1: Error: No matching Packages to list /Stage[main]/Pulp::Install/Package[pulp-ostree-plugins]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list pulp-ostree-plugins' returned 1: Error: No matching Packages to list Execution of '/usr/bin/yum -d 0 -e 0 -y list ostree' returned 1: Error: No matching Packages to list /Stage[main]/Pulp::Install/Package[ostree]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list ostree' returned 1: Error: No matching Packages to list Installing Done [100%] [..................................................................] Something went wrong! Check the log for ERROR-level output The full log is at /var/log/foreman-installer/katello.log # /usr/bin/yum -d 0 -e 0 -y list pulp-ostree-plugins Error: No matching Packages to list Version-Release number of selected component (if applicable): sat6.2 snap2 How reproducible: always Steps to Reproduce: 1. enabled ostree plugin 2. 3. Actual results: # /usr/bin/yum -d 0 -e 0 -y list pulp-ostree-plugins Error: No matching Packages to list Expected results: pulp-ostree-plugins should be available. Additional info:
Sat needs ostree installed prior to running "foreman-installer --katello-enable-ostree true". The workaround for now is to manually enable rhel-atomic-host-rpms and install ostree before running the foreman-installer. in other words -> # subscription-manager repos --enable=rhel-atomic-host-rpms # yum install ostree # foreman-installer --katello-enable-ostree true There are plans to not require you to do that and satellite 6 repo should have ostree rpm available in it..
As per comment2, I installed ostree package first from "rhel-atomic-host-rpms" subscription. And later ran installer with following cmd, but still getting same issue: ~]# foreman-installer --scenario katello --katello-enable-ostree true Execution of '/usr/bin/yum -d 0 -e 0 -y list pulp-ostree-plugins' returned 1: Error: No matching Packages to list /Stage[main]/Pulp::Install/Package[pulp-ostree-plugins]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list pulp-ostree-plugins' returned 1: Error: No matching Packages to list Installing Debug: /Stage[main]/Certs::Candlepin/Exec[import c [99%] [.................................................................. ] Installing Done [100%] [..................................................................] Something went wrong! Check the log for ERROR-level output The full log is at /var/log/foreman-installer/katello.log
Chris, Can you get pulp-ostree-plugins included in the comps as well as filing the appropriate Release Engineering ticket to ensure we ship the 'ostree' package in our repositories?
Thanks Eric, Mike, Partha. I installed/enabled ostree plugin now with sat6.2 snap3.1. Moving this to verified: ~]# foreman-installer --katello-enable-ostree true Installing Done [100%] [..................................................................] Success!
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-2016:1500