cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarmo F (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7687) Cannot create VM from qcow2 template
Date Wed, 08 Oct 2014 19:14:33 GMT
Tarmo F created CLOUDSTACK-7687:
-----------------------------------

             Summary: Cannot create VM from qcow2 template
                 Key: CLOUDSTACK-7687
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7687
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: KVM, Snapshot, Template
    Affects Versions: 4.4.0
         Environment: Ubuntu 14.04, Cloudstack 4.4.0
            Reporter: Tarmo F


We have templates made in Cloudstack 4.4.0 another instance, that does not exist anymore.
We want to create VMs in freshly installed Cloudstack 4.4.0.
They include Ubuntu 14.04, Windows7, Windows 2008 Server QCOW2 images.
We can successfully register these templates
But the install ends with VM in error state.
The disk image on Primary storage is created, but the template is not found in template_spool_ref
database table, giving error:

2014-10-08 21:11:35,847 DEBUG [o.a.c.s.i.s.TemplateObject] (Work-Job-Executor-1:ctx-de5197bf
job-146/job-148 ctx-cc1e628d) failed to process event and answer
com.cloud.utils.exception.CloudRuntimeException: DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@2c20c166:
SELECT template_spool_ref.id, template_spool_ref.pool_id, template_spool_ref.template_id,
template_spool_ref.created, template_spool_ref.last_updated, template_spool_ref.download_pct,
template_spool_ref.download_state, template_spool_ref.local_path, template_spool_ref.error_str,
template_spool_ref.job_id, template_spool_ref.install_path, template_spool_ref.template_size,
template_spool_ref.marked_for_gc, template_spool_ref.update_count, template_spool_ref.updated,
template_spool_ref.state FROM template_spool_ref WHERE template_spool_ref.pool_id = 2  AND
template_spool_ref.template_id = 201  ORDER BY RAND() LIMIT 1

Any following attempt fails with error that there is already such disk image on Primary Storage.
When we manually delete this image, then we are back at first error.

When we create a snapshot from this existing Cloudstack installation and make template from
this, VM installs OK.

Any idea?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message