Bug 1700259 - Failed to create template
Summary: Failed to create template
Keywords:
Status: CLOSED DUPLICATE of bug 1588100
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.3.3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Tal Nisan
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-16 08:00 UTC by Evelina Shames
Modified: 2019-04-22 13:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-22 13:24:41 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)
Logs (687.53 KB, application/zip)
2019-04-16 08:00 UTC, Evelina Shames
no flags Details

Description Evelina Shames 2019-04-16 08:00:31 UTC
Created attachment 1555402 [details]
Logs

Description of problem:
Failed to create template.
There is no enough information in the logs to understand why.

Engine:
2019-04-08 06:01:13,650+03 ERROR [org.ovirt.engine.core.bll.AddVmTemplateCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-46) [templates_create_e04b939a-4b3e-4a48] Ending command 'org.ovirt.engine.core.bll.AddVmTemplateCommand' with failure.

2019-04-08 06:01:13,904+03 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-46) [templates_create_e04b939a-4b3e-4a48] EVENT_ID: USER_ADD_VM_TEMPLATE_CREATE_TEMPLATE_FAILURE(1,322), Failed to create Template templ_type_0806000655_single or its disks from VM vm_TestCase5993_0805595424.


Art:
2019-04-08 06:00:07,491 - MainThread - templates - DEBUG - CREATE request content is --  url:https://hosted-engine-07.lab.eng.tlv2.redhat.com/ovirt-engine/api/templates body:<template>
    <name>templ_type_0806000655_single</name>
    <cluster id="f8216c7b-ddab-4c35-b524-0d2a55cd86ed"/>
    <storage_domain id="ebb66268-47d7-414a-ad0d-ddf62f04275f"/>
    <vm href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6" id="8b0b933d-863a-4ff6-9e4e-790433d334d6">
        <actions>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/detach" rel="detach"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/export" rel="export"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/cancelmigration" rel="cancelmigration"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/migrate" rel="migrate"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/ticket" rel="ticket"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/freezefilesystems" rel="freezefilesystems"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/logon" rel="logon"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/maintenance" rel="maintenance"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/previewsnapshot" rel="previewsnapshot"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/reordermacaddresses" rel="reordermacaddresses"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/thawfilesystems" rel="thawfilesystems"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/undosnapshot" rel="undosnapshot"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/commitsnapshot" rel="commitsnapshot"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/clone" rel="clone"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/reboot" rel="reboot"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/shutdown" rel="shutdown"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/start" rel="start"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/stop" rel="stop"/>
            <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/suspend" rel="suspend"/>
        </actions>
        <name>vm_TestCase5993_0805595424</name>
        <description></description>
        <comment></comment>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/graphicsconsoles" rel="graphicsconsoles"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/cdroms" rel="cdroms"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/sessions" rel="sessions"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/backups" rel="backups"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/watchdogs" rel="watchdogs"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/affinitylabels" rel="affinitylabels"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/katelloerrata" rel="katelloerrata"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/permissions" rel="permissions"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/tags" rel="tags"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/nics" rel="nics"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/numanodes" rel="numanodes"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/snapshots" rel="snapshots"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/applications" rel="applications"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/hostdevices" rel="hostdevices"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/reporteddevices" rel="reporteddevices"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/diskattachments" rel="diskattachments"/>
        <link href="/ovirt-engine/api/vms/8b0b933d-863a-4ff6-9e4e-790433d334d6/statistics" rel="statistics"/>
        <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-04-08T05:59:55.051000+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/4ace9d7d-2f81-4b16-902e-47e86357bd3e" id="4ace9d7d-2f81-4b16-902e-47e86357bd3e"/>
        <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>rhel_6x64</type>
        </os>
        <placement_policy>
            <affinity>migratable</affinity>
        </placement_policy>
        <small_icon href="/ovirt-engine/api/icons/842ce14d-3c12-45cf-add4-92a00a4cbaa5" id="842ce14d-3c12-45cf-add4-92a00a4cbaa5"/>
        <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/f8216c7b-ddab-4c35-b524-0d2a55cd86ed" id="f8216c7b-ddab-4c35-b524-0d2a55cd86ed"/>
        <cpu_profile href="/ovirt-engine/api/cpuprofiles/1930fdff-c792-4317-863d-4130bd59704f" id="1930fdff-c792-4317-863d-4130bd59704f"/>
        <quota id="944c3d6f-dc28-44af-ba35-0837777fd59f"/>
        <next_run_configuration_exists>false</next_run_configuration_exists>
        <numa_tune_mode>interleave</numa_tune_mode>
        <status>down</status>
        <stop_time>2019-04-08T06:00:04.079000+03:00</stop_time>
        <disk_attachments>
            <disk_attachment>
                <disk id="f52a75dc-5f38-43d8-8aca-72a7b4a013e1">
                    <alias>vm_TestCase5993_0805595424_Disk_0</alias>
                    <format>cow</format>
                    <sparse>true</sparse>
                    <storage_domains id="ebb66268-47d7-414a-ad0d-ddf62f04275f"/>
                </disk>
            </disk_attachment>
        </disk_attachments>
        <original_template href="/ovirt-engine/api/templates/656a4b11-c6d1-42a0-940a-e9efa7634ac7" id="656a4b11-c6d1-42a0-940a-e9efa7634ac7"/>
        <template href="/ovirt-engine/api/templates/656a4b11-c6d1-42a0-940a-e9efa7634ac7" id="656a4b11-c6d1-42a0-940a-e9efa7634ac7"/>
    </vm>

