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

Bug 1450814

Summary: Unable to edit the default OVN provider
Product: [oVirt] ovirt-provider-ovn Reporter: Mor <mkalfon>
Component: providerAssignee: Marcin Mirecki <mmirecki>
Status: CLOSED CURRENTRELEASE QA Contact: Mor <mkalfon>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.0.4CC: bugs, danken, myakove, ylavi
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:37:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
error message none

Description Mor 2017-05-15 08:46:23 UTC
Description of problem:
"Error while executing action UpdateProvider: Internal Engine Error" is shown while trying to edit existing provider: "ovirt-provider-ovn" that was created by engine-setup.

Version-Release number of selected component (if applicable):
oVirt Engine Version: 4.2.0-0.0.master.20170514192031.gitbcb4208.el7.centos

How reproducible:
100%

Steps to Reproduce:
1. Try to edit "ovirt-provider-ovn".

Actual results:
Error message described above.

Expected results:
1. UI password input should be limited to the maximum allowed.
2. UI password input field should be populated with plain text (but hidden).

Additional info:

017-05-15 11:14:33,150+03 ERROR [org.ovirt.engine.core.bll.provider.UpdateProviderCommand] (default task-1) [4bed99db-8ce8-4b11-8be5-532b24b65b6f] Transaction rolled-back for command 'org.ovirt.engine.core.bll.provider.UpdateProviderCommand'.
2017-05-15 11:14:33,162+03 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-1) [4bed99db-8ce8-4b11-8be5-532b24b65b6f] EVENT_ID: PROVIDER_UPDATE_FAILED(208), Failed to update provider ovirt-provider-ovn. (User: admin@internal-authz)
2017-05-15 11:15:16,795+03 INFO  [org.ovirt.engine.core.bll.provider.UpdateProviderCommand] (default task-2) [d5422b17-6b37-4513-ae26-5efb708a801b] Running command: UpdateProviderCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_STORAGE_POOL with role type ADMIN
2017-05-15 11:15:16,828+03 ERROR [org.ovirt.engine.core.bll.provider.UpdateProviderCommand] (default task-2) [d5422b17-6b37-4513-ae26-5efb708a801b] Command 'org.ovirt.engine.core.bll.provider.UpdateProviderCommand' failed: javax.crypto.IllegalBlockSizeException: Data must not be longer than 245 bytes
2017-05-15 11:15:16,828+03 ERROR [org.ovirt.engine.core.bll.provider.UpdateProviderCommand] (default task-2) [d5422b17-6b37-4513-ae26-5efb708a801b] Exception: java.lang.SecurityException: javax.crypto.IllegalBlockSizeException: Data must not be longer than 245 bytes
        at org.ovirt.engine.core.dal.dbbroker.DbFacadeUtils.encryptPassword(DbFacadeUtils.java:29) [dal.jar:]
        at org.ovirt.engine.core.dao.provider.ProviderDaoImpl.createBaseProviderParametersMapper(ProviderDaoImpl.java:96) [dal.jar:]
        at org.ovirt.engine.core.dao.provider.ProviderDaoImpl.createFullParametersMapper(ProviderDaoImpl.java:41) [dal.jar:]
        at org.ovirt.engine.core.dao.provider.ProviderDaoImpl.createFullParametersMapper(ProviderDaoImpl.java:31) [dal.jar:]
        at org.ovirt.engine.core.dao.DefaultGenericDao.update(DefaultGenericDao.java:102) [dal.jar:]
        at org.ovirt.engine.core.dao.DefaultGenericDao.update(DefaultGenericDao.java:98) [dal.jar:]
        at org.ovirt.engine.core.bll.provider.UpdateProviderCommand.executeCommand(UpdateProviderCommand.java:76) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1265) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1405) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:2081) [bll.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:202) [utils.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInRequired(TransactionSupport.java:137) [utils.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:105) [utils.jar:]

Comment 2 Mor 2017-05-15 08:51:14 UTC
Created attachment 1278872 [details]
error message

Comment 3 Mor 2017-05-24 07:17:44 UTC
Verified on:
4.2.0-0.0.master.20170522205719.git160e419.el7.centos

Comment 4 Mor 2017-05-24 07:19:36 UTC
With exception: password file is not limited.

Comment 5 Mor 2017-05-24 07:19:53 UTC
With exception: password field is not limited.

Comment 6 Marcin Mirecki 2017-05-24 13:50:03 UTC
please open a new bug for the password field

Comment 7 Sandro Bonazzola 2017-12-20 11:37:25 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.