Hi!

I'm trying to use opencontrail-netns, but I have to run netns-daemon-start
twice in order to configure everything properly. After first run it hungs
on discovering ip address from DHCP, during second run everything works
fine.

What I found is that when I change code a little it works on the first
time. I've changed instance_provisioner.py in the way that it updates
interface also after its creation:

--- a/opencontrail_netns/instance_provisioner.py
+++ b/opencontrail_netns/instance_provisioner.py
@@ -65,8 +65,7 @@ class Provisioner(object):
         if create:
             self._client.virtual_machine_interface_create(vmi)
             vmi = self._client.virtual_machine_interface_read(id=vmi.uuid)
-        else:
-            self._client.virtual_machine_interface_update(vmi)
+        self._client.virtual_machine_interface_update(vmi)

         ips = vmi.get_instance_ip_back_refs()
         if ips and len(ips):

Could you tell me why this interface update is necessary? I can't see any
difference in OpenContrail and vRouter configuration before and after this
update, but opencontrail-netns started to work properly after this change.

Thanks!
_______________________________________________
Users mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org

Reply via email to