Bug 1450814 - Unable to edit the default OVN provider
Summary: Unable to edit the default OVN provider
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-provider-ovn
Classification: oVirt
Component: provider
Version: 1.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.0
: ---
Assignee: Marcin Mirecki
QA Contact: Mor
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-15 08:46 UTC by Mor
Modified: 2017-12-20 11:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:37:25 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
error message (32.87 KB, image/png)
2017-05-15 08:51 UTC, Mor
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 76849 0 master MERGED packaging: fixing incorrect encryption of ovn provider password 2017-05-16 16:03:14 UTC

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.


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