package based install does not register nodes properly

Bug #558719 reported by Dustin Kirkland  on 2010-04-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Medium
Dustin Kirkland 
Lucid
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=

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?

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
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.

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
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.

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.

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  Edit
Everyone can see this information.

Other bug subscribers