Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1314380

Summary: installer failed on enabling ostree plugin with error: '/usr/bin/yum -d 0 -e 0 -y list pulp-ostree-plugins' returned 1
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: PackagingAssignee: Mike McCune <mmccune>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bkearney, ehelms, mmccune, paji
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 09:04:17 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:

Description Sachin Ghai 2016-03-03 13:26:41 UTC
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:

Comment 2 Partha Aji 2016-03-03 20:09:36 UTC
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..

Comment 4 Sachin Ghai 2016-03-05 08:02:43 UTC
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

Comment 5 Mike McCune 2016-03-07 06:30:38 UTC
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?

Comment 9 Sachin Ghai 2016-03-15 11:03:53 UTC
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!

Comment 13 errata-xmlrpc 2016-07-27 09:04:17 UTC
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