Node Controller (NC) fail to register
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eucalyptus (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
I had been having problems with UEC on ubuntu 10.10 getting the Node Controllers (NC) to register correctly.
Finally, after searching both the Ubuntu and Eucalyptus forums (and launchpad bugs) I found the following message on the Eucalyptus forum:
= = = = = = =
Posted: Mon, 09/20/2010 - 13:08
when you did 'euca_conf --register-nodes 192.168.1.100', did you type in your password for either root or eucalyptus account on NC?
If this continue to fail, then you can perform credential exchange steps manually.
1. Add a line to /opt/eucalyptus
NODES=
2. Copy followings files from CLC's /opt/eucalytpus
cc-client-
3. Make sure the owner of above files on NC is eucalyptus.
4. Restart CLC/CC/NC.
= = = = = =
Here is what I found after reading the above in particular the following statement:
2. Copy followings files from CLC's /opt/eucalytpus
cc-client-
That statement made me go look to see where those PEM key files actually were on the CLC and it appears that after a default install of UEC on 10.10 the PEM key files are placed into==> /var/lib/
$ sudo ls -lg ./var/lib/
total 24
-rw-r--r-- 1 eucalyptus 1147 2010-09-28 18:43 cloud-cert.pem
-rw-r--r-- 1 eucalyptus 1147 2010-09-28 18:43 cluster-cert.pem
-rw-r--r-- 1 eucalyptus 1675 2010-09-28 18:43 cluster-pk.pem
-rw-r--r-- 1 eucalyptus 1147 2010-09-28 18:43 node-cert.pem
-rw-r--r-- 1 eucalyptus 1675 2010-09-28 18:43 node-pk.pem
-rw-r--r-- 1 eucalyptus 512 2010-09-28 18:43 vtunpass
I know there are differences with UEC and Eucalyptus but are these files perhaps supposed to be in the /var/lib/
On my CLC if I try to manually register an NC the error messages returned seem to think the fils should be? (see below)
>> $ euca_conf --register-nodes 172.17.34.31
>> cat: /var/lib/
>>
>> INFO: We expect all nodes to have eucalyptus installed in //var/lib/
>> Warning: cannot file file node-cert.pem in //var/lib/
>> Warning: cannot file file cluster-cert.pem in //var/lib/
>> Warning: cannot file file node-pk.pem in //var/lib/
>> Warning: cannot file file cloud-cert.pem in //var/lib/
If so then this may be where the NC registration problems that myself and others have been reporting are occurring.
description: | updated |
description: | updated |
Thank you for opening this bug and helping make Ubuntu better.
'euca_conf' is expected to be run under 'sudo': the files under /var/lib/eucalyptus are owned by the 'eucalyptus' user. Please re-run the node registration as:
sudo euca_conf --register-nodes ...
Now, if you have your environment correctly set up, the installation of a new NC should capture the Eucalyptus basic configuration (CLC, SC, Walrus, and CC) from the -registration services -- so you might have a problem somehwere there.
Additionally, I do not like the messages stating "Warning: cannot file file ..." -- these are not clear (what does 'file file' mean?). I would like you to open a new bug on this, and add in the command and full output.
Finally, it is usually a better option to try to open bugs via 'ubuntu-bug eucalyptus' -- this will also upload logs, and allow for an easier (and hopefully faster) issue triage.