2019-04-08 06:00:08,791 - MainThread - templates - DEBUG - Response body for CREATE request is: 
<template href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5" id="18066784-4e47-4cbd-8a97-104113d5ecb5">
    <actions>
        <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/export" rel="export"/>
    </actions>
    <name>templ_type_0806000655_single</name>
    <description></description>
    <comment></comment>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/graphicsconsoles" rel="graphicsconsoles"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/cdroms" rel="cdroms"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/watchdogs" rel="watchdogs"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/permissions" rel="permissions"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/tags" rel="tags"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/nics" rel="nics"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/diskattachments" rel="diskattachments"/>
    <bios>
        <boot_menu>
            <enabled>false</enabled>
        </boot_menu>
        <type>i440fx_sea_bios</type>
    </bios>
    <console>
        <enabled>false</enabled>
    </console>
    <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-04-08T06:00:07.675+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/4ace9d7d-2f81-4b16-902e-47e86357bd3e" id="4ace9d7d-2f81-4b16-902e-47e86357bd3e"/>
    <memory>1073741824</memory>
    <memory_policy>
        <ballooning>true</ballooning>
        <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>rhel_6x64</type>
    </os>
    <placement_policy>
        <affinity>migratable</affinity>
    </placement_policy>
    <rng_device>
        <source>urandom</source>
    </rng_device>
    <small_icon href="/ovirt-engine/api/icons/842ce14d-3c12-45cf-add4-92a00a4cbaa5" id="842ce14d-3c12-45cf-add4-92a00a4cbaa5"/>
    <soundcard_enabled>true</soundcard_enabled>
    <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>
    <virtio_scsi>
        <enabled>true</enabled>
    </virtio_scsi>
    <cluster href="/ovirt-engine/api/clusters/f8216c7b-ddab-4c35-b524-0d2a55cd86ed" id="f8216c7b-ddab-4c35-b524-0d2a55cd86ed"/>
    <cpu_profile href="/ovirt-engine/api/cpuprofiles/1930fdff-c792-4317-863d-4130bd59704f" id="1930fdff-c792-4317-863d-4130bd59704f"/>
    <quota id="944c3d6f-dc28-44af-ba35-0837777fd59f"/>
    <status>locked</status>
    <version>
        <version_name>base version</version_name>
        <version_number>1</version_number>
        <base_template href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5" id="18066784-4e47-4cbd-8a97-104113d5ecb5"/>
    </version>
