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

Bug 905834

Summary: Password decryption failures due to threading synchronization issue
Product: Red Hat Enterprise Virtualization Manager Reporter: Alon Bar-Lev <alonbl>
Component: ovirt-engineAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED CURRENTRELEASE QA Contact: Tareq Alayan <talayan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.2CC: acathrow, bazulay, chetan, dyasny, iheim, italkohe, lpeer, oramraz, pstehlik, Rhev-m-bugs, sgrinber, yeylon, ykaul, yzaslavs
Target Milestone: ---Keywords: ZStream
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: sf8 Doc Type: Bug Fix
Doc Text:
Unsafe usage of the base64 decoder class caused the decryption buffer to become corrupted, producing "failed to decrypt" error messages on hosts with power management configured. This update removes unsafe and unnecessary encoding classes, so the decryption errors no longer appear.
Story Points: ---
Clone Of:
: 949681 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 915537, 949681    

Description Alon Bar-Lev 2013-01-30 09:39:55 UTC
The engine is regularity decrypts passwords stored in vdc_options.

Due to a unsafe usage of the base64 decoder class the decryption buffer is corrupted.

Evidence of corruption[1], including:
---
2013-01-28 13:13:40,483 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (QuartzScheduler_Worker-23) Failed to decrypt Data must not be longer than 256 bytes
2013-01-28 13:13:52,747 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (QuartzScheduler_Worker-81) Failed to decrypt Data must not be longer than 256 bytes
---

[1] http://www.mail-archive.com/users@ovirt.org/msg06011.html

Comment 1 Alon Bar-Lev 2013-01-30 09:41:59 UTC
PM/QA when flagged, please also state if you wish to backport to 3.1.z as well.

Comment 3 Itamar Heim 2013-01-30 23:06:17 UTC
proposing to 3.1.z, as this was seen in the field as well.

Comment 12 Tareq Alayan 2013-03-22 07:35:48 UTC
looked for the error in several 3.2 engine.logs and per comment 10, i am putting this bug to verified.

Comment 18 Itamar Heim 2013-06-11 08:26:15 UTC
3.2 has been released

Comment 19 Itamar Heim 2013-06-11 08:26:28 UTC
3.2 has been released