package based install does not register nodes properly

Bug #558719 reported by Dustin Kirkland 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Fix Released
Medium
Dustin Kirkland 
Lucid
Fix Released
Medium
Dustin Kirkland 

Bug Description

ubuntu@aussie:~$ cat /var/log/eucalyptus/registration.log
2010-04-08 15:28:41-05:00 | 7928 -> Calling node cluster1 node 10.1.1.75
2010-04-08 15:28:41-05:00 | 7928 -> euca_conf --register-nodes returned 1

ubuntu@aussie:~$ sudo euca_conf --register-nodes 10.1.1.75

INFO: We expect all nodes to have eucalyptus installed in //var/lib/eucalyptus/keys for key synchronization.

Trying rsync to sync keys with "10.1.1.75"...rsync: Failed to exec -l: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(84) [sender=3.0.7]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in IPC code (code 14) at io.c(601) [sender=3.0.7]
failed.

Trying scp to sync keys to: eucalyptus@10.1.1.75://var/lib/eucalyptus/keys/...
done.
haystack=

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Couple of things ...

1) we need to get rid of the "haystack=" debug statement.
2) actually, the rsync fails, but the scp works (exits 0, and registers the node correctly). However, the automatic node registration does not work. Perhaps it only tries the rsync code path?

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Fix committed for (1). Still investigating (2).

Changed in eucalyptus (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Dustin Kirkland (kirkland)
description: updated
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Trying rsync to sync keys with "10.1.1.75"...+ sudo -u eucalyptus /usr/bin/rsync --rsh -az //var/lib/eucalyptus/keys//node-cert.pem //var/lib/eucalyptus/keys//cluster-cert.pem //var/lib/eucalyptus/keys//node-pk.pem //var/lib/eucalyptus/keys//cloud-cert.pem eucalyptus@10.1.1.75://var/lib/eucalyptus/keys//
rsync: Failed to exec -l: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(84) [sender=3.0.7]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in IPC code (code 14) at io.c(601) [sender=3.0.7]

The ${RSYNC_RSH} is null.

I think I introduced this problem. I'm testing a fix.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Fix tested successfully. Committed, and uploaded. In Lucid queue.

Changed in eucalyptus (Ubuntu Lucid):
status: In Progress → Fix Committed
milestone: none → ubuntu-10.04
Revision history for this message
Thierry Carrez (ttx) wrote :

Node autoregistration runs:
/usr/sbin/euca_conf --no-rsync --skip-scp-hostcheck --register-nodes "${IP}"

So it's *not* exercising the rsync codepath. It usually fails because the authorized_keys on the NC are not set on a package based install and must be done manually.

Revision history for this message
Thierry Carrez (ttx) wrote :

Reading your instructions at https://help.ubuntu.com/community/UEC/PackageInstall
I'd probably do "Exchange Public SSH Keys" before "Publish", which should avoid the initial "return code 1" failure.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eucalyptus - 1.6.2-0ubuntu29

---------------
eucalyptus (1.6.2-0ubuntu29) lucid; urgency=low

  * tools/euca_conf.in: LP: #558719
    - remove debug print statement
    - ensure the RSYNC_RSH is set to something (ssh by default)
 -- Dustin Kirkland <email address hidden> Thu, 08 Apr 2010 18:08:30 -0500

Changed in eucalyptus (Ubuntu Lucid):
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.