</template>
 
2019-04-08 06:00:08,791 - MainThread - templates - INFO - New entity was added
2019-04-08 06:00:08,797 - MainThread - templates - DEBUG - Attribute 'template->storage_domain' doesn't exist in actual results
2019-04-08 06:00:08,798 - MainThread - templates - INFO - Property 'template->name' has correct value: templ_type_0806000655_single
2019-04-08 06:00:08,798 - MainThread - templates - DEBUG - Attribute 'template->vm' doesn't exist in actual results
2019-04-08 06:00:08,798 - MainThread - templates - INFO - Property 'template->cluster->id' has correct value: f8216c7b-ddab-4c35-b524-0d2a55cd86ed
2019-04-08 06:00:08,803 - MainThread - templates - DEBUG - GET request content is --  url:/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5 
2019-04-08 06:00:08,838 - MainThread - templates - DEBUG - Response code is valid: [200, 201] 
2019-04-08 06:00:08,839 - MainThread - templates - DEBUG - Response body for GET request is: 
<template href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5" id="18066784-4e47-4cbd-8a97-104113d5ecb5">
    <actions>
        <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/export" rel="export"/>
    </actions>
    <name>templ_type_0806000655_single</name>
    <description></description>
    <comment></comment>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/graphicsconsoles" rel="graphicsconsoles"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/cdroms" rel="cdroms"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/watchdogs" rel="watchdogs"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/permissions" rel="permissions"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/tags" rel="tags"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/nics" rel="nics"/>
    <link href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5/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-04-08T06:00:07.675+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/4ace9d7d-2f81-4b16-902e-47e86357bd3e" id="4ace9d7d-2f81-4b16-902e-47e86357bd3e"/>
    <memory>1073741824</memory>
    <memory_policy>
        <ballooning>true</ballooning>
        <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>rhel_6x64</type>
    </os>
    <placement_policy>
        <affinity>migratable</affinity>
    </placement_policy>
    <small_icon href="/ovirt-engine/api/icons/842ce14d-3c12-45cf-add4-92a00a4cbaa5" id="842ce14d-3c12-45cf-add4-92a00a4cbaa5"/>
    <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/f8216c7b-ddab-4c35-b524-0d2a55cd86ed" id="f8216c7b-ddab-4c35-b524-0d2a55cd86ed"/>
    <cpu_profile href="/ovirt-engine/api/cpuprofiles/1930fdff-c792-4317-863d-4130bd59704f" id="1930fdff-c792-4317-863d-4130bd59704f"/>
    <quota id="944c3d6f-dc28-44af-ba35-0837777fd59f"/>
    <status>locked</status>
    <version>
        <version_name>base version</version_name>
        <version_number>1</version_number>
        <base_template href="/ovirt-engine/api/templates/18066784-4e47-4cbd-8a97-104113d5ecb5" id="18066784-4e47-4cbd-8a97-104113d5ecb5"/>
    </version>
</template>

2019-04-08 06:01:19,193 - MainThread - templates - ERROR - Response code is not valid, expected is: [200, 201], actual is: 404 
2019-04-08 06:01:19,194 - MainThread - templates - ERROR - Element template doesn't have attribute status
2019-04-08 06:01:19,194 - MainThread - root - ERROR - Failed to create new template with {'name': 'templ_type_0806000655_single', 'vm': 'vm_testcase5993_0805595424', 'cluster': 'golden_env_mixed_1', 'storagedomain': 'fcp_2', 'timeout': 900, 'wait': true}


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


How reproducible:
Happened once in automation

Steps to Reproduce:


Actual results:
Failed to create template

Expected results:
Operation should succeed

Additional info:
Relevant logs are attached.

Comment 1 Evelina Shames 2019-04-16 08:21:58 UTC
Bug 1588100 looks similar to this issue, but this one is 4.3.

Comment 2 Tal Nisan 2019-04-22 13:24:41 UTC

*** This bug has been marked as a duplicate of bug 1588100 ***


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