lp:~xtoddx/nova/lp720157

Created by Todd Willey and last modified
Get this branch:
bzr branch lp:~xtoddx/nova/lp720157
Only Todd Willey can upload to this branch. If you are Todd Willey please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Todd Willey
Project:
OpenStack Compute (nova)
Status:
Development

Recent revisions

682. By Todd Willey

Fix parameter parsing in ec2 for older (version 1 signature) clients.

681. By Soren Hansen

Add back --logdir=DIR option. If set, a logfile named after the binary (e.g. nova-api.log) will be kept in DIR.

680. By Vasiliy Shlykov

This branch should resolve nova bug #718675 (https://bugs.launchpad.net/nova/+bug/718675).

Also added dropping of tables in case of failures so `nova-manage sync db` will can restart next time.

679. By Trey Morris

this bug bit me hard today. pv can be None, which does not translate to %d and this error gets clobbered by causing errors in the business in charge of capturing output and reporting errors.

678. By Thierry Carrez

Fixes tarball contents by adding missing scripts and files to setup.py / MANIFEST.in

677. By justinsb

When re-throwing an exception, use "raise", not "raise e". This way we don't lose the stack trace.

676. By Salvatore Orlando

The proposed fix puts a VM which fails to spawn in a (new) 'FAILED' power state. It does not perform a clean-up.
This because the user needs to know what has happened to the VM he/she was trying to run. Normally, API users do not have access to log files. In this case, the only way for the user to know what happened to the instance is to query its state (e.g.: doing euca-describe-instances). If we perform a complete clean-up, no information about the instance which failed to spawn will be left.

For the NO_HOST_AVAILABLE error, which occurs when there is not enough RAM left on the host, the amount of available memory is now checked at the beginning of the spawn process. This way, if there is not enough RAM left on the host, the spawn process returns immediately.
A test case (spawn_not_enough_memory) has been added as well.

I understand adding a new value to the power_state enumeration might not be acceptable. In that case I will propose for merge a different branch in which we perform a complete clean-up.
However, I reckon we still to provide a way to inform the user the spawn process has failed.

675. By termie

Some trivial cleanups in context.py, mostly just a test of using the updated git-bzr-ng

674. By Soren Hansen

Use eventlet.green.subprocess instead of standard subprocess

673. By Soren Hansen

Fix sporadically failing unittests.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~hudson-openstack/nova/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers