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

Bug 908779

Summary: [Admin Portal] VM quota is not displayed in VM's details General subtab
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-webadmin-portalAssignee: Einav Cohen <ecohen>
Status: CLOSED WORKSFORME QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, dyasny, ecohen, gchaplik, iheim, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 10:56:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
administration portal - missing quota for the vm none

Description Jiri Belka 2013-02-07 13:56:53 UTC
Created attachment 694493 [details]
administration portal - missing quota for the vm

Description of problem:
I created new VM in User Portal and it uses quota but in Administration Portal, the quota is not displayed in VM's details General subtab. In User Portal, I can see quota displayed correctly in VM's details General subtab.

Version-Release number of selected component (if applicable):
sf5

How reproducible:
100%

Steps to Reproduce:
1. on a DC which is in 'audit' quota mode, assign to a user (AD) role 'VmCreator'
2. create some quota
3. assign to previously used user following role on quota - PowerUserRole
4. assign this user to the quota as consumer
5. login with the user into User Portal
6. create new VM, the VM should inherit valid quota
7. check in User Portal VM's details General subtab (quota should be visible)
8. check in Administration Portal VM's details General subtab for quota info

Actual results:
no quota displayed in Administration portal for the VM

Expected results:
valid quota displayed

Additional info:

got via api...

        <name>test1</name>
        <link href="/api/vms/98ab0041-fcdc-40e1-8620-68a584e7ee33/disks" rel="disks"/>
        <link href="/api/vms/98ab0041-fcdc-40e1-8620-68a584e7ee33/nics" rel="nics"/>
        <link href="/api/vms/98ab0041-fcdc-40e1-8620-68a584e7ee33/cdroms" rel="cdroms"/>
        <link href="/api/vms/98ab0041-fcdc-40e1-8620-68a584e7ee33/snapshots" rel="snapshots"/>
        <link href="/api/vms/98ab0041-fcdc-40e1-8620-68a584e7ee33/tags" rel="tags"/>
        <link href="/api/vms/98ab0041-fcdc-40e1-8620-68a584e7ee33/permissions" rel="permissions"/>
        <link href="/api/vms/98ab0041-fcdc-40e1-8620-68a584e7ee33/statistics" rel="statistics"/>
        <link href="/api/vms/98ab0041-fcdc-40e1-8620-68a584e7ee33/reporteddevices" rel="reporteddevices"/>
        <type>desktop</type>
        <status>
            <state>down</state>
        </status>
        <memory>943718400</memory>
        <cpu>
            <topology sockets="1" cores="1"/>
        </cpu>
        <os type="unassigned">
            <boot dev="hd"/>
            <kernel></kernel>
            <initrd></initrd>
            <cmdline></cmdline>
        </os>
        <high_availability>
            <enabled>false</enabled>
            <priority>1</priority>
        </high_availability>
        <display>
            <type>spice</type>
            <monitors>1</monitors>
            <allow_override>false</allow_override>
            <smartcard_enabled>false</smartcard_enabled>
        </display>
        <cluster href="/api/clusters/99408929-82cf-4dc7-a532-9d998063fa95" id="99408929-82cf-4dc7-a532-9d998063fa95"/>
        <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
        <creation_time>2013-02-07T14:42:41.086+01:00</creation_time>
        <origin>rhev</origin>
        <stateless>false</stateless>
        <delete_protected>false</delete_protected>
        <placement_policy>
            <affinity>migratable</affinity>
        </placement_policy>
        <memory_policy>
            <guaranteed>943718400</guaranteed>
        </memory_policy>
        <quota id="c158f277-9cfd-4d11-b827-dedf29c83893"/>
        <usb>
            <enabled>false</enabled>
        </usb>
    </vm>

Comment 1 Jiri Belka 2013-02-07 15:53:29 UTC
This was sf6.

Comment 2 Gilad Chaplik 2013-02-10 15:47:42 UTC
Hi Jiri, 
What happens when you open the edit dialog (quota-wise)?

Comment 3 Jiri Belka 2013-02-13 10:56:30 UTC
I cannot reproduce anymore (in Admin portal - RH6.4 FF 10/17, IE9...), so it was something with my Firefox on Fedora.