Eucalyptus component registration process is manual

Bug #425922 reported by Daniel Nurmi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

The UEC installer asks the user for a cluster name upon installing the front-end components, but this information is not propagated through to the first boot, where the components are running and ready to be registered. The manual process is currently:

one front-end:
install UEC cluster
stop eucalyptus services
configure eucalyptus services
start eucalyptus services

on node:
install UEC node
stop eucalyptus-nc
configure eucalyptus-nc
start eucalyptus-nc

on front-end:
'euca_conf --register-walrus <ip of front-end>'
'euca_conf --register-cluster <name of cluster> <ip of front-end>'
'euca_conf --register-sc <name of cluster> <ip of front-end>'
'euca_conf --register-nodes <ip of node>'

If we can determine the above three values from the installer, or from the avahi eucalyptus protocol, then the process of registering eucalyptus components could be automated.

Tags: eucalyptus
Alex Lourie (alourie)
tags: added: wishlist
Matt Zimmerman (mdz)
Changed in eucalyptus (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Soren Hansen (soren)
Matt Zimmerman (mdz)
tags: added: eucalyptus
removed: wishlist
Soren Hansen (soren)
Changed in eucalyptus (Ubuntu):
assignee: Soren Hansen (soren) → Colin Watson (cjwatson)
Revision history for this message
Colin Watson (cjwatson) wrote :

I think cluster registration is actually already handled (see tools/eucalyptus-cc.in:register_local_cloud in the Ubuntu branch), but some more similar work needs to be done on the other components.

Revision history for this message
Colin Watson (cjwatson) wrote :

Do you have any idea how we can tell in a script whether the Walrus and storage controller components are already registered? For the cluster controller, we check for the existence of /var/lib/eucalyptus/keys/cluster-pk.pem; but it isn't obvious to me how to do the same for the Walrus and SC.

Revision history for this message
Daniel Nurmi (nurmi) wrote :

I'm not sure that there is a good way to tell from a script whether they have been registered, but I can say that the registration command is idempotent. One can run 'euca_conf --register-walrus <ip>' many times, and only the first time will have any effect (consecutive runs will succeed, but the command is basically a NOP). Same for SC. Is this sufficient behavior?

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 425922] Re: Eucalyptus component registration process is manual

What if it's already registered to another cloud controller, though?
Would --register-walrus <local-ip> forcibly re-register with a local
cloud? We wouldn't want that, I think.

We'd want some way to distinguish "failed to register because already
registered" from "failed to register because something went wrong". As
such I think it would be helpful to have a way to tell up-front whether
the component has already been registered or not.

Revision history for this message
Colin Watson (cjwatson) wrote :

I'd really appreciate it if somebody could eyeball this branch and let me know whether it looks sane:

  http://bazaar.launchpad.net/~cjwatson/eucalyptus/register-walrus-sc/revision/539

Revision history for this message
Colin Watson (cjwatson) wrote :

I think I have everything in place now, but in my testing the cloud controller was falling over in various ways when I tried to register components. I'm not at all convinced that that wasn't an artifact of my test environment, so I would appreciate somebody with a more competent environment giving this a run-through and seeing how it works.

Changed in eucalyptus (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eucalyptus - 1.6~bzr746-0ubuntu2

---------------
eucalyptus (1.6~bzr746-0ubuntu2) karmic; urgency=low

  [ Colin Watson ]
  * On initial cluster installation, allow authentication to the front-end
    using the cluster's SSH key (LP: #429087).
  * Update the cloud .jar name we look for when registering a cluster with a
    local cloud.
  * Check for IPv6 listeners as well as IPv4 when registering a cluster with
    a local cloud.
  * Actually kill cloud/Walrus/SC processes before entering a timeout loop
    to wait for them to die.
  * Automatically register Walrus and storage controllers with any local
    cloud (LP: #425922).
  * Discard standard output from euca_conf when registering components in
    init scripts.

  [ Soren Hansen ]
  * Add configuration for mpm_event.

 -- Colin Watson <email address hidden> Tue, 15 Sep 2009 22:44:25 +0100

Changed in eucalyptus (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.