On 08/12/11 - 03:39:31PM, Justin Clift wrote:
Hi guys,
Just came across something interesting. If an Aeolus server doesn't
have the "openssh-clients" package installed (ie Minimal install), then
pushing a Linux image to EC2 fails. ImageFactory log:
2011-08-12 15:13:28,448 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(1591)
Message: Waiting for EC2 ssh access: 260/300
2011-08-12 15:13:38,456 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(1591)
Message: Waiting for EC2 ssh access: 270/300
2011-08-12 15:13:48,466 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(1591)
Message: Waiting for EC2 ssh access: 280/300
2011-08-12 15:13:58,477 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(1591)
Message: Waiting for EC2 ssh access: 290/300
2011-08-12 15:14:08,487 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(1591)
Message: Stopping EC2 instance and deleting temp security group
There's nothing in the ImageFactory log that says "Hey, SSH is missing!",
so it kind of looked like a EC2 security groups problem.
Tried the push a few times, all failed. Then tried to ssh from the Aeolus vm this was
happening on.. and realised ssh wasn't installed. Installed it, then voila, pushes to
EC2 worked.
Anyway, kind of thinking the best solution will be to add a dependency of openssh-clients
to the ImageFactory rpm.
Sound about right?
Ah, this is a bug in the Oz spec file. I have it Requires: openssh, but not
Requires: openssh-clients, which is the right thing. I'll fix the oz spec
file, and then imagefactory will get it for free.
--
Chris Lalancette