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 803304

Summary: missing sync_plan & product relation methods in CLI
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: APIAssignee: Mike McCune <mmccune>
Status: CLOSED WONTFIX QA Contact: Garik Khachikyan <gkhachik>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.0CC: mkoci, mmccune, omaciel
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: 2014-03-18 17:38:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Garik Khachikyan 2012-03-14 12:04:38 UTC
Description of problem:
There are methods to set_plan and remove_plan for the product but no way currently to list the sync plans that product assigned to and list the products for particular test_plan.

Version-Release number of selected component (if applicable):
recent CFSE Beta5 & latest Katello

How reproducible:
always

Steps to Reproduce:
1.prepare a sync plan and set to any custom product.
2.try to find a way via CLI to list that info
3.
  
Actual results:
there is no way to find relation between product & sync_plan.

Expected results:
possible to find realtion of product/sync_plan

Additional info:

Comment 2 Mike McCune 2012-08-28 18:53:52 UTC
You can currently view the Sync Plan for any given product:

$ katello -u admin -p admin product list
--------------------------------------------------------------------------------
      Product List For Organization ACME_Corporation, Environment 'dev'

 Id              Name   Provider Id   Provider Name   Sync Plan Name   Last Sync             GPG key  
--------------------------------------------------------------------------------
 1345524714613   zoo    2             custom-one      plan1            2012/08/28 00:00:06            


Will add a list of products to the 'sync_plan info' command:

$ katello -u admin -p admin sync_plan info --name=plan1
--------------------------------------------------------------------------------
                                Sync Plan Info
--------------------------------------------------------------------------------

Id                  :          1
Name                :        plan1
Description         :
    None
Start date          :  2012/08/28 00:00:00
Interval            :    daily
Products Using Plan :    
             zoo
             foobar
             ACME Custom Prod1

Comment 3 Mike McCune 2012-09-10 15:26:01 UTC
moving to 2.0

Comment 4 Mike McCune 2014-03-18 17:38:21 UTC
This bug was closed because of a lack of activity.  If you feel this bug should be reconsidered for attention please feel free to re-open the bug with a comment stating why it should be reconsidered.