Re: [openstack-dev] Blueprint to change (expand) traditional Ethernet interface naming schema in Fuel

2015-10-19 Thread Albert Syriy
Hello,

Continue work on the Ethernet interfaces naming schema I create the
blueprint and spec for review:
https://blueprints.launchpad.net/fuel/+spec/network-interfaces-naming-schema
https://review.openstack.org/#/c/236848/

Because proposed changes potentially affect different components (and
actually it's out of my expertise) I would like to ask core reviewers to
assess the risks and write comment in corresponding sections (marked as
TODO).

Looking forward to your reply,

Albert Syriy,

Software Engineer,
Mirantis

On Fri, Oct 9, 2015 at 10:30 PM, Sergey Vasilenko 
wrote:

> >I would like to pay your attention to the changing interface naming
>> >schema, which is proposed to be implemented in FuelA [1].A In brief,
>> >Ethernet network interfaces may not be named as ethX, and there is a
>> >reported bug about itA [2]
>> >There are a lot of reasons to switch to the new naming schema, not
>> only
>> >because it has been used in CentOS 7 (and probably will be used in
>> next
>> >Ubuntu LTS), but becauseA new naming schema gave more predictable
>> >interface namesA [3]. There is a reported bug related to the topicA
>> [4]
>>
>
> L23network module is a interface naming scheme agnostic.
> Only bridge and bond interface name protection found -- You can't call
> bond or bridge like 'enp2s0', because this name reserved for NICs.
>
>
>
>> You might be interested to look at the os-net-config tool - we faced this
>> exact same issue with TripleO, and solved it via os-net-config, which
>> provides abstractions for network configuration, including mapping device
>> aliases (e.g "nic1") to real NIC names (e.g "em1" or whatever).
>>
>> https://github.com/openstack/os-net-config
>>
>>
> It's interesting project. Proposed format for network configuration, so
> interesting, but...
> Project too young. And doesn't allow to configure some things, that
> L23network already support.
> Main problem of this project -- is a approach to change interface options
> options. They doesn't use prefetch/flush mechanics as in the puppet. They
> just executing commands for change, instead in most cases. Such approach
> doesn't allow re-configure existing cloud properly, if one under production
> load.
>
> I can support config format from os-net-config as additional network
> scheme format too, but, IMHO, this hierarchical format not so convenient as
> flat.
>
> NIC mapping, in Nailgun, already implemented in the template-networking.
> If wee need use it for another cases -- ask Alexey Kasatkin, please.
>
> /sv
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Blueprint to change (expand) traditional Ethernet interface naming schema in Fuel

2015-10-09 Thread Sergey Vasilenko
>
> >I would like to pay your attention to the changing interface naming
> >schema, which is proposed to be implemented in FuelA [1].A In brief,
> >Ethernet network interfaces may not be named as ethX, and there is a
> >reported bug about itA [2]
> >There are a lot of reasons to switch to the new naming schema, not
> only
> >because it has been used in CentOS 7 (and probably will be used in
> next
> >Ubuntu LTS), but becauseA new naming schema gave more predictable
> >interface namesA [3]. There is a reported bug related to the topicA
> [4]
>

L23network module is a interface naming scheme agnostic.
Only bridge and bond interface name protection found -- You can't call bond
or bridge like 'enp2s0', because this name reserved for NICs.



> You might be interested to look at the os-net-config tool - we faced this
> exact same issue with TripleO, and solved it via os-net-config, which
> provides abstractions for network configuration, including mapping device
> aliases (e.g "nic1") to real NIC names (e.g "em1" or whatever).
>
> https://github.com/openstack/os-net-config
>
>
It's interesting project. Proposed format for network configuration, so
interesting, but...
Project too young. And doesn't allow to configure some things, that
L23network already support.
Main problem of this project -- is a approach to change interface options
options. They doesn't use prefetch/flush mechanics as in the puppet. They
just executing commands for change, instead in most cases. Such approach
doesn't allow re-configure existing cloud properly, if one under production
load.

I can support config format from os-net-config as additional network scheme
format too, but, IMHO, this hierarchical format not so convenient as flat.

NIC mapping, in Nailgun, already implemented in the template-networking. If
wee need use it for another cases -- ask Alexey Kasatkin, please.

/sv
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Blueprint to change (expand) traditional Ethernet interface naming schema in Fuel

2015-10-08 Thread Steven Hardy
On Thu, Oct 08, 2015 at 12:46:53PM +0300, Albert Syriy wrote:
>Hello,A 
>I would like to pay your attention to the changing interface naming
>schema, which is proposed to be implemented in FuelA [1].A In brief,
>Ethernet network interfaces may not be named as ethX, and there is a
>reported bug about itA [2]
>There are a lot of reasons to switch to the new naming schema, not only
>because it has been used in CentOS 7 (and probably will be used in next
>Ubuntu LTS), but becauseA new naming schema gave more predictable
>interface namesA [3]. There is a reported bug related to the topicA [4]
>I suspect, that changing interface naming schema may impact to the current
>Fuel code, manifests and tests, because hard-coded Ethernet interface
>names (like eth* ) should be removed from the code.A 
>Any comment on the blueprint?
>[1]A 
> https://blueprints.launchpad.net/fuel/+spec/new-network-interfaces-naming-schema
>[2]A https://bugs.launchpad.net/fuel/+bug/1494223
>[3]A 
> http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
>[4]A https://bugs.launchpad.net/mos/+bug/1487044

You might be interested to look at the os-net-config tool - we faced this
exact same issue with TripleO, and solved it via os-net-config, which
provides abstractions for network configuration, including mapping device
aliases (e.g "nic1") to real NIC names (e.g "em1" or whatever).

https://github.com/openstack/os-net-config

Although it was developed by TripleO folks, it's a standalone tool and
there's no reason why it can't be consumed by any other deployment
solution.

Here's some examples of how it works:

https://github.com/openstack/os-net-config/blob/master/etc/os-net-config/samples/interface.yaml

https://github.com/openstack/os-net-config/blob/master/etc/os-net-config/samples/bond_mapped.yaml

https://github.com/openstack/os-net-config/blob/master/etc/os-net-config/samples/mapping.yaml

Basically the "name" of the interface can either be the biosdevname of an
actual NIC, or you can use "nic1" etc, and os-net-config uses a sorted list
of the system names.

If you require more control than that, and/or you want to avoid the risk
that the mapping changes (e.g if the link goes down, because atm it looks
only for link-up devices), you can specify an explicit mapping by either
device name or MAC address:

https://github.com/openstack/os-net-config/blob/master/etc/os-net-config/samples/mapping.yaml

Personally I think it'd be great to see more collaboration on these sorts
of common requirements, vs reinventing different solutions to the same
problems in the various deployment orientated projects :)

Steve

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Blueprint to change (expand) traditional Ethernet interface naming schema in Fuel

2015-10-08 Thread Albert Syriy
Hello,

I would like to pay your attention to the changing interface naming schema,
which is proposed to be implemented in Fuel [1]

. In brief, Ethernet network interfaces may not be named as ethX, and there
is a reported bug about it [2]


There are a lot of reasons to switch to the new naming schema, not only
because it has been used in CentOS 7 (and probably will be used in next
Ubuntu LTS), but because new naming schema gave more predictable interface
names [3]
.
There is a reported bug related to the topic [4]


I suspect, that changing interface naming schema may impact to the current
Fuel code, manifests and tests, because hard-coded Ethernet interface names
(like eth* ) should be removed from the code.

Any comment on the blueprint?

[1]
https://blueprints.launchpad.net/fuel/+spec/new-network-interfaces-naming-schema
[2] https://bugs.launchpad.net/fuel/+bug/1494223
[3]
http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
[4] https://bugs.launchpad.net/mos/+bug/1487044

With Best Regards,

Albert Syriy,

Software Engineer,
Mirantis
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev