Document navigation

Issue/Introduction

This article provides initial diagnosis and handling guidance for a failure to create a VM instance on Ceph Enterprise primary storage in ZStack Cloud.

Environment

  • Product: ZCF
  • Component: Cloud
  • Versions: 3.x-5.5.30

Symptoms

Creating a VM instance on Ceph Enterprise primary storage reports the following error:

Error reason: failed to start vm[uuid:09779ea6fb6e4ae2ad6b239bf7dce7ee name:test] on kvm host[uuid:8a769650069f40a7ac97c7b98ce650d5, ip:192.168.5.252], because Traceback (most recent call last): File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/plugins/vm_plugin.py", line 4708, in start_vm self._start_vm(cmd) File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/plugins/vm_plugin.py", line 4628, in _start_vm 'unable to start vm[uuid:%s, name:%s], libvirt error: %s' % (cmd.vmInstanceUuid, cmd.vmName, str(e))) KvmError: unable to start vm[uuid:09779ea6fb6e4ae2ad6b239bf7dce7ee, name:test], libvirt error: internal error: qemu unexpectedly closed the monitor: 2021-01-13T10:14:38.093540Z qemu-kvm: -drive file=rbd:pool-b35d1f59707e4c6aabdfe74457dacccf/7133ff2b026449f8987ec8c0a10dbdee:id=zstack:auth_supported=cephx\;none:mon_host=172.25.15.120\:6789\;172.25.15.163\:6789\;172.25.12.55\:6789,file.password-secret=virtio-disk0-secret0,format=raw,if=none,id=drive-virtio-disk0: error reading header from 7133ff2b026449f8987ec8c0a10dbdee: No such file or directory

Possible causes

In Ceph Enterprise, hosts other than MON nodes lack the gateway-server role, causing the VM instance to be created successfully but fail to start normally.

Resolution

  • Sign in to the Ceph Enterprise management node and add the gateway-server role to the hosts other than MON nodes.
How do I resolve a failure to create a VM instance on Ceph Enterprise primary storage? | 故障排查 · KB | ZStack Resource Center