My Article to FOSSUser - "Ubuntu on Cloud" Part 9

on Saturday, April 07, 2012
After the installation up to figure 12, you need to install the Node Controller/ Controllers and register them. The node controller install is even simpler. Just make sure that you are connected to the network on which the cloud/cluster controller is already running.
After booting the ISO on the node or nodes, select UEC from there. It should detect the Cluster and preselect “Node” install for you. Make confirm your partitioning scheme, and the rest of the installation completes without interruption. You can log in to system as the cloud cluster host will define you the username and password.

When you are registering your nodes, well that will happen automatically, if the following prerequisites mentioned below is reached.
Public SSH keys have been exchanged properly, the services are configured properly and publishing their existence, the appropriate UEC-component-listener is running and verification of the registration.

Exchanging the SSH keys are vital. Because The Cloud Controller's eucalyptus user needs to have SSH access to the Walrus Controller, Cluster Controller, and Storage Controller as the eucalyptus user.
You can install the SSH keys from these following commands.
On the target controller, temporarily set a password for the eucalyptus user.

 sudo passwd eucalyptus
 
Then on the Cloud Controller,
 
sudo -u eucalyptus ssh-copy-id -i /var/lib/eucalyptus/.ssh/id_rsa.pub eucalyptus@<IP_OF_NODE>
 
Now you can preferably erase the target controller password.
 
sudo passwd -d eucalyptus
 
Next you have to configure the service of both the Cluster and Cloud Controllers.  For the Cluster control configuration, define two shell variables.

CC-NAME in
/etc/eucalyptus/eucalyptus-cc.conf and

CC_IP_ADDR in /etc/eucalyptus/eucalyptus-ip-addr.conf **


For the Walrus Controller,
Define the shell variable,

WALRUS_IP_ADDR in /etc/eucalyptus/eucalyptus-ipaddr.conf

Now this should defined as a single IP address.
 
On the other hand same procedure should be done at the Cloud Controller.

 
For the Storage Controller registration, same as cluster, define two shell variables following such as,


CC-NAME in /etc/eucalyptus/eucalyptus-cc.conf and

CC_IP_ADDR in
/etc/eucalyptus/eucalyptus-ip-addr.conf **


** - If you have more IP addresses use a space to separate them.

Now, there you go, start publishing the services which you registered now. The commands are below.

sudo start eucalyptus-walrus-publication   à (1)
sudo start eucalyptus-walrus-publication   à (2)
sudo start eucalyptus-walrus-publication   à (3)
sudo start eucalyptus-walrus-publication   à (4)
 
 
(1)   -> Walrus Controller
(2)   -> Cluster Controller
(3)   -> Storage Controller
(4)   -> Node Controller


Now start the listener. Run the following command in both CC and CLC.

sudo start uec-component-listener
 
          Verify the registration of your eucalyptus components.
 
cat /var/log/eucalyptus/registration.log
 
What you see as a result is,



2011-12-22 15:46:36-05:00 | 24243 -> Calling node cluster1 node 10.1.1.75
 
2010-04-08 15:46:36-05:00 | 24243 -> euca_conf --register-nodes returned 0
 
2011-12-22 15:48:47-05:00 | 25858 -> Calling walrus Walrus 10.1.1.71
 
2011-12-22 15:48:51-05:00 | 25858 -> euca_conf --register-walrus returned 0
 
2011-12-22 15:49:04-05:00 | 26237 -> Calling cluster cluster1 10.1.1.71
 
2011-12-22 15:49:08-05:00 | 26237 -> euca_conf --register-cluster returned 0
 
2011-12-22 15:49:17-05:00 | 26644 -> Calling storage cluster1 storage 10.1.1.71
 
2011-12-22 15:49:18-05:00 | 26644 -> euca_conf --register-sc returned 0


If these things are fine, you got to go for the next step, which you need to obtain the Credentials. There are two ways you can get your credentials, which are using a web browser and using the command line. I prefer the command line method. Let we drive it forward using the command line. Just run these commands in your cloud controller command line.


mkdir -p ~/.euca
chmod 700 ~/.euca
cd ~/.euca
sudo euca_conf --get-credentials mycreds.zip
unzip mycreds.zip
ln -s ~/.euca/eucarc ~/.eucarc
cd -

Note that ~/.euca is the directory name that you save your credentials.

         Continued in Part 10
         http://imthefortune7.blogspot.com/2012/04/my-article-to-fossuser-ubuntu-on-cloud_2080.html

0 comments:

Post a Comment