Comment 2 for bug 1638399

Revision history for this message
Pushkar Acharya (pacharya) wrote :

The neutron bind_port is populating the Amazon subnet-id and the fixed IP to use. These values are used in nova compute's spawn call. To create an instance using AWS API we need to specify the subnet-id and a free IP that should be used.
The relevant code is in-
https://github.com/platform9/openstack-omni/blob/master/nova/ec2/ec2driver.py
The subnet id and fixed ip are parsed on line 348 and subsequently passed to run_instances() on line 378 for creating instance using that subnet.
We have not implemented create_port and delete_port since AWS does not allow detaching and attaching networks for running VMs.