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