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 1851808 - Unable to set ssh password and sudo password when creating a REX job using hammer
Summary: Unable to set ssh password and sudo password when creating a REX job using ha...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.11.0
Assignee: Peter Koprda
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-29 05:02 UTC by Hao Chang Yu
Modified: 2022-07-05 14:28 UTC (History)
5 users (show)

Fixed In Version: tfm-rubygem-foreman_remote_execution-4.8.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 14:28:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 33087 0 Normal New Unable to set ssh password and sudo password when creating a REX job using hammer 2021-07-21 07:04:00 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:28:32 UTC

Description Hao Chang Yu 2020-06-29 05:02:57 UTC
Description of problem:
There are no parameters to specify the ssh password and the sudo password through "hammer job-invocation create" command. At the moment, user can only set the default ssh password and sudo password in the setting page or override them using hostgroup/host parameters.


# hammer job-invocation create --help
Usage:
    hammer job-invocation create [OPTIONS]

Options:
 --async                                                 Do not wait for the task
 --bookmark BOOKMARK_NAME                                Name to search by
 --bookmark-id BOOKMARK_ID                                
 --concurrency-level CONCURRENCY_LEVEL                   Run at most N tasks at a time
 --cron-line CRONLINE                                    Create a recurring execution
                                                         Cron line format 'a b c d e', where:
                                                           a. is minute (range: 0-59)
                                                           b. is hour (range: 0-23)
                                                           c. is day of month (range: 1-31)
                                                           d. is month (range: 1-12)
                                                           e. is day of week (range: 0-6)
 --description-format DESCRIPTION_FORMAT                 Override the description format from the template for this invocation only
 --dynamic                                               Dynamic search queries are evaluated at run time
 --effective-user EFFECTIVE_USER                         What user should be used to run the script (using sudo-like mechanisms).
                                                         Defaults to a template parameter or global setting.
 --end-time DATETIME                                     Perform no more executions after this time, used with --cron-line
                                                         Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
 --execution-timeout-interval EXECUTION_TIMEOUT_INTERVAL Override the timeout interval from the template for this invocation only
 --feature FEATURE                                       Remote execution feature label that should be triggered, job template
                                                         Assigned to this feature will be used
 --input-files INPUT FILES                               Read input values from files
                                                         Comma-separated list of key=file, where file is a path to a text file to be read
 --inputs INPUTS                                         Specify inputs from command line
                                                         Comma-separated list of key=value.
                                                         JSON is acceptable and preferred way for complex parameters
 --job-template JOB_TEMPLATE_NAME                        Name to search by
 --job-template-id JOB_TEMPLATE_ID                        
 --location LOCATION_NAME                                Location name
 --location-id LOCATION_ID                                
 --location-title LOCATION_TITLE                         Location title
 --max-iteration MAX_ITERATION                           Repeat a maximum of N times
 --organization ORGANIZATION_NAME                        Organization name
 --organization-id ORGANIZATION_ID                       Organization ID
 --organization-title ORGANIZATION_TITLE                 Organization title
 --randomized-ordering RANDOMIZED_ORDERING               Execute the jobs on hosts in randomized order
                                                         One of true/false, yes/no, 1/0.
 --search-query SEARCH_QUERY                              
 --start-at DATETIME                                     Schedule the execution for a later time
                                                         Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
 --start-before DATETIME                                 Execution should be cancelled if it cannot be started before --start-at
                                                         Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
 --time-span TIME_SPAN                                   Distribute tasks over N seconds
 -h, --help                                              Print help


How reproducible:
Always


Actual results:
Missing parameter to set ssh password and sudo password

Expected results:
able to set ssh password and sudo password

Comment 1 Mike McCune 2021-07-13 21:54:48 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 2 Peter Koprda 2021-07-21 07:03:59 UTC
Created redmine issue https://projects.theforeman.org/issues/33087 from this bug

Comment 4 Peter Ondrejka 2022-01-14 13:48:33 UTC
Verified in Satellite 7 snap 4, the --effective-user-password, --password and  --key-passphrase options have been added to job-invocation create and work as expected

Comment 7 errata-xmlrpc 2022-07-05 14:28:21 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 (Moderate: Satellite 6.11 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5498


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