When attempting to create a new environment manually via dos.py, slave nodes are not properly getting network interfaces attached to them.
Steps to reproduce:
1) dos.py create --vcpu 1 --node-count 2 --ram 2048 --iso-path ~/arch/fuel-6.1-282-2015-04-06_08-49-30.iso as
2) view the as_slave-1 node's configuration and note the lack of network interfaces on the VM
Possible cause:
In attempting to debug why this is happening, I discovered the node.attach_to_networks function wasn't actually getting any networks back from the self.environment.get_networks(...) call. Specifically this issue can be resolved in devops/models/node.py[0]. This call is getting passed to a django queryset filter(...) call in an attempt to get the networks to be used to attach to the node. Because the network list being passed is an array, the get_networks(name=[...]) call should be get_networks(name__in=[...]) so that it will properly do an IN query[1].
[0] https://github.com/stackforge/fuel-devops/blob/master/devops/models/node.py#L191
[1] https://docs.djangoproject.com/en/dev/ref/models/querysets/#in
Fix proposed to branch: master /review. openstack. org/182392
Review: https:/