ec2test should not fail silently if it exceeds its time-to-live

Bug #588309 reported by Māris Fogels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Developer Utilities
Triaged
Low
Unassigned

Bug Description

When the ec2 testrunner fails due to an issue in the test infrastructure, an automatic timer kicks in to kill the instance. This happens silently, which is annoying to users: the instance just disappears. ec2test should send a mail to the user before it dies stating that the automated shutdown has been triggered.

Revision history for this message
Jonathan Lange (jml) wrote :

How would this work? The remote.py script can't do it. You'd have to have a second script on the instance that sends an email and shuts down, I think, and schedule *that* script to be run with 'at'.

Revision history for this message
Māris Fogels (mars) wrote : Re: [Bug 588309] Re: ec2test should not fail silently if it exceeds its time-to-live

On Tue, Sep 21, 2010 at 4:35 AM, Jonathan Lange <email address hidden> wrote:
> How would this work? The remote.py script can't do it. You'd have to
> have a second script on the instance that sends an email and shuts down,
> I think, and schedule *that* script to be run with 'at'.
>

Yes, that is what I was thinking.

Getting the shutdown script up there would be a bit ugly - maybe a
here document pushed up to the instance via SSH.

Gary Poster (gary)
Changed in launchpad:
assignee: Māris Fogels (mars) → nobody
Revision history for this message
Jonathan Lange (jml) wrote :

This might have been done, actually.

tags: added: ec2test
Revision history for this message
Jonathan Lange (jml) wrote :

EC2TestRunner.configure_system sets up the timeout for the shutdown. It works by scheduling a shutdown call in the future using 'at'. If that shutdown is triggered, the test run will fail silently. Have verified this experimentally.

On the plus side, this happens rarely these days. On the negative side, if it starts happening more often, it will be a great pain. It's also hard to fix.

Changed in launchpad:
importance: High → Low
Aaron Bentley (abentley)
affects: launchpad → lp-dev-utils
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.