Ask Your Question

Dutchak Vitaly's profile - activity

2014-08-26 00:16:30 -0500 received badge  Notable Question (source)
2014-08-26 00:16:30 -0500 received badge  Famous Question (source)
2014-06-19 23:34:40 -0500 received badge  Popular Question (source)
2014-06-18 04:13:00 -0500 asked a question Heat - Create volume and launch instance from it.

I was trying to write heat template for launch instance from volume, but no succseed.

Template:

heat_template_version: 2013-05-23
description: Test Template
parameters:
  ImageID:
    type: string
    description: Image use to boot a server
  NetID:
    type: string
    description: Network ID for the server
resources:
  server1:
    type: OS::Nova::Server
    depends_on: volume1
    properties:
      name: "Ubuntu Node 01"
      block_device_mapping: [{ device_name: "vda", volume_id : { get_resource : volume1 }, delete_on_termination : "true" }]
      flavor: "m1.medium"
      networks:
      - network: { get_param: NetID }
  volume1:
    type: OS::Cinder::Volume
    properties:
      name  : "Server 1 - Root Disk"
      image : {"Ref": "ImageID"}
      size  : 1

Volume is created successfully, but instance not launched. For cinder volumes I use ceph backend.

In nova-compute log I was found this:

2014-06-18 12:58:49.552 31072 ERROR nova.virt.libvirt.driver [req-d66607c6-f097-454a-8aa1-1bd2383f5b38 98f22128a93b43af852b1e74ad1b39fe ee376c5145c949b197b6143fdaa32f61] An error occurred while trying to launch a defined domain with xml: <domain type='qemu'>

2014-06-18 12:58:49.553 31072 ERROR nova.compute.manager [req-d66607c6-f097-454a-8aa1-1bd2383f5b38 98f22128a93b43af852b1e74ad1b39fe ee376c5145c949b197b6143fdaa32f61] [instance: 1b1d122b-768e-4964-bd1e-a94613e3691d] Instance failed to spawn

2014-06-18 12:58:50.406 31072 ERROR nova.compute.manager [req-d66607c6-f097-454a-8aa1-1bd2383f5b38 98f22128a93b43af852b1e74ad1b39fe ee376c5145c949b197b6143fdaa32f61] [instance: 1b1d122b-768e-4964-bd1e-a94613e3691d] Error: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=rbd:volumes/1b1d122b-768e-4964-bd1e-a94613e3691d_disk:id=volumes:key=AQCGnJZTKPs5LxAARs2m0WuYCnSSaSnZiwvbGA==:auth_supported=cephx\;none:mon_host=192.168.0.103\:6789\;192.168.0.104\:6789\;192.168.0.105\:6789,if=none,id=drive-virtio-disk0,format=raw,cache=none: error reading header from 1b1d122b-768e-4964-bd1e-a94613e3691d_disk