Bug 758214

Summary: template info should contain the info about added distro
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: InstallerAssignee: Lukas Zapletal <lzap>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: NightlyCC: bkearney, kbidarka, lzap, mkoci
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-12 22:53:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Garik Khachikyan 2011-11-29 14:59:11 UTC
Description of problem:
Recently from CLI it is not possible to see the distro associated to the the template.

Version-Release number of selected component (if applicable):
katello-0.1.116-1.el6.x86_64

How reproducible:
always requestion template info

Steps to Reproduce:
1. prepare F15 repo and get it synchronized.
2. make a template, add the product there, 
3. list distro available for F15 and add to template as well
4. through CLI do template info - no info about distro is avail.  

Actual results:
Having distro field as well 

Expected results:
Having in the template info the information about added distro available

Additional info:

Comment 1 Lukas Zapletal 2011-12-15 08:59:05 UTC
c9be5a1c

Comment 2 Kedar Bidarkar 2011-12-22 16:13:19 UTC
The distribution field is still missing.
I have created here the template from the GUI.

[root@xxxx ~]# katello --username admin --password admin template info  --name "Dev Template" --org ACME_Corporation
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                  Template Info
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Id:                       1
Name:                     Dev Template
Revision:                 2
Description:
    Dev Template
Environment Id:           1
Parent Id:                None
Products:
    Fedora15
Packages:
    createrepo
Parameters:
    
Package Groups:
    Virtualization
Package Group Categories:
    

[root@xxxx ~]# rpm -qav | grep -i katello 
katello-cli-common-0.1.30-1.el6.noarch
katello-glue-foreman-0.1.154-1.el6.noarch
katello-certs-tools-1.0.1-1.el6.noarch
katello-common-0.1.154-1.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-configure-0.1.46-1.el6.noarch
katello-0.1.154-1.el6.noarch
katello-all-0.1.154-1.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-0.1.30-1.el6.noarch
katello-glue-pulp-0.1.154-1.el6.noarch
katello-glue-candlepin-0.1.154-1.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch

Comment 3 Lukas Zapletal 2012-01-23 14:21:09 UTC
Distribution info command was never added to the template show CLI command. It is a separate command.

@Bryan - should I add it?

[root@ofed ~]# kk distribution list --repo repo --product product
-----------------------------------------------------------------------------------------------
                                 Distribution List For Repo 1

 Id                                    Description                          
-----------------------------------------------------------------------------------------------
 ks-TestFamily-TestVariant-16-x86_64   ks-TestFamily-TestVariant-16-x86_64  

[root@ofed ~]# kk distribution info --id ks-TestFamily-TestVariant-16-x86_64 --repo_id 1
-----------------------------------------------------------------------------------------------
                                   Distribution Information
-----------------------------------------------------------------------------------------------

Id:          ks-TestFamily-TestVariant-16-x86_64
Description: ks-TestFamily-TestVariant-16-x86_64
Family:      TestFamily
Variant:     TestVariant
Version:     16
Files:
    /var/lib/pulp/distributions/ks-TestFamily-TestVariant-16-x86_64/test2.img
    /var/lib/pulp/distributions/ks-TestFamily-TestVariant-16-x86_64/test1.img
    /var/lib/pulp/distributions/ks-TestFamily-TestVariant-16-x86_64/empty.iso
    /var/lib/pulp/distributions/ks-TestFamily-TestVariant-16-x86_64/.treeinfo

Comment 4 Lukas Zapletal 2012-01-23 14:26:43 UTC
Adding there...

Comment 5 Bryan Kearney 2014-01-21 19:08:11 UTC
Moving to Sat6 to be tracked there. Upstream bugs are moving to redmine.

Comment 7 Lukas Zapletal 2014-03-12 10:23:12 UTC
Bug is irrelevant because of the new CLI "hammer"

Comment 8 Bryan Kearney 2014-03-12 22:53:19 UTC
Closing old bugs which are not relevant based on new UI and CLI