Bug 1674540

Summary: hosted-engine deploy (restore-from-file) fails with Authentication Error for None@N/A
Product: [oVirt] ovirt-hosted-engine-setup Reporter: André Liebe <andre.liebe>
Component: GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED DUPLICATE QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: high    
Version: 2.3.2CC: andre.liebe, bugs, Matthew.r
Target Milestone: ovirt-4.3.3   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-25 13:36:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
he setup log none

Description André Liebe 2019-02-11 15:32:30 UTC
Created attachment 1529066 [details]
he setup log

Description of problem:
hosted-engine --deploy (with restoring from backup) fails with given error message
Error during SSO authentication access_denied : Cannot authenticate user 'None@N/A': No valid profile found in credentials..


Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.3.3-1.el7.noarch


How reproducible:


Steps to Reproduce:
1. using a host=lvh3 which was part of an hosted-engina-ha 3.4 cluster before, but put to maintenance beforehand
2. power down existing hosted-engine (in global maintenance mode)
3. remove old packages "yum remove ovirt*setup*"
4. yum install ovirt-hosted-engine-setup
4b) workaround a restore task BUG: sed -i.bak 's/STORAGE_DOMAIN_NAME/he_storage_domain_name/' /usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/restore_backup.yml
5. cleanup by running: ovirt-hosted-engine-cleanup
6. copy existing (full) backup to local system
7. run hosted-engine --deploy --restore-from-file=/root/old-backup.tar.gz


Actual results:
engine-setup fails

Expected results:
engine-setup succeed

Comment 1 Sandro Bonazzola 2019-02-20 08:08:22 UTC
Is this a tentative to restore a 3.4 backup into a 4.3 engine?

Comment 2 André Liebe 2019-02-20 08:25:03 UTC
Oh, Sorry. This was a typo. It is a 4.3 backup which I was trying to restore in order to switch HE storage domain from gluster to nfs.
Whole cluster/datacenter and HE was upgraded to 4.3.0 before.

Comment 3 Sandro Bonazzola 2019-02-27 08:36:19 UTC
May be related to bug #1660595

Comment 4 Sandro Bonazzola 2019-03-06 08:15:57 UTC
*** Bug 1684235 has been marked as a duplicate of this bug. ***

Comment 5 André Liebe 2019-03-12 14:13:56 UTC
Is a manual workaround available or an ETA for 4.3.3?

Comment 6 Simone Tiraboschi 2019-03-25 13:36:28 UTC

*** This bug has been marked as a duplicate of bug 1660595 ***