← Back to team overview

cloud-init team mailing list archive

Re: Azure Networking Support in cloud-init

 

Hi Scott, Robert,

Thank you for your response. May be some code can help move conversation forward 😊
Tamilmani has written a module that works and helps us achieve our current scenario: https://code.launchpad.net/~tamilmani1989/cloud-init/+git/cloud-init/+merge/336392
Would appreciate if you can provide feedback.

Thanks,
Sushant


---------- Forwarded message ---------
From: Scott Moser <smoser@xxxxxxxxxx<mailto:smoser@xxxxxxxxxx>>
Date: Wed, Jan 10, 2018 at 12:38 PM
Subject: Re: [Cloud-init] Azure Networking Support in cloud-init
To: Robert Schweikert <rjschwei@xxxxxxxx<mailto:rjschwei@xxxxxxxx>>
CC: cloud-init <cloud-init@xxxxxxxxxxxxxxxxxxx<mailto:cloud-init@xxxxxxxxxxxxxxxxxxx>>

Robert, Sushant,

We have talked a in the past (at the cloud-init summit) about plans to handle more dynamic networking configuration.
Generically speaking, the plan is for some event to cause cloud-init to re-read the networking configuration from the datasource and to apply it.  As Robert suggested, one easily harvested such event is udev.  To my knowledge that would not be sufficient for the media (re)connect, but that is fine.

We'll follow with a bit more info in the next day or two.



On Wed, Jan 10, 2018 at 8:29 AM, Robert Schweikert <rjschwei@xxxxxxxx<mailto:rjschwei@xxxxxxxx>> wrote:
On 01/09/2018 06:31 PM, Sushant Sharma (AZURE) wrote:
> Hi cloud-init members,
>
> We would like to discuss with you our proposal to add a network module in cloud-init to support various networking
> scenarios in Azure.
> To begin with, we would like to support move of a virtual machine (VM) from one network to another in Azure.
> As such, it will listen for media disconnect/connect (via netlink) and issues a re-DHCP when required (this design is
> based on how azure moves VM from one network to another).
> Over time, we plan to support more advance networking scenarios in Azure. Please let us know your thoughts before we
> work on adding the module.

Makes me wonder if we shouldn't leave most of this to udev rules and the
creation of a separate executable that can be called to from udev to
handle generation of ifcfg-XXX rules. Basically the same idea we deploy
in [1]. Or udev could call cloud-init --mode netconfig. The later
approach would still make it easy for people to disbale network
configuration via cloud-init if they care to do so, while that would be
a bit more challenging with the first appraoch. Anyway going down the
path of setting up udev rules may also afford the opportunity to be more
targeted.

Anyway, I think there is a more general solution in here that can also
provide a good basis for handling multiple network interfaces in a
dynamic way at the same time.

Later,
Robert

[1] https://github.com/SUSE/Enceladus/tree/master/cloud-netconfig<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSUSE%2FEnceladus%2Ftree%2Fmaster%2Fcloud-netconfig&data=02%7C01%7Csushant.sharma%40microsoft.com%7Ccb9b0d7e242947626e7008d55f726322%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636519867245002499&sdata=7SwjayiWWJVIEhFqlwcSfIMSKj%2FkxcdUUVNMxGE039k%3D&reserved=0>

--
Robert Schweikert                   MAY THE SOURCE BE WITH YOU
Distinguished Architect                       LINUX
Team Lead Public Cloud
rjschwei@xxxxxxxx<mailto:rjschwei@xxxxxxxx>
IRC: robjo


--
Mailing list: https://launchpad.net/~cloud-init<https://na01.safelinks.protection.outlook.com/?url=https:%2F%2Flaunchpad.net%2F~cloud-init&data=02%7C01%7Csushant.sharma%40microsoft.com%7Ccb9b0d7e242947626e7008d55f726322%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636519867245002499&sdata=d8rg%2F6lyVA3ESSrbusIAdfPdhSuljn7ZshzjA4EA190%3D&reserved=0>
Post to     : cloud-init@xxxxxxxxxxxxxxxxxxx<mailto:cloud-init@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~cloud-init<https://na01.safelinks.protection.outlook.com/?url=https:%2F%2Flaunchpad.net%2F~cloud-init&data=02%7C01%7Csushant.sharma%40microsoft.com%7Ccb9b0d7e242947626e7008d55f726322%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636519867245002499&sdata=d8rg%2F6lyVA3ESSrbusIAdfPdhSuljn7ZshzjA4EA190%3D&reserved=0>
More help   : https://help.launchpad.net/ListHelp<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.launchpad.net%2FListHelp&data=02%7C01%7Csushant.sharma%40microsoft.com%7Ccb9b0d7e242947626e7008d55f726322%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636519867245002499&sdata=qL5NvGG08tYQlsgGyfMX4GRtnVn%2FAZ3ZdVW67FmP2AU%3D&reserved=0>

--
Mailing list: https://launchpad.net/~cloud-init<https://na01.safelinks.protection.outlook.com/?url=https:%2F%2Flaunchpad.net%2F~cloud-init&data=02%7C01%7Csushant.sharma%40microsoft.com%7Ccb9b0d7e242947626e7008d55f726322%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636519867245002499&sdata=d8rg%2F6lyVA3ESSrbusIAdfPdhSuljn7ZshzjA4EA190%3D&reserved=0>
Post to     : cloud-init@xxxxxxxxxxxxxxxxxxx<mailto:cloud-init@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~cloud-init<https://na01.safelinks.protection.outlook.com/?url=https:%2F%2Flaunchpad.net%2F~cloud-init&data=02%7C01%7Csushant.sharma%40microsoft.com%7Ccb9b0d7e242947626e7008d55f726322%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636519867245012500&sdata=CKeGzyxEHvwWZJ1IUKWmhE0P6nqLI3MEkiAY9o5txho%3D&reserved=0>
More help   : https://help.launchpad.net/ListHelp<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.launchpad.net%2FListHelp&data=02%7C01%7Csushant.sharma%40microsoft.com%7Ccb9b0d7e242947626e7008d55f726322%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636519867245012500&sdata=m2tgBS9E85qhFD3iFsBhbq8HpIhLYAaGbvuENA9Ompw%3D&reserved=0>

References