Commit Graph

5 Commits

Author SHA1 Message Date
Dan Bode
d5dc26c7f3 set network bridge in the provider
This commit sets the network bridge manually in the
call to nova-manage.

This change is required for essex support.
2012-03-19 17:59:00 -07:00
Dan Bode
bfd1fa5da8 Ensure nova_manage detects existing networks
Previously, there was a bug in the exists? method of
the nova_network provider where it could not detect
if a network already existed. This is b/c it
appended an extra /\d\d on the network id.

This commit corrects the logic so that existing
networks can be correctly detected.
2012-01-24 22:04:22 -08:00
Dan Bode
bcca7bedc4 Replace optional_commands with commands in providers
Optional commands can be used to specify that a
command may not exist when provider suitability
is determined. This is because it may be installed
during the same run where it needs to be used.

Previously, an empty default provider was created
just to prevent failures when provider suitability
was determined. This also required that the provider
be explicitly overridden when the type is used.

Using optional_commands instead of command reduces
the amount of required code. It allows the default
providers to be removed as well as the explicit
provider attributes.

This changed has been implemented for the following
types:
  - nova_manage
  - nova_network
  - nova_admin
2012-01-24 22:00:38 -08:00
James Turnbull
7cea1c1a38 Fixed GitHub Issue #17 - nova network failures
The Nova network create command now needs a label to create a network.
I've created a label parameter in the nova_network type that currently
defaults to novanetwork.

The nova network list command also now fails if no networks exist.
I've wrapped it in a rescue block which returns false is the command
fails which is clearly not the right response but I need this to work
for a demo.
2011-07-23 04:08:49 +10:00
Dan Bode
072e519171 Converted into nova module repo.
- removed all submodules
  I will create an openstack repo to
  hold all modules (including nova) as
  submodules
- moved nova module to top dir
2011-06-16 20:29:58 -07:00