fp7-ofelia / ocf

OFELIA Control Framework (OCF) is a set of software tools for testbed management.
http://fp7-ofelia.github.com/ocf/
Other
18 stars 14 forks source link

VMs cannot be created on development Branch #208

Closed OscarMoya closed 10 years ago

OscarMoya commented 10 years ago

Default type VMs cannot be created. The following exception is raised by VTAM

Could not configure interfaces or Udev file
OscarMoya commented 10 years ago

Solved.

In commit aa71754dc94ef8684e0517c97908c9715088b5d2

The the line 23 of file /opt/ofelia/oxa/bin/xen/provisioning/configurators/ofelia/OfeliaDebianVMConfigurator.py was:

   for inter in vm.xen_configuration.interfaces:
                        if inter.ismgmt:
                             ...

It seems reasonably OK, but the parser translates the interfaces as list containing a list of interface. In this case inter is not a single interface instance but a list of interface

The correct code is the following:

   for inter in vm.xen_configuration.interfaces.interface:
                        if inter.ismgmt:
                             ...