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 1488150

Summary: Unable to get host's content source via hammer
Product: Red Hat Satellite Reporter: Andrii Balakhtar <abalakht>
Component: Content ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-05 17:22:15 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 Andrii Balakhtar 2017-09-04 13:07:05 UTC
Description of problem:
Bug #1260697 introduced ability to set content source for host via hammer. However, it's currently not possible to see what exactly was set, 'Content Source' field is not returned by 'host info' command.

Version-Release number of selected component (if applicable):
Satellite 6.3.0 Snap 13

How reproducible:
Always

Steps to Reproduce:
1. Create a host, specify content source:
hammer host create --medium-id="44" --ip="##.###.##.##" --location-id="2" --operatingsystem-id="2" --domain-id="1" --partition-table-id="87" --content-source-id="1" --mac="76:c6:19:18:42:87" --architecture-id="1" --organization="sRfrD2" --name="JidqoOmJgX" --root-password="uIBJLylU"
Message,Id,Name
Host created,37,jidqoomjgx.example.com

2. Attempt to verify whether content source was actually set by using 'host info' command
hammer host info --id="37"

Actual results:
Content source is absent in output:
Id:                       37
Name:                     jidqoomjgx.example.com
Organization:             sRfrD2
Location:                 Default Location
Puppet CA Id:             
Puppet Master Id:         
Cert name:                jidqoomjgx.example.com
Managed:                  yes
Installed at:             
Last report:              
Network:                  
    IP:     ##.###.##.##
    MAC:    76:c6:19:18:42:87
    Domain: example.com
Network interfaces:       
 1) Id:          39
    Identifier:  
    Type:        interface (primary, provision)
    MAC address: 76:c6:19:18:42:87
    IP address:  ##.###.##.##
    FQDN:
Operating system:         
    Architecture:           x86_64
    Operating System:       RedHat 7.3
    Build:                  yes
    Medium:                 hJGrRT
    Partition Table:        Kickstart default
    Custom partition table:
Parameters:               

Additional info:          
    Owner Id:   3
    Owner Type: User
    Enabled:    yes
    Comment:
Content Information:      
    Content View:          
    Lifecycle Environment: 
    Applicable Packages:   
    Upgradable Packages:   
    Applicable Errata:     
        Enhancement: 
        Bug Fix:     
        Security:
Subscription Information: 
    UUID:            
    Last Checkin:    
    Service Level:   
    Release Version: 
    Autoheal:        
    Registered At:
Host Collections:         
 1) Id:   
    Name:

Expected results:
Content source is present in output


Additional info:

Comment 2 Brad Buckingham 2017-09-05 17:22:15 UTC

*** This bug has been marked as a duplicate of bug 1483252 ***