ec2test barfs if the ssh-agent keys are stored in the wrong order

Bug #577118 reported by Māris Fogels on 2010-05-07
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Developer Utilities
Low
Unassigned

Bug Description

The "ec2 test" and "ec2 land" commands crash if the ssh-agent has its keys stored in order such that the first public key listed is not the default identity on the current host. The ec2 instance dies when it tries to download the sourcecode from launchpad onto the new instance using that non-default key. A traceback showing this is attached.

For example, it will crash if my agent stores the keys in the following order, with a remote server's public key coming first:

mars@local $ ssh-add -l
ff:ff:ff:ff:ff mars@remote
ff:ff:ff:ff:ff mars@remote2
dd:dd:dd:dd mars@launchpad # this is the key I use to access Launchpad

ec2test will incorrectly select the first public key ('mars@remote'), copy that to the ec2 instance, then try and download the sourcecode from Launchpad using it. The key mismatch causes Launchpad to reject the login, then everything crashes.

The correct behaviour is to specify or intelligently find the key or identity that the ec2 instance should use to download files from Launchpad.

As a workaround you might be able to take all of the keys in your ssh-agent and add them to Launchpad.

Māris Fogels (mars) wrote :
Changed in launchpad-foundations:
assignee: nobody → Māris Fogels (mars)
milestone: none → 10.05
status: Triaged → Fix Committed
tags: added: qa-needstesting
Māris Fogels (mars) wrote :

I'm removing the QA landing flags. The landing was just to add an XXX, not a fix. The bug is still open.

Changed in launchpad-foundations:
status: Fix Committed → Triaged
assignee: Māris Fogels (mars) → nobody
tags: removed: qa-needstesting
Jonathan Lange (jml) on 2011-03-09
tags: added: ec2test
Jonathan Lange (jml) on 2011-03-09
Changed in launchpad:
milestone: 10.05 → none
Aaron Bentley (abentley) on 2012-03-08
affects: launchpad → lp-dev-utils
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers