Hello,
I have just installed my firts KVM host. Until today, my OpenNebula “cluster” had only one server that acted as front-end and kvm host. Today, I have added a kvm host. After doing step-by-step (adding a “temporarly” password for “oneadmin” user in kvm host to allow scp and ssh-copy-id, I have test the installation… and it has failed. The error occurs when front-end executes this “remote” script:
[oneadmin@front-end ~]$ /var/lib/one/remotes/tm/qcow2/clone front-end:/var/lib/one//datastores/1/2f73546291bb78b3d0fe356e1c950805 kvm-host:/var/lib/one//datastores/0/7233/disk.0 7233 1
INFO: clone: Cloning /var/lib/one//datastores/1/2f73546291bb78b3d0fe356e1c950805 in kvm-host:/var/lib/one//datastores/0/7233/disk.0
ERROR: clone: Command "set -e -o pipefail
cd /var/lib/one//datastores/0/7233
rm -rf "/var/lib/one//datastores/0/7233/disk.0.snap"
mkdir -p "/var/lib/one//datastores/0/7233/disk.0.snap"
B_FORMAT=$(qemu-img info /var/lib/one//datastores/1/2f73546291bb78b3d0fe356e1c950805 | grep "^file format:" | awk '{print $3}' || :)
qemu-img create -o backing_fmt=${B_FORMAT:-raw} -b /var/lib/one//datastores/1/2f73546291bb78b3d0fe356e1c950805 -f qcow2 /var/lib/one//datastores/0/7233/disk.0.snap/0
rm -f "/var/lib/one//datastores/0/7233/disk.0"
ln -s disk.0.snap/0 /var/lib/one//datastores/0/7233/disk.0
cd /var/lib/one//datastores/0/7233/disk.0.snap
ln -s . /var/lib/one//datastores/0/7233/disk.0.snap/disk.0.snap" failed: qemu-img: Could not open '/var/lib/one//datastores/1/2f73546291bb78b3d0fe356e1c950805': Could not open '/var/lib/one//datastores/1/2f73546291bb78b3d0fe356e1c950805': No such file or directory
qemu-img: /var/lib/one//datastores/0/7233/disk.0.snap/0: Could not open '/var/lib/one//datastores/1/2f73546291bb78b3d0fe356e1c950805': No such file or directory
ERROR MESSAGE --8<------
Error copying front-end:/var/lib/one//datastores/1/2f73546291bb78b3d0fe356e1c950805 to kvm-host:/var/lib/one//datastores/0/7233/disk.0
ERROR MESSAGE ------>8--
I understand, after getting this error in oned.log (in front-end node), that “remote” script has failed because in kvm-host doesn’t exist datastore “1”… only “0”…
Also, I have noticed that in “Storage → Datastore” (in Sunstone web interface), it only appears the three datastores created in the front-end node, but nothing about kvm-host… so who or what process must created datastore structure in kvm-host?
I have added, doing some tests, a new “image” datastore in kvm-host, but ID is different (of course!), so this new datastore has a ID like “100”, so script fails too.
What can I do?
Furthermore, this problem add that in Sunstone, the free space for VMs (datastore 1) only shows front-end size but not kvm-host free space. In this way, I have 7.6 TB in front-end node and 9.1 TB in my new kvm-host, but these 9.1 TB doesn’t appear in Storage->Datastore.
Help, please
Thanks!