Bug 1696174 - Cloned VMs created from template with "Raw" format and "sparse" type on NFS are having "Preallocated" allocation policy
Summary: Cloned VMs created from template with "Raw" format and "sparse" type on NFS a...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.3.2.1
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ovirt-4.3.3
: ---
Assignee: Eyal Shenitzky
QA Contact: Evelina Shames
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-04 09:29 UTC by Evelina Shames
Modified: 2019-04-16 13:58 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.3.3.3
Clone Of:
Environment:
Last Closed: 2019-04-16 13:58:28 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.3+
pm-rhel: blocker?


Attachments (Terms of Use)
Logs (1.17 MB, application/zip)
2019-04-04 09:29 UTC, Evelina Shames
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 99221 0 master MERGED core: allow cloning raw-sparse disk on file-based domain 2020-09-12 06:15:00 UTC
oVirt gerrit 99222 0 master MERGED webadmin: allow cloning raw-sparse disk on file-based domain 2020-09-12 06:14:59 UTC
oVirt gerrit 99225 0 ovirt-engine-4.3 MERGED core: allow cloning raw-sparse disk on file-based domain 2020-09-12 06:14:59 UTC
oVirt gerrit 99226 0 ovirt-engine-4.3 MERGED webadmin: allow cloning raw-sparse disk on file-based domain 2020-09-12 06:14:59 UTC

Description Evelina Shames 2019-04-04 09:29:12 UTC
Created attachment 1551759 [details]
Logs

Description of problem:
Cloned VMs created from template with "Raw" format and "sparse" type on NFS storage domain are having "Preallocated" allocation policy instead of "Thin Provision".

Version-Release number of selected component (if applicable):
vdsm-4.30.12-1.el7ev.x86_64
ovirt-engine-4.3.3.1-0.1.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1.Clone VM from template with "RAW" format and "sparse" type disk on NFS storage domain

Actual results:
Vms are having "Preallocated" Allocation Policy.

Expected results:
Vms should have "Thin Provision" Allocation Policy.

Additional info:
Logs are attached.
Last time tested on:
    ovirt-engine-4.3.2.1-0.1.el7.noarch
    vdsm-4.30.11-1.el7ev.x86_64
and worked fine.

Comment 1 RHEL Program Management 2019-04-04 12:18:46 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Eyal Shenitzky 2019-04-07 05:35:32 UTC
Can you please share the REST-API call you used in order to create the VM?

