Need help with installation and basic configuration (error monitoring host)

Hello everyone.

Ok i have a serious problem i’m constantly running into, for approx. 50 hours of testing now. I keep running into that “User couldn’t be authenticated, aborting call.” error from /var/log/one/oned.log. When i create a Host through web interface it’s state says “‘ERROR’, Tue Jun 9 16:07:42 2015 : Error monitoring Host myHost (0): -”. But let’s start from begining if that’s ok, mybe i did something wrong during the setup. Here are ALL the commands i used to setup opennebula on my fresh installation of centos 6.6.

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash
source /etc/profile.d/rvm.sh
\curl -sSL https://get.rvm.io | bash -s stable --ruby
source /usr/local/rvm/scripts/rvm
rvm install 2.2.2

-now i have latest ruby installed and i avoided 232389 errors during the setup

cat << EOT > /etc/yum.repos.d/opennebula.repo
[opennebula]
name=opennebula
baseurl=http://downcaloads.opennebula.org/repo/4.10/CentOS/6/x86_64
enabled=1
gpgcheck=0
EOT

yum install opennebula-server opennebula-sunstone opennebula-ruby
/usr/share/one/install_gems (with option 1 for CentOS)
onevm list (works like a charm)
sudo yum install opennebula-node-kvm

-i edited /etc/one/sunstone-server.conf file and updated the part with the servers ip address so i can connect to sunstone
-i opened port 9869, typed in sunstone-server start (like i need to do on every server restart for some reason) and it worked, i can connect to sunstone with my web browser.

-note that i haven’t touched anything with usernames/password, i’m logging in into sunstone with oneadmin/ae887337ca61something6316f9dda7319 credentials

Now, the problem is probably with ssh keys but i’m not sure. I don’t know how to set it up and i dont know how to troubleshoot it but it’s in the installation guide. Please help. Also, if someone has his own manual on how to set up opennebula properly i would be very very thankfull for the list of commands. I’ve walked through official guides many many times, both quick and normal setup but i’m just out of luck i guess. :S

You should get more information about the monitoring error in /var/log/one/oned.log. Usually the problem is passwordless ssh not correctly set up or the name of the host can not be resolved.

Can you check that you can connect to the node from the fronted as oneadmin user with this command?

$ ssh myHost

Yes, that works. (front-end and node are on the same server)

Ok, found the solution to this problem. The problem was in SELinux and i found the solution at https://n40lab.wordpress.com/2012/11/26/69/

yum -y install policycoreutils-python (for semanage command to work)
chcon -v --type=ssh_home_t /var/lib/one/.ssh/authorized_keys
semanage fcontext -a -t ssh_home_t /var/lib/one/.ssh/authorized_keys

The results were visible within few seconds, there was no need to restart any services.

Please someone who can give me some tutorial about sunstone configuration for network??! Thans

Hi, I don’t understand your question. Do you want to know how to create a virtual network from Sunstone? o How to connect Sunstone with OpenNebula?