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 1332908 - [RFE] Ability to add capsule as a content source using option content-source-id while creating host with hammer CLI
Summary: [RFE] Ability to add capsule as a content source using option content-source-...
Keywords:
Status: CLOSED DUPLICATE of bug 1260697
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.1.8
Hardware: All
OS: All
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: GSS_Sat6Beta_Tracker, GSS_Sat6_Tracker 1122832
TreeView+ depends on / blocked
 
Reported: 2016-05-04 10:52 UTC by Ranjan Kumar
Modified: 2020-08-13 08:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-31 08:58:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ranjan Kumar 2016-05-04 10:52:56 UTC
Description of problem:
1. Who is the customer behind the request?  
Account: name and acct # Fredrik Lindgren, Polismyndigheten
  
TAM customer: no  
SRM customer: no  
Strategic: yes  
  
2. What is the nature and description of the request?  
-->
Ability to add capsule as content-resource using option content-source-id.

Currently there is no option to add capsule as content-source while creating host using hammer CLI.
  
3. Why does the customer need this? (List the business requirements here)  
-->
Customer is unable to add content-source using hammer while creating host.
  
4. How would the customer like to achieve this? (List the functional requirements here)  
-->
Being able to use capsule as content resource while creating host using hamme CLI.
  
5. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.  
-->
By creating host using hamme CLI with capsule as content resource.
  
6. Is there already an existing RFE upstream or in Red Hat Bugzilla?  
-->
No
  
7. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?  
-->
Not specific
  
8. Is the sales team involved in this request and do they have any additional input?  
-->
No
  
9. List any affected packages or components.  
-->
hammer
rubygem-hammer_cli-0.1.4.13-1.el7sat.noarch

10. Would the customer be able to assist in testing this functionality if implemented?
-->
Probably yes.


hammer> hammer host update -h
Usage:
    hammer host update [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME                       Architecture name
 --architecture-id ARCHITECTURE_ID                       
 --ask-root-password ASK_ROOT_PW                        One of true/false, yes/no, 1/0.
 --build BUILD                                          One of true/false, yes/no, 1/0.
 --comment COMMENT                                      Additional information about this host
 --compute-attributes COMPUTE_ATTRS                     Compute resource attributes.
                                                        Comma-separated list of key=value.
 --compute-profile COMPUTE_PROFILE_NAME                 Name to search by
 --compute-profile-id COMPUTE_PROFILE_ID                 
 --compute-resource COMPUTE_RESOURCE_NAME               Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID               
 --domain DOMAIN_NAME                                   Domain name
 --domain-id DOMAIN_ID                                  Numerical ID or domain name
 --enabled ENABLED                                      One of true/false, yes/no, 1/0.
 --environment ENVIRONMENT_NAME                         Environment name
 --environment-id ENVIRONMENT_ID                         
 --hostgroup HOSTGROUP_NAME                             Hostgroup name
 --hostgroup-id HOSTGROUP_ID                             
 --id ID                                                 
 --image IMAGE_NAME                                     Name to search by
 --image-id IMAGE_ID                                     
 --interface INTERFACE                                  Interface parameters.
                                                        Comma-separated list of key=value.
                                                        Can be specified multiple times.
 --ip IP                                                not required if using a subnet with DHCP proxy
 --location LOCATION_NAME                               Location name
 --location-id LOCATION_ID                               
 --mac MAC                                              required for managed host that is bare metal, not required if it's a
                                                        virtual machine
 --managed MANAGED                                      One of true/false, yes/no, 1/0.
 --medium MEDIUM_NAME                                   Medium name
 --medium-id MEDIUM_ID                                   
 --model MODEL_NAME                                     Model name
 --model-id MODEL_ID                                     
 --name NAME                                            Host name
 --new-name NEW_NAME                                     
 --operatingsystem OPERATINGSYSTEM_TITLE                Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID                 
 --organization ORGANIZATION_NAME                       Organization name
 --organization-id ORGANIZATION_ID                      organization ID
 --owner OWNER_LOGIN                                    Login of the owner
 --owner-id OWNER_ID                                    ID of the owner
 --owner-type OWNER_TYPE                                Host's owner type
                                                        Possible value(s): 'User', 'Usergroup'
 --parameters PARAMS                                    Host parameters.
                                                        Comma-separated list of key=value.
 --partition-table, --ptable PARTITION_TABLE_NAME       Partition table name
 --partition-table-id, --ptable-id PARTITION_TABLE_ID    
 --progress-report-id PROGRESS_REPORT_ID                UUID to track orchestration tasks status, GET
                                                        /api/orchestration/:UUID/tasks
 --provision-method METHOD                              Possible value(s): 'build', 'image'
 --puppet-ca-proxy PUPPET_CA_PROXY_NAME                  
 --puppet-ca-proxy-id PUPPET_CA_PROXY_ID                 
 --puppet-class-ids, --puppetclass-ids PUPPET_CLASS_IDS Comma separated list of values.
 --puppet-classes PUPPET_CLASS_NAMES                    Comma separated list of values.
 --puppet-proxy PUPPET_PROXY_NAME                        
 --puppet-proxy-id PUPPET_PROXY_ID                       
 --realm REALM_NAME                                     Name to search by
 --realm-id REALM_ID                                    Numerical ID or realm name
 --root-pass ROOT_PASS                                  required if host is managed and value is not inherited from host group or
                                                        default password in settings
 --root-password ROOT_PW                                 
 --subnet SUBNET_NAME                                   Subnet name
 --subnet-id SUBNET_ID                                   
 --volume VOLUME                                        Volume parameters
                                                        Comma-separated list of key=value.
                                                        Can be specified multiple times.
 -h, --help                                             print help

Comment 1 Julio Entrena Perez 2016-05-24 14:44:32 UTC
http://projects.theforeman.org/issues/14762 ?
Related to bug 1260697 ?

Comment 2 Peter Vreman 2016-08-31 08:37:59 UTC
The BZ https://bugzilla.redhat.com/show_bug.cgi?id=1339613 requests content_source_id for the API. This can be used then also for hammer

Comment 3 Marek Hulan 2016-10-31 08:58:20 UTC

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


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