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
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Container Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
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:
Last Closed: 2016-07-27 09:27:08 UTC
Target Upstream Version:

Attachments (Terms of Use)

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@redhat.com

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
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
    hammer ostree-branch [OPTIONS] SUBCOMMAND [ARG] ...

 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

 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
    ID:   7
    Name: ostree
GPG Key:            

    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
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
 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

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.


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