Bug 1526828
| Summary: | After upgrading to 6.3 hammer credentials are not migrated to new location - Invalid username or password | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Michal Dekan <mdekan> | ||||
| Component: | Installation | Assignee: | Martin Bacovsky <mbacovsk> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Jitendra Yejare <jyejare> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.3.0 | CC: | ajambhul, bbuckingham, ehelms, inecas, jyejare, mbacovsk, mdekan | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | katello-installer-base-3.4.5.23-1,katello-installer-base-3.4.5.24-1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-02-21 16:54:17 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: | |||||||
| Attachments: |
|
||||||
|
Description
Michal Dekan
2017-12-17 20:02:55 UTC
@martin: could you have a look at this? I wonder if this could be somehow related to https://community.theforeman.org/t/hammer-username-password-not-working-after-upgrading-to-katello-3-5/7957/9 I was not able to reproduce yet. Do we have the machine at hand? Can I have the foreman-debug or sosreport? Was the machine upgraded from 6.1 or was it 6.2 fresh install? Any interesting configuration tweaks? Created attachment 1379944 [details]
foreman-debug from satellite 6.2.12 prior to upgrade
Thanks for the debug info. The way to reproduce is 1/ install satellite 6.2 2/ change admin password in the UI 3/ update your hammer config to the new password 4/ upgrade to 6.3 (without specifying the --admin-password on the installer CLI) 5/ run hammer os list and see the error The problem is that the hammer config changed the location and is created with the admin credentials stored in answer file [1]. Workaround is to run the upgrade with --admin-password <current admin password> or changing the value in answer file prior the upgrade. The config is not replaced later by puppet (even not when changed) so this issue is present only during upgrade. [1] /etc/foreman-installer/scenarios.d/satellite-answers.yaml Created redmine issue http://projects.theforeman.org/issues/22250 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/22431 has been resolved. Verified !
@ Satellite 6.3 snap 35
Steps:
1. Satellite 6.2 with hammer config creds saved under ~/.hammer/cli_config.yml
2. Upgraded to satellite 6.3
3. Verify if hammer commands return results without providing the credentials
Observation:
1. Hammer commands returned correct result of command without providing credentials.
2. No errors were thrown from hammer for invalid creds
3. The cli_config.yml carry forworded to 6.3 from 6.2 as it is, so the hammer is reading credentials from that file only.
4. The new .hammer/cli.modules.d/foreman.yml file is created but its empty.
---
:foreman: {}
5. Hammer auth status post upgrade
# hammer auth status
Using configured credentials for user 'admin'.
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, 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-2018:0336
|