Commit 8fd044b9 authored by Antoine Millet's avatar Antoine Millet
Browse files

Retry storage update before to register new virtual machine

parent 3e56c364
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -128,7 +128,7 @@ class KVM(object):
                             'conflits with others cc-node objects')
                             'conflits with others cc-node objects')
                return
                return
            # update Storage pools in case VM has volumes that were created
            # update Storage pools in case VM has volumes that were created
            self.storage.update()
            self.storage.update(retry=10)
            # if vm is redefined while running we need to refresh its devices
            # if vm is redefined while running we need to refresh its devices
            # when stopped
            # when stopped
            redefine_on_stop = False
            redefine_on_stop = False