Bug 1648917
| Summary: | New disks cloned from template get wrong quota-id, when quota is disabled on DC | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Florian Schmid <fschmid> |
| Component: | General | Assignee: | Andrej Krejcir <akrejcir> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Liran Rotenberg <lrotenbe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.2.5.1 | CC: | akrejcir, bugs, rbarry |
| Target Milestone: | ovirt-4.3.1 | Flags: | rule-engine:
ovirt-4.3+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.3.1.1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-03-01 10:20:20 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
Florian Schmid
2018-11-12 13:06:27 UTC
Re-targeting to 4.3.1 since it is missing a patch, an acked blocker flag, or both Steps to verify: 1. Enable quota for the 'Default' DC. Or if 'Default' DC does not exist, enable quota for the DC that is selected by default in the New VM popup. 2. Have a different DC, that has quota disabled. 3. On the DC without quota, have a VM template with disks. 4. Create a new VM from this template. 5. Try to update or remove a disk from this VM. Before fix: The new VM's disks use quota from the 'Default' DC, which is invalid configuration. As a result it is not possible to update or remove the disks. After fix: The VM's disks use correct quota and it is possible to update or remove them. Verified on: ovirt-engine-4.3.0.5-0.0.master.20190210112640.git53b60e3.el7.noarch Steps: 1. Enable quota for the 'Default' DC. Or if 'Default' DC does not exist, enable quota for the DC that is selected by default in the New VM popup. 2. Have a different DC, that has quota disabled. 3. On the DC without quota, have a VM template with disks. 4. Create a new VM from this template. 5. Test the DB quota ids: # /usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "select * from quota;" 6. Try to update or remove a disk from this VM. Results: Tried twice once the default DC was set with quota: audit and once with quota: enforced. On step 5, IDs were different for each DC: # /usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "select * from quota;" id | storage_pool_id | quota_name | description | _create_date | _update_date | threshold_cluster_percentage | threshold_storage_percentage | grace_cluster_percentage | grace_storage_percentage | is_default --------------------------------------+--------------------------------------+------------+-------------------------+-------------------------------+--------------+------------------------------+------------------------------+--------------------------+--------------------------+------------ d18b6ab8-1e30-11e9-953e-001a4a161064 | ccdbc35a-1e30-11e9-9895-001a4a161064 | Default | Default unlimited quota | 2019-01-22 12:31:03.422017+02 | | 80 | 80 | 20 | 20 | t a2d385e0-c087-4e29-b3dd-2813ac9df070 | 91fca4ae-2674-4177-9135-c5b64d2e752d | Default | Default unlimited quota | 2019-01-22 12:32:37.314957+02 | | 0 | 0 | 0 | 0 | t 46b24a3b-d818-454a-8cea-51c3c2d594f5 | 311737c0-61ac-4702-a87d-0da36ec4b2aa | Default | Default unlimited quota | 2019-02-12 10:32:07.641698+02 | | 0 | 0 | 0 | 0 | t (3 rows) From step 6, changes to the VM's disk were successfully made, I succeed to remove the VM's disk. This bugzilla is included in oVirt 4.3.1 release, published on February 28th 2019. Since the problem described in this bug report should be resolved in oVirt 4.3.1 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |