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 1317107 - [RFE] CLI - As a user I want to be able to view ostree info
Summary: [RFE] CLI - As a user I want to be able to view ostree info
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Container Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1321771
TreeView+ depends on / blocked
 
Reported: 2016-03-12 01:04 UTC by Partha Aji
Modified: 2019-09-26 17:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 09:27:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10074 0 None None None 2016-04-22 15:14:01 UTC
Red Hat Product Errata RHBA-2016:1501 0 normal SHIPPED_LIVE Red Hat Satellite 6.2 Capsule and Server 2016-07-27 12:28:58 UTC

Description Partha Aji 2016-03-12 01:04:27 UTC

Comment 1 Partha Aji 2016-03-12 01:04:29 UTC
Created from redmine issue http://projects.theforeman.org/issues/10074

Comment 2 Partha Aji 2016-03-12 01:04:32 UTC
Upstream bug assigned to daviddavis

Comment 3 Bryan Kearney 2016-03-12 03:08:37 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10074 has been closed
-------------
David Davis
Applied in changeset commit:hammer-cli-katello|50cfe5a818bb7b1f7ac1cc737be1d78c4e10438b.

Comment 5 Sachin Ghai 2016-03-29 09:08:13 UTC
Verified with Sat6.2 beta snap5.1

ostree info is available in 3 different places.

1) ostree tree info associated to Content-view. can be viewed like:

~]# hammer -u admin -p changeme content-view info --id 4 --organization-id 1
Warning: Option --id is deprecated. This option will be removed in Katello 2.5, Use --uuid
ID:                     4
Name:                   cv_ostree
Label:                  cv_ostree
Composite:              false
Description:            
Content Host Count:     0
Organization:           Default Organization
Yum Repositories:       

Docker Repositories:    

OSTree Repositories:    
 1) ID:    25
    Name:  Red Hat Enterprise Linux Atomic Host Trees
    Label: Red_Hat_Enterprise_Linux_Atomic_Host_Trees
Puppet Modules:

Comment 7 Sachin Ghai 2016-03-29 09:11:17 UTC
hammer -u admin -p changeme ostree-branch --help
Usage:
    hammer ostree-branch [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 info                          Show an ostree branch
 list                          List ostree_branches



Currently, due to some issue, I'm not able to view ostree-branches after sync. So holding the bz verification.

Comment 9 Sachin Ghai 2016-03-31 08:50:01 UTC
I can see ostree branch count under repository info page:

~]# hammer -u admin -p changeme repository info --organization-id 1 --id 8 --product ostree
ID:                 8
Name:               f23_ostree
Label:              f23_ostree
Organization:       Default Organization
Red Hat Repository: no
Content Type:       ostree
URL:                https://dl.fedoraproject.org/pub/fedora/linux/atomic/23/
Publish Via HTTP:   no
Published At:       https://cloud-qe-15.idmqe.lab.eng.bos.redhat.com/pulp/ostree/web/Default_Organization-ostree-f23_ostree
Relative Path:      Default_Organization/Library/custom/ostree/f23_ostree
Product:            
    ID:   7
    Name: ostree
GPG Key:            

Sync:               
    Status:         Success
    Last Sync Date: 21 minutes
Created:            2016/03/31 08:13:53
Updated:            2016/03/31 08:13:55
Content Counts:     
    OSTree Branches: 2

Comment 10 Sachin Ghai 2016-03-31 08:51:22 UTC
[root@cloud-qe-15 ~]# hammer -u admin -p changeme ostree-branch list
---|----------------------------------------------|--------
ID | NAME                                         | VERSION
---|----------------------------------------------|--------
2  | fedora-atomic/f23/x86_64/testing/docker-host | 23.94  
1  | fedora-atomic/f23/x86_64/docker-host         | 23.92  
---|----------------------------------------------|--------
[


[root@cloud-qe-15 ~]# hammer -u admin -p changeme ostree-branch info --id 2
ID:      2
Name:    fedora-atomic/f23/x86_64/testing/docker-host
Version: 23.94
Commit:  5089ab2e1ff5c9a57ad5dc823ee41679d122704b2590a51c1483b7c7730e0b7a
Date:    2016-03-31 08:23:39 UTC

Comment 11 Sachin Ghai 2016-03-31 09:52:59 UTC
So based on above comments, ostree info avialable in 3 places:

1. repository info - shows ostree branch count

2. cv info - shows ostree repo name/label/id etc

3. ostree-branch info and list commands


Ostree info under selected CV, along with info of other contents.


 ~]# hammer -u admin -p changeme content-view info --id 3 --organization-id 1
ID:                     3
Name:                   custom_ostree
Label:                  custom_ostree
Composite:              false
Description:            
Content Host Count:     0
Organization:           Default Organization
Yum Repositories:       
 1) ID:    2
    Name:  sat6tool7
    Label: sat6tool7
Docker Repositories:    
 1) ID:    24
    Name:  busybox
    Label: busybox
OSTree Repositories:    
 1) ID:    7
    Name:  rhel7_ostree
    Label: rhel7_ostree
 2) ID:    8
    Name:  f23_ostree
    Label: f23_ostree
Puppet Modules:         
 1) ID:      1
    Name:    motd
    Author:  jeffmccune
    Created: 2016/03/31 09:45:33
    Updated: 2016/03/31 09:45:33
Lifecycle Environments: 
 1) ID:   2
    Name: Dev
 2) ID:   1
    Name: Library
Versions:               
 1) ID:        3
    Version:   1.0
    Published: 2016/03/31 09:35:36
 2) ID:        4
    Version:   2.0
    Published: 2016/03/31 09:41:37
 3) ID:        5
    Version:   3.0
    Published: 2016/03/31 09:45:43
Components:             

Activation Keys:

Comment 13 errata-xmlrpc 2016-07-27 09:27:08 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:1501


Note You need to log in before you can comment on or make changes to this bug.