Bug 1488150 - Unable to get host's content source via hammer
Summary: Unable to get host's content source via hammer
Keywords:
Status: CLOSED DUPLICATE of bug 1483252
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-04 13:07 UTC by Andrii Balakhtar
Modified: 2017-09-19 14:23 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-05 17:22:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1260697 0 high CLOSED [RFE] As a CLI user, I should be able to set the Content Source for a host and hostgroup. 2021-06-10 13:02:08 UTC

Internal Links: 1260697

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


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