I have 1 bunch of hosts in a local DC and a few hosts with a remote hosting company.
root@one-1:~# onecluster list
ID NAME HOSTS VNETS DATASTORES
0 default 0 0 0
100 FFGT TNG 6 2 7
101 UU GUT 2 2 3
102 UU FKS 2 2 3
103 FFGT Legacy 0 2 3
104 FKS-3 1 1 2
FKS-3 is one host a the remote hoster; trying to instantiate a VM there I end up with: [TemplateInstantiate] Error allocating a new virtual machine template. Incompatible clusters in NIC. Network for NIC 0 is not in the same cluster as the one used by other VM elements (cluster 100)
Ok, yes, the Datastore is 103, which relates to cluster 100:
root@one-1:~# onetemplate show 84 | grep -B4 -A2 100
DESCRIPTION="Start a new Ubuntu LTS (16.04) VM on HV-local storage"
DISK=[
CLONE="NO",
CLONE_TARGET="SYSTEM",
CLUSTER_ID="100",
DATASTORE="local_files",
DATASTORE_ID="103",
Thing is, I seem not to be able to clone an image to the remote location, I always get the message that the remote (ssh) datastore has not enough space.
root@one-1:~# onedatastore list
ID NAME SIZE AVAIL CLUSTERS IMAGES TYPE DS TM STAT
0 system 203.6G 15% 100,101,102, 0 sys - shared on
1 default 203.6G 15% 100,101,102, 4 img fs shared on
2 files 203.6G 15% 100,101,102, 0 fil fs shared on
102 local_system - - 100 0 sys - ssh on
103 local_files 393.6G 78% 100 19 img fs ssh on
104 lfs_img 3T 66% 100 5 img fs shared on
105 lfs_sys 3T 66% 100 0 sys - shared on
106 local_img_fks 0M - 104 0 img fs ssh on
107 local_sys_fks - - 104 0 sys - ssh on
The local oned-VM does not have the remote filesystems mounted; I assume that’s why it reads “0M” and therefore basically “no space left on device”?
root@one-1:~# for i in `cd /var/lib/one/datastores/ ; echo *` ; do echo -n "`printf %-4d $i `" ; df -h /var/lib/one/datastores/$i | tail -1 ; done
0 nfs-int:/nfs 204G 172G 30G 86% /nfs
1 nfs-int:/nfs 204G 172G 30G 86% /nfs
102 tmpnfs-int:/tmp-nfs 394G 66G 309G 18% /tmp-nfs
103 tmpnfs-int:/tmp-nfs 394G 66G 309G 18% /tmp-nfs
104 mfs#lfs:9421 3.0T 1.1T 2.0T 34% /lfs
105 mfs#lfs:9421 3.0T 1.1T 2.0T 34% /lfs
2 nfs-int:/nfs 204G 172G 30G 86% /nfs
root@FKS-3:~# for i in `cd /var/lib/one/datastores/ ; echo *` ; do echo -n "`printf %-4d $i `" ; df -h /var/lib/one/datastores/$i | tail -1 ; done
106 /dev/md2 50G 3.9G 43G 9% /
107 /dev/mapper/vg0-pg--gis 1.8T 509G 1.3T 29% /data
A few questions:
-
Why does the storage location of the image matter in regards to networking at all?!
-
How to I copy/clone an locally existing image to a remote ssh-based datastore?
-
What did I miss/misunderstood regarding OpenNebula concepts? (E. g. why would the oned-/Sunstone host need “mounted access” to filesystems defined to be accessible via ssh only?)