Bug 1665425 - quta with name longer than 60 can't be managed properly
Summary: quta with name longer than 60 can't be managed properly
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: bugs@ovirt.org
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-11 10:48 UTC by Lucie Leistnerova
Modified: 2020-06-26 16:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-01 14:47:43 UTC
oVirt Team: Virt
Embargoed:
rbarry: ovirt-4.5?


Attachments (Terms of Use)

Description Lucie Leistnerova 2019-01-11 10:48:21 UTC
Description of problem:
Quota with name longer than 60 can't be managed properly in admin portal. There could be problem when logging events with this quota.

in quota table:
quota_name          | character varying(65)

in audit_log table:
quota_name          | character varying(60)


Version-Release number of selected component (if applicable):
ovirt-engine-4.3.0-0.4.master.20190106162157.gitd96a412.el7.noarch

How reproducible: always


Steps to Reproduce:
1. create quota with long name via API

$ cat /tmp/quota.xml 
<quota>
<name>11111111112111111111311111111141111111115111111111611111111177777777</name>
<description></description>
<cluster_hard_limit_pct>20</cluster_hard_limit_pct>
<cluster_soft_limit_pct>80</cluster_soft_limit_pct>
<storage_hard_limit_pct>20</storage_hard_limit_pct>
<storage_soft_limit_pct>80</storage_soft_limit_pct>
</quota>

$ curl -k -H "Accept: application/xml" -H "Content-Type: application/xml" -d @/tmp/quota.xml -u admin@internal:passwd -H "Prefer: persistent-auth" https://engine/ovirt-engine/api/datacenters/<DC_uuid>/quotas

2. try to edit the quota in admin portal
3.

Actual results: quota can't be edited unless name is changed


Expected results: quota name length should be unified in db

Comment 1 Lucie Leistnerova 2019-01-11 10:51:00 UTC
Sorry, I used here other xml, the name that can be saved is

<name>1111111111211111111131111111114111111111511111111161111111117777</name>

Comment 2 Michal Skrivanek 2020-03-17 12:16:52 UTC
deprecating SLA team usage, moving to Virt

Comment 3 Michal Skrivanek 2020-04-01 14:47:43 UTC
Closing old bug. Please reopen if still relevant/you want to work on it.


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