Project

General

Profile

Actions

Bug #33087

closed

Unable to set ssh password and sudo password when creating a REX job using hammer

Added by Peter Koprda over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1851808

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.

  1. 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

Actions #1

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/624 added
Actions #2

Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/theforeman/hammer_cli_foreman_remote_execution/pull/41 added
Actions #3

Updated by Anonymous over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Adam Ruzicka over 2 years ago

  • Fixed in Releases foreman_remote_execution-4.8.0 added
Actions

Also available in: Atom PDF