# \[one.vm.migrate\] Error getting datastore

**URL:** <https://forum.opennebula.io/t/one-vm-migrate-error-getting-datastore/7307>\
**Category:** Operations\
**Created:** [June 3, 2019, 3:23pm UTC](https://forum.opennebula.io/t/one-vm-migrate-error-getting-datastore/7307 "2019-06-03T15:23:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![superxor](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@superxor](https://forum.opennebula.io/u/superxor)\
**Post date:** [June 3, 2019, 3:23pm UTC](https://forum.opennebula.io/t/one-vm-migrate-error-getting-datastore/7307/1 "2019-06-03T15:23:20Z")

</div>

I can’t migrate (offline/live) anymore. This affects multiple VMs  
the error is Error getting datastore ID 103

opennebula-node 5.6.1-1

onedatastore list -x  
please see here [https://pastebin.com/M3W08sCT](https://pastebin.com/M3W08sCT)

onevm show -x 717  
[https://pastebin.com/Ag4J4qSR](https://pastebin.com/Ag4J4qSR)

oned.log

> Mon Jun 3 18:57:33 2019 [Z0][ReM][D]: Req:5392 UID:0 one.vm.migrate invoked , 717, 30, true, false, -1  
> Mon Jun 3 18:57:33 2019 [Z0][ReM][E]: Req:5392 UID:0 one.vm.migrate result FAILURE [one.vm.migrate] Error getting datastore [103].

Template shows:  
User template

> HYPERVISOR = “kvm”  
> INPUTS\_ORDER = “”  
> LOGO = “images/logos/ubuntu.png”  
> MEMORY\_UNIT\_COST = “MB”  
> SCHED\_MESSAGE = “Mon Jun 3 17:10:06 2019 : Cannot dispatch VM to any Host. Possible reasons: Not enough capacity in Host or System DS, or dispatch limit reached”

VM log:

> Sun Feb 24 16:30:47 2019 [Z0][VM][I]: New LCM state is ACTIVE  
> Sun Feb 24 16:30:47 2019 [Z0][VM][I]: New LCM state is PROLOG  
> Sun Feb 24 16:30:48 2019 [Z0][VM][I]: New LCM state is BOOT  
> Sun Feb 24 16:30:48 2019 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/717/deployment.0  
> Sun Feb 24 16:30:49 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_context.  
> Sun Feb 24 16:30:49 2019 [Z0][VMM][I]: ExitCode: 0  
> Sun Feb 24 16:30:49 2019 [Z0][VMM][I]: Successfully execute network driver operation: pre.  
> Sun Feb 24 16:30:51 2019 [Z0][VMM][I]: ExitCode: 0  
> Sun Feb 24 16:30:51 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.  
> Sun Feb 24 16:30:51 2019 [Z0][VMM][I]: ExitCode: 0  
> Sun Feb 24 16:30:51 2019 [Z0][VMM][I]: Successfully execute network driver operation: post.  
> Sun Feb 24 16:30:51 2019 [Z0][VM][I]: New LCM state is RUNNING  
> Sun Feb 24 16:38:25 2019 [Z0][VM][I]: New LCM state is SHUTDOWN\_POWEROFF  
> Sun Feb 24 16:38:31 2019 [Z0][VMM][I]: ExitCode: 0  
> Sun Feb 24 16:38:31 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: shutdown.  
> Sun Feb 24 16:38:32 2019 [Z0][VMM][I]: ExitCode: 0  
> Sun Feb 24 16:38:32 2019 [Z0][VMM][I]: Successfully execute network driver operation: clean.  
> Sun Feb 24 16:38:32 2019 [Z0][VM][I]: New state is POWEROFF  
> Sun Feb 24 16:38:32 2019 [Z0][VM][I]: New LCM state is LCM\_INIT  
> Sun Feb 24 16:39:13 2019 [Z0][VM][I]: New state is ACTIVE  
> Sun Feb 24 16:39:13 2019 [Z0][VM][I]: New LCM state is BOOT\_POWEROFF  
> Sun Feb 24 16:39:13 2019 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/717/deployment.1  
> Sun Feb 24 16:39:13 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_context.  
> Sun Feb 24 16:39:14 2019 [Z0][VMM][I]: ExitCode: 0  
> Sun Feb 24 16:39:14 2019 [Z0][VMM][I]: Successfully execute network driver operation: pre.  
> Sun Feb 24 16:39:15 2019 [Z0][VMM][I]: ExitCode: 0  
> Sun Feb 24 16:39:15 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.  
> Sun Feb 24 16:39:15 2019 [Z0][VMM][I]: ExitCode: 0  
> Sun Feb 24 16:39:15 2019 [Z0][VMM][I]: Successfully execute network driver operation: post.  
> Sun Feb 24 16:39:15 2019 [Z0][VM][I]: New LCM state is RUNNING  
> Sat Mar 2 11:20:55 2019 [Z0][VM][I]: New LCM state is SHUTDOWN\_POWEROFF  
> Sat Mar 2 11:21:01 2019 [Z0][VMM][I]: ExitCode: 0  
> Sat Mar 2 11:21:01 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: shutdown.  
> Sat Mar 2 11:21:02 2019 [Z0][VMM][I]: ExitCode: 0  
> Sat Mar 2 11:21:02 2019 [Z0][VMM][I]: Successfully execute network driver operation: clean.  
> Sat Mar 2 11:21:02 2019 [Z0][VM][I]: New state is POWEROFF  
> Sat Mar 2 11:21:02 2019 [Z0][VM][I]: New LCM state is LCM\_INIT  
> Sat Mar 2 11:26:47 2019 [Z0][VM][I]: New state is ACTIVE  
> Sat Mar 2 11:26:47 2019 [Z0][VM][I]: New LCM state is BOOT\_POWEROFF  
> Sat Mar 2 11:26:47 2019 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/717/deployment.2  
> Sat Mar 2 11:26:47 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_context.  
> Sat Mar 2 11:26:47 2019 [Z0][VMM][I]: ExitCode: 0  
> Sat Mar 2 11:26:47 2019 [Z0][VMM][I]: Successfully execute network driver operation: pre.  
> Sat Mar 2 11:26:49 2019 [Z0][VMM][I]: ExitCode: 0  
> Sat Mar 2 11:26:49 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.  
> Sat Mar 2 11:26:49 2019 [Z0][VMM][I]: ExitCode: 0  
> Sat Mar 2 11:26:49 2019 [Z0][VMM][I]: Successfully execute network driver operation: post.  
> Sat Mar 2 11:26:49 2019 [Z0][VM][I]: New LCM state is RUNNING  
> Mon Jun 3 16:24:55 2019 [Z0][VM][I]: New state is ACTIVE  
> Mon Jun 3 16:24:55 2019 [Z0][VM][I]: New LCM state is DISK\_RESIZE  
> Mon Jun 3 16:24:55 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_resize.  
> Mon Jun 3 16:24:56 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 16:24:56 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: resize\_disk.  
> Mon Jun 3 16:24:56 2019 [Z0][VMM][I]: VM disk successfully resized  
> Mon Jun 3 16:24:56 2019 [Z0][VM][I]: New LCM state is RUNNING  
> Mon Jun 3 16:24:56 2019 [Z0][LCM][I]: VM disk resize operation completed.  
> Mon Jun 3 16:48:02 2019 [Z0][VM][I]: New LCM state is SHUTDOWN\_POWEROFF  
> Mon Jun 3 16:48:10 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 16:48:10 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: shutdown.  
> Mon Jun 3 16:48:10 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 16:48:10 2019 [Z0][VMM][I]: Successfully execute network driver operation: clean.  
> Mon Jun 3 16:48:10 2019 [Z0][VM][I]: New state is POWEROFF  
> Mon Jun 3 16:48:10 2019 [Z0][VM][I]: New LCM state is LCM\_INIT  
> Mon Jun 3 16:48:29 2019 [Z0][VM][I]: New state is ACTIVE  
> Mon Jun 3 16:48:29 2019 [Z0][VM][I]: New LCM state is BOOT\_POWEROFF  
> Mon Jun 3 16:48:29 2019 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/717/deployment.4  
> Mon Jun 3 16:48:29 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_context.  
> Mon Jun 3 16:48:30 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 16:48:30 2019 [Z0][VMM][I]: Successfully execute network driver operation: pre.  
> Mon Jun 3 16:48:31 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 16:48:31 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.  
> Mon Jun 3 16:48:31 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 16:48:31 2019 [Z0][VMM][I]: Successfully execute network driver operation: post.  
> Mon Jun 3 16:48:31 2019 [Z0][VM][I]: New LCM state is RUNNING  
> Mon Jun 3 17:10:21 2019 [Z0][VM][I]: New LCM state is SHUTDOWN\_POWEROFF  
> Mon Jun 3 17:10:28 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 17:10:28 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: shutdown.  
> Mon Jun 3 17:10:28 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 17:10:28 2019 [Z0][VMM][I]: Successfully execute network driver operation: clean.  
> Mon Jun 3 17:10:28 2019 [Z0][VM][I]: New state is POWEROFF  
> Mon Jun 3 17:10:28 2019 [Z0][VM][I]: New LCM state is LCM\_INIT  
> Mon Jun 3 17:12:46 2019 [Z0][VM][I]: New state is ACTIVE  
> Mon Jun 3 17:12:46 2019 [Z0][VM][I]: New LCM state is BOOT\_POWEROFF  
> Mon Jun 3 17:12:46 2019 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/717/deployment.5  
> Mon Jun 3 17:12:46 2019 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_context.  
> Mon Jun 3 17:12:47 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 17:12:47 2019 [Z0][VMM][I]: Successfully execute network driver operation: pre.  
> Mon Jun 3 17:12:48 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 17:12:48 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.  
> Mon Jun 3 17:12:48 2019 [Z0][VMM][I]: ExitCode: 0  
> Mon Jun 3 17:12:48 2019 [Z0][VMM][I]: Successfully execute network driver operation: post.  
> Mon Jun 3 17:12:48 2019 [Z0][VM][I]: New LCM state is RUNNING

---

<div class="post-metadata">

**Author:** ![cgonzalez](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cgonzalez/32/7096_2.png) [@cgonzalez](https://forum.opennebula.io/u/cgonzalez)\
**Post date:** [June 4, 2019, 3:31pm UTC](https://forum.opennebula.io/t/one-vm-migrate-error-getting-datastore/7307/2 "2019-06-04T15:31:34Z")

</div>

It seems that all the history records of the VM makes reference to datastore 103. It is possible that you deleted that datastore?

---

<div class="post-metadata">

**Author:** ![superxor](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@superxor](https://forum.opennebula.io/u/superxor)\
**Post date:** [June 5, 2019, 6:25am UTC](https://forum.opennebula.io/t/one-vm-migrate-error-getting-datastore/7307/3 "2019-06-05T06:25:55Z")

</div>

I am aware but the only thing saved in 103 is the context cd file. The OS disk is actually on ceph and works fine, but somehow the migration fails due to the context disk.  
Neither my colleague nor me remembering deleting a datastore (which we’d probably would have noticed). And I can’t think of any other data storage that we could have used, we have it like this since the very beginning.
