Project

General

Profile

Bug #22431

After upgrading hammer credentials are not migrated to new location - Invalid username or password

Added by Martin Bacovsky over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Category:
Installer
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:

Upgrading 6.2 -> 6.3 public beta does not migrate hammer login credentials from ~/.hammer/cli_config.yml (6.1, 6.2) to ~/.hammer/cli.modules.d/foreman.yml (new location in 6.3) which leads to error

  1. hammer organization list
    Invalid username or password

~/.hammer/cli.modules.d/foreman.yml contained some random string as a password

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

satellite 6.2.12 upgraded to 6.3 public beta

[root@provisioning ~]# rpm -qa | egrep "satellite|hammer"
satellite-cli-6.3.0-21.0.beta.el7sat.noarch
satellite-common-6.3.0-21.0.beta.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_admin-0.0.7-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.6-1.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3.3-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman-0.11.0.3-1.el7sat.noarch
tfm-rubygem-foreman_theme_satellite-1.0.4.11-1.el7sat.noarch
tfm-rubygem-hammer_cli_csv-2.3.0-1.el7sat.noarch
satellite-6.3.0-21.0.beta.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.6-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_discovery-1.0.0-1.el7sat.noarch
satellite-installer-6.3.0.9-1.beta.el7sat.noarch
tfm-rubygem-hammer_cli-0.11.0.1-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_openscap-0.1.5-1.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_katello-0.11.3.1-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.12-1.fm1_15.el7sat.noarch
satellite-capsule-6.3.0-21.0.beta.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_virt_who_configure-0.0.3-1.el7sat.noarch

How reproducible:

Steps to Reproduce:
1. Upgrade to 6.3 with stored hammer credentials
2. Run hammer command

Actual results:

  1. hammer organization list
    Invalid username or password

After satellite upgrade


Related issues

Copied from Installer - Bug #22250: After upgrading hammer credentials are not migrated to new location - Invalid username or passwordClosed2018-01-11

Associated revisions

Revision c4504414 (diff)
Added by Martin Bacovsky over 2 years ago

Fixes #22431 - prevent migration of custom hammer credentials

History

#1 Updated by Martin Bacovsky over 2 years ago

  • Copied from Bug #22250: After upgrading hammer credentials are not migrated to new location - Invalid username or password added

#2 Updated by Martin Bacovsky over 2 years ago

  • Pull request deleted (https://github.com/theforeman/foreman-installer/pull/260)

#3 Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/581 added

#4 Updated by Martin Bacovsky over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#5 Updated by Andrew Kofink over 2 years ago

  • Legacy Backlogs Release (now unused) set to 339

Also available in: Atom PDF