Quoting Serge Hallyn ([email protected]): > Quoting Vitaly Lavrov ([email protected]): > > But there is a more difficult problem. > > > > Function lxc_rename_phys_nics_on_shutdown() does not always work as it > > should. > > > > ------ > > lxc-start 1393409939.368 INFO lxc_conf - running to reset 1 nic names > > lxc-start 1393409939.368 WARN lxc_conf - resetting nic 3 to eth2 > > failed: No such device > > ------ > > > > I added a wait loop and debug printing and that's what got: > > ----- > > lxc-start 1393433485.531 INFO lxc_conf - running to reset 1 nic names > > lxc-start 1393433485.532 WARN lxc_conf - resetting nic 3 to eth2 > > failed: 'No such device', delay 1ms > ... > > lxc-start 1393433485.545 WARN lxc_conf - resetting nic 3 to eth2 > > failed: 'No such device', delay 13ms > > lxc-start 1393433485.562 INFO lxc_conf - resetting nic 3 to eth2, delay > > 14ms > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > If you wait 12-20 ms renaming network interface works. > > The same problem with vlan interface. > > Ugh. Yes. We're waiting for the kernel to move the device back to our > namespace. Not sure how best to handle that.
Since this is not a hot path, i'm tempted to suggest waiting a second and retrying once or twice. _______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