Comment 3 Evelina Shames 2019-04-07 08:01:31 UTC
(In reply to Eyal Shenitzky from comment #2)
> Can you please share the REST-API call you used in order to create the VM?

2019-03-30 19:58:39,494 - MainThread - vms - DEBUG - CREATE request content is --  url:https://hosted-engine-07.lab.eng.tlv2.redhat.com/ovirt-engine/api/vms;clone=true body:<vm>
    <name>vm_type_3019583863</name>
    <cluster href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1" id="7eb61053-86de-47f7-92dd-0c85fd580bf1">
        <actions>
            <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/upgrade" rel="upgrade"/>
            <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/syncallnetworks" rel="syncallnetworks"/>
            <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/resetemulatedmachine" rel="resetemulatedmachine"/>
        </actions>
        <name>golden_env_mixed_1</name>
        <description></description>
        <comment></comment>
        <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/permissions" rel="permissions"/>
        <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/cpuprofiles" rel="cpuprofiles"/>
        <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/networkfilters" rel="networkfilters"/>
        <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/networks" rel="networks"/>
        <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/affinitygroups" rel="affinitygroups"/>
        <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/enabledfeatures" rel="enabledfeatures"/>
        <link href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1/externalnetworkproviders" rel="externalnetworkproviders"/>
        <ballooning_enabled>false</ballooning_enabled>
        <cpu>
            <architecture>x86_64</architecture>
            <type>Intel Westmere Family</type>
        </cpu>
        <custom_scheduling_policy_properties>
            <property>
                <name>HighUtilization</name>
                <value>80</value>
            </property>
            <property>
                <name>CpuOverCommitDurationMinutes</name>
                <value>2</value>
            </property>
        </custom_scheduling_policy_properties>
        <error_handling>
            <on_error>migrate</on_error>
        </error_handling>
        <fencing_policy>
            <enabled>true</enabled>
            <skip_if_connectivity_broken>
                <enabled>false</enabled>
                <threshold>50</threshold>
            </skip_if_connectivity_broken>
            <skip_if_gluster_bricks_up>false</skip_if_gluster_bricks_up>
            <skip_if_gluster_quorum_not_met>false</skip_if_gluster_quorum_not_met>
            <skip_if_sd_active>
                <enabled>false</enabled>
            </skip_if_sd_active>
        </fencing_policy>
        <firewall_type>firewalld</firewall_type>
        <gluster_service>false</gluster_service>
        <ha_reservation>false</ha_reservation>
        <ksm>
            <enabled>false</enabled>
            <merge_across_nodes>true</merge_across_nodes>
        </ksm>
        <log_max_memory_used_threshold>95</log_max_memory_used_threshold>
        <log_max_memory_used_threshold_type>percentage</log_max_memory_used_threshold_type>
        <memory_policy>
            <over_commit>
                <percent>100</percent>
            </over_commit>
            <transparent_hugepages>
                <enabled>true</enabled>
            </transparent_hugepages>
        </memory_policy>
        <migration>
            <auto_converge>inherit</auto_converge>
            <bandwidth>
                <assignment_method>auto</assignment_method>
            </bandwidth>
            <compressed>inherit</compressed>
        </migration>
        <required_rng_sources>
            <required_rng_source>urandom</required_rng_source>
        </required_rng_sources>
        <switch_type>legacy</switch_type>
        <threads_as_cores>false</threads_as_cores>
        <trusted_service>false</trusted_service>
        <tunnel_migration>false</tunnel_migration>
        <version>
            <major>4</major>
            <minor>3</minor>
        </version>
        <virt_service>true</virt_service>
        <data_center href="/ovirt-engine/api/datacenters/dd0a0367-d63a-4596-a604-d013a4b22591" id="dd0a0367-d63a-4596-a604-d013a4b22591"/>
        <mac_pool href="/ovirt-engine/api/macpools/58ca604b-017d-0374-0220-00000000014e" id="58ca604b-017d-0374-0220-00000000014e"/>
        <scheduling_policy href="/ovirt-engine/api/schedulingpolicies/b4ed2332-a7ac-4d5f-9596-99a439cb2812" id="b4ed2332-a7ac-4d5f-9596-99a439cb2812"/>
    </cluster>
    <disk_attachments>
        <disk_attachment>
            <bootable>true</bootable>
            <interface>virtio</interface>
            <disk id="64b8bf4e-3fdb-4f94-827c-df4aa9568778">
                <format>raw</format>
                <sparse>true</sparse>
                <storage_domains>
                    <storage_domain href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e" id="c32fac3f-9809-46ac-af60-6b291751af6e">
                        <actions>
                            <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/isattached" rel="isattached"/>
                            <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/updateovfstore" rel="updateovfstore"/>
                            <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/refreshluns" rel="refreshluns"/>
                            <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/reduceluns" rel="reduceluns"/>
                        </actions>
                        <name>nfs_2</name>
                        <description></description>
                        <comment></comment>
                        <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/disksnapshots" rel="disksnapshots"/>
                        <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/storageconnections" rel="storageconnections"/>
                        <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/permissions" rel="permissions"/>
                        <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/templates" rel="templates"/>
                        <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/vms" rel="vms"/>
                        <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/diskprofiles" rel="diskprofiles"/>
                        <link href="/ovirt-engine/api/storagedomains/c32fac3f-9809-46ac-af60-6b291751af6e/disks" rel="disks"/>
                        <available>3809635991552</available>
                        <backup>false</backup>
                        <block_size>512</block_size>
                        <committed>4294967296</committed>
                        <critical_space_action_blocker>5</critical_space_action_blocker>
                        <discard_after_delete>false</discard_after_delete>
                        <external_status>ok</external_status>
                        <master>false</master>
                        <storage>
                            <address>mantis-nfs-lif2.lab.eng.tlv2.redhat.com</address>
                            <path>/nas01/ge_7_nfs_2</path>
                            <type>nfs</type>
                        </storage>
                        <storage_format>v4</storage_format>
                        <supports_discard>false</supports_discard>
                        <supports_discard_zeroes_data>false</supports_discard_zeroes_data>
                        <type>data</type>
                        <used>1290637672448</used>
                        <warning_low_space_indicator>10</warning_low_space_indicator>
                        <wipe_after_delete>false</wipe_after_delete>
                        <data_centers>
                            <data_center href="/ovirt-engine/api/datacenters/dd0a0367-d63a-4596-a604-d013a4b22591" id="dd0a0367-d63a-4596-a604-d013a4b22591"/>
                        </data_centers>
                    </storage_domain>
                </storage_domains>
            </disk>
        </disk_attachment>
    </disk_attachments>
    <template href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae" id="6724ed76-585b-4aae-a468-69c6a828e7ae">
        <actions>
            <link href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae/export" rel="export"/>
        </actions>
        <name>golden_template_default_rhel8.0</name>
        <description>rhel8.0_rhv4.3_guest_disk (0b53559)</description>
        <comment></comment>
        <link href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae/graphicsconsoles" rel="graphicsconsoles"/>
        <link href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae/cdroms" rel="cdroms"/>
        <link href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae/nics" rel="nics"/>
        <link href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae/watchdogs" rel="watchdogs"/>
        <link href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae/permissions" rel="permissions"/>
        <link href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae/tags" rel="tags"/>
        <link href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae/diskattachments" rel="diskattachments"/>
        <bios>
            <boot_menu>
                <enabled>false</enabled>
            </boot_menu>
            <type>i440fx_sea_bios</type>
        </bios>
        <cpu>
            <architecture>x86_64</architecture>
            <topology>
                <cores>1</cores>
                <sockets>1</sockets>
                <threads>1</threads>
            </topology>
        </cpu>
        <cpu_shares>0</cpu_shares>
        <creation_time>2019-03-29T20:49:45.701000+03:00</creation_time>
        <delete_protected>false</delete_protected>
        <display>
            <allow_override>false</allow_override>
            <copy_paste_enabled>true</copy_paste_enabled>
            <disconnect_action>LOCK_SCREEN</disconnect_action>
            <file_transfer_enabled>true</file_transfer_enabled>
            <monitors>1</monitors>
            <single_qxl_pci>false</single_qxl_pci>
            <smartcard_enabled>false</smartcard_enabled>
            <type>spice</type>
        </display>
        <high_availability>
            <enabled>false</enabled>
            <priority>0</priority>
        </high_availability>
        <io>
            <threads>0</threads>
        </io>
        <large_icon href="/ovirt-engine/api/icons/5dd5acf2-71fd-40b2-88f6-4702490fd08d" id="5dd5acf2-71fd-40b2-88f6-4702490fd08d"/>
        <memory>1073741824</memory>
        <memory_policy>
            <guaranteed>1073741824</guaranteed>
            <max>4294967296</max>
        </memory_policy>
        <migration>
            <auto_converge>inherit</auto_converge>
            <compressed>inherit</compressed>
        </migration>
        <migration_downtime>-1</migration_downtime>
        <multi_queues_enabled>true</multi_queues_enabled>
        <origin>rhev</origin>
        <os>
            <boot>
                <devices>
                    <device>hd</device>
                </devices>
            </boot>
            <type>other</type>
        </os>
        <placement_policy>
            <affinity>migratable</affinity>
        </placement_policy>
        <small_icon href="/ovirt-engine/api/icons/536d0737-c9c9-47f4-8210-c1a1c9effa6d" id="536d0737-c9c9-47f4-8210-c1a1c9effa6d"/>
        <sso>
            <methods>
                <method id="guest_agent"/>
            </methods>
        </sso>
        <start_paused>false</start_paused>
        <stateless>false</stateless>
        <storage_error_resume_behaviour>auto_resume</storage_error_resume_behaviour>
        <time_zone>
            <name>Etc/GMT</name>
        </time_zone>
        <type>desktop</type>
        <usb>
            <enabled>false</enabled>
        </usb>
        <cluster href="/ovirt-engine/api/clusters/7eb61053-86de-47f7-92dd-0c85fd580bf1" id="7eb61053-86de-47f7-92dd-0c85fd580bf1"/>
        <cpu_profile href="/ovirt-engine/api/cpuprofiles/eeca6694-af9b-49fe-9d0d-6a0fd7cd75f6" id="eeca6694-af9b-49fe-9d0d-6a0fd7cd75f6"/>
        <status>ok</status>
        <version>
            <version_name>base version</version_name>
            <version_number>1</version_number>
            <base_template href="/ovirt-engine/api/templates/6724ed76-585b-4aae-a468-69c6a828e7ae" id="6724ed76-585b-4aae-a468-69c6a828e7ae"/>
        </version>
    </template>
</vm>

Comment 4 Evelina Shames 2019-04-11 08:36:44 UTC
Verified on engine 4.3.3.3-0.1

Comment 5 Sandro Bonazzola 2019-04-16 13:58:28 UTC
This bugzilla is included in oVirt 4.3.3 release, published on April 16th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.3 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.


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