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

Bug 1665425

Summary: quta with name longer than 60 can't be managed properly
Product: [oVirt] ovirt-engine Reporter: Lucie Leistnerova <lleistne>
Component: GeneralAssignee: bugs <bugs>
Status: CLOSED DEFERRED QA Contact: meital avital <mavital>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: bugs, rbarry
Target Milestone: ---Flags: rbarry: ovirt-4.5?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-01 14:47:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.