[SOLVED] Failed to update the following hosts

Hello,
I upgrade our opennebula kvm cluster from 5.6.1 to 5.8.1 following the notes from here http://docs.opennebula.org/5.8/intro_release_notes/upgrades/upgrade_56.html

Everything was fine up to the the " Update the Drivers" and the sync command.
$ onehost sync
Failed to update the following hosts:

The --force option gives me the same result.

The cluster is working fin for now, but I am worried because the sync did not complete.

Hello @FoZo

Did you see any error message in the oned.log?

Hi Georgi,

I am almost permanently playing with the files in the remotes folder and usually the such issue usually caused by wrong file permission/

The issue should become clear if you run

su - oneadmin
scp -rp /var/lib/one/remotes/* $REMOTE_HOST:/var/tmp/one` 

and look for Permission denied

Cheers,
Anton Todorov

Hello,
@ahuertas

Did you see any error message in the oned.log?

No, there is nothing in the logs related to that command.

@atodorov_storpool

such issue usually caused by wrong file permission/

Yep, that was the case.
I checked the permissions. The only file inside /var/tmp/one that was not owned by oneadmin was reserved.sh . I changed the owner and the sync was successful.
Thanks!

It will be much better if the output from onehost sync can be more verbose.

Noted :wink:
Will review the install procedure of addon-storpool to address the issue.

Best Regards,
Anton Todorov

1 Like