Bug 2089803 - Rename tool fails on missing key shortLife
Summary: Rename tool fails on missing key shortLife
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Tools.Rename
Version: 4.5.0.8
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ovirt-4.5.1
: ---
Assignee: Milan Zamazal
QA Contact: Barbora Dolezalova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-24 13:25 UTC by Ivana Saranova
Modified: 2023-04-04 04:03 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.5.1.1
Doc Type: Bug Fix
Doc Text:
‘shortLife’ entity key was introduced to distinguish between short-lived (e.g. web) and long-lived (e.g. CA, hosts) certificates. The key was also used in ovirt-engine-rename without adding it to the corresponding entities, resulting in KeyError on ovirt-engine-rename invocation.
Clone Of:
Environment:
Last Closed: 2022-06-23 05:54:58 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.5+
pm-rhel: blocker?
sbonazzo: devel_ack+
gdeolive: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 422 0 None open packaging: Fix KeyError in ovirt-engine-rename certificate handling 2022-06-09 06:49:27 UTC
Red Hat Issue Tracker RHV-46109 0 None None None 2022-05-24 13:49:20 UTC

Description Ivana Saranova 2022-05-24 13:25:12 UTC
Description of problem:
Running ovirt-engine-rename ends in failure.

Version-Release number of selected component (if applicable):
ovirt-engine-4.5.0.8-1.el8.noarch

How reproducible:
Always

Steps to Reproduce:
1. Power off engine, remove network and create a new one
2. Run engine, (run engine-setup), engine has different IP but old FQDN
3. Run ovirt-engine-rename with new FQDN

Actual results:
Failed, z logu tento ERROR:2022-05-24 14:58:57,631+0200 DEBUG otopi.context context._executeMethod:145 method exception
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-rename/ovirt-engine/pki.py", line 436, in _misc
    self._handle_rename(entity)
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-rename/ovirt-engine/pki.py", line 235, in _handle_rename
    + (('--days=398',) if entity['shortLife'] else ())
KeyError: 'shortLife'

Expected results:
Success, the engine has been renamed.

Additional info:

Comment 1 Michal Skrivanek 2022-05-24 13:52:49 UTC
broken by bug #2079835

Comment 2 RHEL Program Management 2022-06-08 07:29:45 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Nikolai Sednev 2022-06-14 08:52:53 UTC
Please fill in the "Fixed In Version" field.

Comment 4 Barbora Dolezalova 2022-06-17 11:39:08 UTC
Verified in ovirt-engine-4.5.1.2-0.11.el8ev.noarch

Comment 5 Sandro Bonazzola 2022-06-23 05:54:58 UTC
This bugzilla is included in oVirt 4.5.1 release, published on June 22nd 2022.
Since the problem described in this bug report should be resolved in oVirt 4.5.1 release, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.