3 Running OpenNebula and Haizea together

Now that Haizea is configured to run alongside OpenNebula, running them is as simple as starting the OpenNebula daemon:


Followed by Haizea:

haizea -c /usr/share/haizea/etc/sample_opennebula.conf

The above assumes that you are running OpenNebula and Haizea in the same machine and with the same user. If this is not the case, you have to set the ONE_AUTH environment variable (as described in the OpenNebula documentation) for the user and machine running Haizea. The variable must contain the path to a file containing the username and password of the OpenNebula administrator user (typically called oneadmin) with the format username:password.

By default, Haizea runs as a daemon when running in OpenNebula mode. For this chapter, you may want to run it in the foreground so you can see the Haizea log messages in your console:

haizea --fg -c /usr/share/haizea/etc/sample_opennebula.conf

When Haizea starts up, it will print out something like this:

[                      ] ENACT.ONE.INFO Fetched N nodes from OpenNebula
[2009-07-30 18:36:54.07] RM      Starting resource manager
[2009-07-30 18:36:54.07] RPCSERVER RPC server started on port 42493
[2009-07-30 18:36:54.07] CLOCK   Starting clock

This means that Haizea has correctly started up, contacted OpenNebula and detected that there are N physical nodes (the value of N will depend, of course, on how many nodes you have in your system).

Haizea is a drop-in replacement for OpenNebula's default scheduler (mm_sched). Do not run Haizea and mm_sched at the same time, or funny things will happen.

Borja Sotomayor 2009-12-17