Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1696731

Summary: Satellite-clone failed to setup hammer and wont prompt user to enter credentials
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: Satellite CloneAssignee: Lucie Vrtelova <lvrtelov>
Status: CLOSED WONTFIX QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: bbuckingham, sthirugn
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: 2019-04-16 13:14:13 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 Nikhil Kathole 2019-04-05 14:10:04 UTC
Description of problem:
If satellite backup is not having foreman-maintain hammer setup configured (/etc/foreman-maintain/foreman-maintain-hammer.yml) or wont have hammer credentials, satellite-clone will fail at

Upgrade Step: restart_services...
Redirecting to 'foreman-maintain service'
Running preparation steps required to run the next scenarios
================================================================================
Setup hammer: Configuring Hammer CLI...
Hammer admin password: stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device

                                                                      [FAIL]
Hammer configuration failed: Is the admin password correct? (it was stored in /etc/foreman-maintain/foreman-maintain-hammer.yml)Is the server down?
--------------------------------------------------------------------------------
Scenario [preparation steps required to run the next scenarios] failed.

The following steps ended up in failing state:

  [hammer-setup]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="hammer-setup"


katello-service restart failed! Check the output for error!
Upgrade step restart_services failed. Check logs for more information.



Version-Release number of selected component (if applicable): 

Satellite 6.5 snap 22

# rpm -q satellite-clone
satellite-clone-1.3.1-1.el7sat.noarch


How reproducible: always


Steps to Reproduce:
1. Setup satellite-clone to backup 6.4 db which wont have hammer setup
2. satellite-clone -y

Actual results:

satellite-clone wont prompt user for credentials and gives error

================================================================================
Setup hammer: Configuring Hammer CLI...
Hammer admin password: stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device

                                                                      [FAIL]


Expected results:

satellite-clone should successful and setup these hammer credentials.


Additional info:

Comment 4 sthirugn@redhat.com 2019-04-05 19:06:06 UTC
The real problem is not in satellite-clone but changed behavior in foreman-maintain - https://bugzilla.redhat.com/show_bug.cgi?id=1696862

Comment 5 Brad Buckingham 2019-04-11 20:06:55 UTC
Hi Nikhil,

Based upon Suresh's feedback in comment 4, should we close out this bugzilla?