openvstorage / framework

The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.
Other
27 stars 23 forks source link

Virsh tries to autostart vms before volume driver has started #829

Closed openvstorage-ci closed 8 years ago

openvstorage-ci commented 8 years ago

From @JeffreyDevloo on August 12, 2016 15:33

Problem description

Virsh tries to autostart vms before volume driver has started virsh log:

2016-08-12 17:25:39.103+0000: 1827: error : qemuAutostartDomain:292 : Failed to autostart VM 'ubuntu14.04': Failed to open file '/mnt/vm-vpool/ubuntu.raw': No such file or directory

Volumedriver log:

2016-08-12 17:25:40 729058 +0200 - ovs-node1 - 2809/0x00007f27d023b940 - volumedriverfs/VolManager - 000000000000000f -  info - start: Initializing: should only happen on startup or in the testers

As you can see, virsh logged its error a second before the volume driver has started.

Possible root of the problem

The libvirtd service doesnt wait for the volumedriver to finish. (The startup condition cant be modified to wait for this change aswell)

Temporary solution

Added a sleep of five seconds (the error occurs within a span of two seconds for me) to the pre start script.

Possible solution

Unknown

Additional information

Setup

Hyperconverged setup

Copied from original issue: openvstorage/volumedriver#84

openvstorage-ci commented 8 years ago

From @redlicha on August 12, 2016 17:16

The order in which services are started is not something volumedriver is concerned with. @wimpers, can you please move this to an appropriate place?

khenderick commented 8 years ago

@wimpers, this can be closed, virtual machine management is nothing we support anymore, so it's up to the customer to configure his stack to make sure vms are only started after the storage stack is started.

JeffreyDevloo commented 8 years ago

this can be closed, virtual machine management is nothing we support anymore

Closing