Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1525854

Summary: Upgrade appliance command fails after update of hosted-engine packages from 3.6 to 4.2
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Artyom <alukiano>
Component: Plugins.GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.2.1CC: bugs
Target Milestone: ovirt-4.2.0Keywords: Triaged
Target Release: ---Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:12:58 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:
Bug Depends On:    
Bug Blocks: 1458709    
Attachments:
Description Flags
setup log none

Description Artyom 2017-12-14 08:29:51 UTC
Created attachment 1367863 [details]
setup log

Description of problem:
Upgrade appliance command fails after update of hosted-engine packages from 3.6 to 4.2

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

How reproducible:
Always

Steps to Reproduce:
1. Deploy 3.6 hosted-engine environment with at least one host
2. Update host hosted-engine packages to 4.2
3. Run # hosted-engine --upgrade-appliance

Actual results:
2017-12-14 09:30:58,254+0200 DEBUG otopi.context context._executeMethod:128 Stage customization METHOD otopi.plugins.gr_he_upgradeappliance.engine.misc.Plugin._check_spm
2017-12-14 09:30:58,255+0200 INFO otopi.plugins.gr_he_upgradeappliance.engine.misc misc._check_spm:170 Checking SPM status on this host
2017-12-14 09:30:58,255+0200 INFO otopi.plugins.gr_he_upgradeappliance.engine.misc engineapi.get_engine_api:53 Connecting to Engine
2017-12-14 09:31:05,727+0200 DEBUG otopi.context context._executeMethod:143 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-upgradeappliance/engine/misc.py", line 171, in _check_spm
    engine_api = engineapi.get_engine_api(self)
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/engineapi.py", line 122, in get_engine_api
    'The Engine API didn''t accept '
RuntimeError: The Engine API didnt accept the administrator password you provided

Expected results:
Upgrade appliance must ask me for engine user and password

Additional info:

Comment 1 Artyom 2017-12-19 13:11:07 UTC
Verified on ovirt-hosted-engine-setup-2.2.2-1.el7ev.noarch

Comment 2 Sandro Bonazzola 2017-12-20 11:12:58 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.