Commit Graph

51 Commits

Author SHA1 Message Date
Andreas Jaeger 854b3c5d37 Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: Iffe3a7de281b48693606fe0c84ebec8190018167
2019-12-18 09:41:48 +01:00
Sergey Vasilenko d096bfe121 Fix OVS-related issues with underlay networking
* more intelligent calculation of default port provider
* additional check of patchcord existing in the bridge

OVS provider should be used for fake (OVS) ports, inserted
into OVS bridge. OVS provider should be used for inserting
native linux interface into OVS bridge.

But if we try to add native linux subinterface into
OVS bridge we should use lnx provider for creating
such port correctly.

Change-Id: Ib76b3340eca1ea22095da1cfffe7c224a139fb71
Closes-bug: #1682835
2017-04-28 16:01:58 +00:00
Sergey Vasilenko d5fd08f781 Support bonds of subinterfaces while merge interface_properties
Change-Id: I27ede232a37c4e8c2d669f5dd8936a60baf04b40
Related-bug: #1643920
Closes-bug: #1666229
2017-02-28 19:08:29 +03:00
Sergey Vasilenko 643e172d48 Add interface_propertiesi hash merge for
interfaces members of bond

CI disabled, because next patch in the chain should be passed.
Whole chain should be merged at one moment.

Change-Id: Ie7804dac600b2ea4747d0117f4951f811ef834a1
Partial-bug: #1643920
Fuel-CI: disabled
2017-01-20 20:17:43 +03:00
Dmitry Ilyin 90df364e31 Remove loader: l23network
Change-Id: Ia476bea2166b55caa7b87b3873e84b388ceabbc9
2016-11-22 15:29:10 -08:00
Dmitry Ilyin b4840b8632 Improve the new l23network loader
* Move the loader out of the puppetx
* Add loader to the osnailyfacter module

Change-Id: I3d468bf1ef64563bc018854115fffaeb98e6c95a
2016-08-26 14:54:04 +00:00
Dmitry Ilyin 856cb3c7e2 New l23network loader
Loader classes for l23network and filemapper.

Change-Id: I8a6b3910c3a1664313510a6f1d6cb10b6d98f8eb
2016-08-23 17:35:18 +00:00
Dmitry Ilyin 2a7697303b Puppet4 support: l23network modules
Related-Bug: 1586480

Change-Id: I03ed1dd15f248a27682fa6605116d4c01a268b50
2016-08-17 21:20:19 +00:00
Dmitry Ilyin 7a312e222e Puppet4 support: l23network library
* Fixes in the l23 module's ruby liraries

Related-Bug: 1586480
Change-Id: Iff68510e2e6dfd55283723bfb80343d6ba8cc70e
2016-06-23 15:08:12 +03:00
Sergey Vasilenko 27adf49103 handle infiniband NICs naming, which looks like
native linux subinterface

+ some typo fix
+ tests improvements

Change-Id: Ie1eff9adbfcff29bf16d3320a760ed7d14f552b8
Closes-bug: #1450420
2016-05-30 22:44:18 +00:00
Sergey Vasilenko 667812dc68 Add ability for override transformations into network_scheme.
New type of transformation 'override' was added, because hiera_hash()
function does not allow to override arrays. Arrays merged instead replace.

also fix sanitize_transformation for 'noop' transformations

Change-Id: Ic4c9c6c34d9e3a57392446b534d997666578d110
Related-bug: #1582898
2016-05-26 11:39:25 +03:00
Vladimir Eremin 645e01af3f
Inherit provider for ports from bridges as default
If Port provider is not specified and Bridge provider is OVS, we need to
use OVS provider for Port instead of default one. Otherwise,
L23_stored_config would choose wrong provider.

Change-Id: I1213b70be19b6ce7324d69b1763d4bfd900fe3d9
Closes-Bug: #1555162
2016-04-21 19:20:04 +03:00
Sergey Vasilenko aa73ee9661 Add workaround for import puppetx::* from parser functions
in the Puppet-master mode.

Change-Id: I5a5cda8cb6a5e1814637574f36e2e001d2b551d1
Closes-Bug: #1544040
2016-02-29 16:46:18 +00:00
Vladimir Eremin c9ad6112e1 Added sriov provider for port
New provider `sriov` introduced for add-port action.
It accepts two vendor-specific arguments:
* sriov_numvfs: number of VF's to enable
* physnet: physnet to setup in nova-compute

virtfn network interfaces is ignored now.

Change-Id: Id42e09ef2cf955301cd64c28dcfcd60f61ae72af
Implements: blueprint support-sriov
2016-02-23 09:41:24 +00:00
Stanislav Makar 80bde7c318 Add possibility to override default gateway via Hiera
Change-Id: Ib6c2ed4811398ff3a1d41b70bfdb67867774236e
Closes-bug: #1521533
2015-12-02 10:50:10 +00:00
Vladimir Kuklin ddf395c143 Fix l3 clear route provider to work with subIFs
This fix ensures that l3 route has been cleared
before we try to set default route. This is very
important for admin interface on the nodes that
do not have default gateway configured as they
need to go through admin node during deployment
stage.

This issue affects environments with subinterfaces
for admin interface as we cannot add new route
through new interface in runtime as we already
have default gateway through the different interface
which is eth0/eth1 almost each time.

E.g.

default via 10.109.17.1 dev eth1

should become

default via 10.109.17.1 dev br-fw-admin

But l3_clear_route does not understand that these routes
are different and thus does not clear the first one.
This in fact leads to inability to set default route
by puppet l3_ifconfig provider. Look into
https://bugs.launchpad.net/fuel/+bug/1447638 for more
details.

This fix adds 'interface' property into l3_clear_route
puppet type which is a hacky w/a for l23network ip route
management.

It also ensures that if route iface is changed we need to
recreate the route.

Change-Id: I44e45ce1e13a4836552b95440cdfb706a5c177c5
Closes-bug: #1492147
Related-bug: #1447638
2015-09-07 21:01:03 +03:00
Sergey Vasilenko 262cbba41c Reorder L3::Ifconfig and l3::Route for prevent dependency loop
while use miltiple-L3 network case

Change-Id: I810c25298fb3c0486dbdc9365001f817f3af3bd4
Closes-bug: #1489176
2015-08-29 22:47:15 +03:00
Sergey Vasilenko 8264d5dbe3 Re-order resource creation from yaml file
Current implementation makes following order:
  port(eth2)->port(eth2.102)->port(eth3)->port(eth3.103)
    ->ifconfig(eth2.102)->ifconfig(eth3.103)

Proposed changes modify prdering to:
  port(eth2)->port(eth2.102)->ifconfig(eth2.102)->
  port(eth3)->port(eth3.103)->ifconfig(eth3.103)

Change-Id: Ia9dcb3afdf9bad7cfc28ad8881d5c9b6e6473052
Closes-bug: #1452617
2015-08-17 23:57:30 +03:00
Sergey Vasilenko f6fe183ab5 add tests for existing ordering scheme
before modifying current behavior

Change-Id: I47e6571859cf4b6192164040556e83dd20aa3529
Related-bug: #1452617
2015-08-13 13:48:19 +03:00
Sergey Vasilenko 2285dd00bc Add 'vlan_ids' property to the l2_patch resource
Also adopt specs for moving stdlib to puppet-librarian

Change-Id: Ibc766ca716006cecfec11774ea97c016bb2f60f0
Closes-bug: #1480151
2015-08-07 10:41:51 +03:00
Sergey Vasilenko 114b470f4a Specify default delay while boot for LACP bonds.
Hardcode 45s delay for LACP bonds and 15s for non-LACP. Only at node boot time.
System administrator can re-define this value by CLI

This patchset is a workaround and should be reverted in 7.0
after implementing this feature in UI

Change-Id: I329e26a0b4da1b2be676dd7f8e6eb39e89eb11f4
Related-bug: #1441435
Related-bug: #1456436
2015-05-20 18:45:25 +00:00
Jenkins b25a4bbe34 Merge "add property 'delay_while_up' for port or bond" 2015-05-19 20:36:18 +00:00
Sergey Vasilenko 1fd24d32f0 add property 'delay_while_up' for port or bond
In some cases (for example slow LACP bonds or optical links)
system administrator need make delay between interface stay UP and
continue of boot process. This option allow make delay after interface UP.

Closes-bug: #1441435
Change-Id: I5013edc915b78687e1eebe5c61fe5a9befd222f6
2015-05-18 19:34:51 -07:00
Sergey Vasilenko 6071511de2 Adjust MTU for child interfaces if it possible
For network scheme, like
---
network_scheme:
  version: 1.1
  provider: lnx
  interfaces:
    eth1:
      mtu: 9000
  transformations:
    - action: add-port
      name: eth1
    - action: add-port
      name: eth1.101
  endpoints:
    eth1.101:
      IP:
        - 192.168.34.56/24
  roles:
    xxx: eth1.101

interface 'eth1.101' should be created with MTU=9000

Closes-bug: #1453027
Change-Id: I170e9088d5e3bcd241da7e56dfa7b7934d6d810d
2015-05-18 17:56:21 -07:00
Stanislav Makar 54fa16f773 Fix the problem with default route deletion
Now l3_clear_route deletes route if routing tables
has the same route but with different gateway

Change-Id: If997b20243b29ad2f735c747d6fb12202433b90f
Closes-bug: #1453851
2015-05-14 13:07:19 +00:00
Stanislav Makar dfe9ac5169 Fix default route overwriting problem
* Add simple puppet resource which clear all default gateways
  before creating l3_ifconfig resources
* Add warnings to prevent from using 'ip route replace...'
  command in context of interface setup

Change-Id: Ifa73c0a9a4f4df542ea8437b9894c3dce5cfee7e
Related-bug: #1447638
2015-05-08 13:39:40 +00:00
Sergey Vasilenko b276fdeca0 FIX: disable_offload from interface_properties isn't applied to bonded physical interfaces
This fix contains two sub-fixes:
* old code contains wrong logical condition. 
  In some cases was called .empty? method for non-hash or nil objects
* while parsing transformations for bonds, 'disable-offloading' flag 
  should be passed to bond-members transparently.

Closes-bug: #1433462
Change-Id: I63920e964a2ef4d3eb26c7a6175d2a676b426de0
2015-04-06 14:13:14 +00:00
Sergey Vasilenko b2d1c3e85e prepare env for use rspec for l23network
Partial-bug: #1310646
Blueprint: refactor-l23-linux-bridges
Change-Id: If0d3f7d5599640df2586ee87f428b4e30b27e159
2015-03-21 16:56:30 +03:00
Sergey Vasilenko 8b103a7394 FIX: "disable offloading" flag functionality
Old network configuration
(6.0 and early) has global flag for disabling offload.

New implementation has 'disable offloading' flag per interface.
This commit add default set of ethtool propertios for disabling
offloading if no ethtool properties given for corresponded interface

Change-Id: Ic1aab4a6cfd32a3211d9a5c449ba887b7dc05953
Closes-bug: #1431735
Partial-bug: #1431396
Blueprint: refactor-l23-linux-bridges
2015-03-17 21:25:33 +00:00
Sergey Vasilenko 2481248e9e L23network::L3::Route and L3_route resources
This need for:
* re-implement multiple-l2
* stored_config for ethtool

done for l3_route:
+ prefetch
+ create
+ modify fields
+ delete
+ stored_config for Ubuntu

Fuel-CI: disable
Change-Id: Ic2e8fcd341c1e0d6281ceb3709b81a095d2d5b06
Blueprint: refactor-l23-linux-bridges
Partial-Bug: #1429190
2015-03-16 22:24:57 +03:00
Sergey Vasilenko 88abfed58f L23network -- set of fixes:
* Change conditions for prevent unnided execution chains of code.
* Prevent from multiple base interface autocreation for subinterface.
* Change order when transformation for base interface comes after
  transformation for subinterface.
* fix "empty bond can't be added to bridge"

Fuel-CI: disable
Blueprint: refactor-l23-linux-bridges
Change-Id: Ib76fb7ef146416cad0d88fb6526a7ec7043fcd0b
2015-03-16 22:22:38 +03:00
Sergey Vasilenko 8da7b6fcd9 FIX: L23network: auto-add main interface
if one not defined in transformations before
adding sub-interface.

Related blueprint fuel-library-modularization
Blueprint: refactor-l23-linux-bridges
Fuel-CI: disable

Change-Id: I68319eae0f125898d6a467546b40f39d1f479e8b
2015-03-05 14:02:26 +00:00
Sergey Vasilenko f83970f017 New L23network implementation.
Squized 33 patchsets,
all changes detailed described in following blueprint.

Can't be merged without corresponded changes in Nailgun part.

Fuel-CI: disable
Change-Id: I3d7bf070ef6fc42ef82c14f30780672084db5e71
Blueprint: refactor-l23-linux-bridges
2015-03-05 10:51:47 +03:00
Jenkins 5184552a8e Merge "Rename parameter 'tag' to 'vlan_tag' in l23network module" 2014-10-20 13:57:00 +00:00
Sergey Vasilenko b4c9606874 convert CMD output to array before comparing
Some times patchcords was added bebore bond interface. In thos case full-text search may give
wrong positive answer. (substring 'bond0' found inside 'br-bond0').

Change-Id: Ie54d94ce83906a972b422c5a5bb048d61f26db7f
Closes-bug: #1375347
2014-09-29 21:54:39 +04:00
Stanislaw Bogatkin 54a43a3ab3 Rename parameter 'tag' to 'vlan_tag' in l23network module
In puppet >3.0 word 'tag' is reserved, so it have to be
renamed.

Change-Id: Ie2b62d2b96ee9ca9d4ced15d038979561899e910
Closes-Bug: 1305600
2014-07-23 13:07:42 +04:00
Sergey Vasilenko 9cc882f48b more accurate checking for bonding provider
Change-Id: I7386f74790e15a9bf99018db6d263b37f67b2ee1
Closes-bug: #1318996
2014-05-13 15:38:55 +00:00
Sergey Vasilenko 29d23b4c79 Add native linux bond interface to the OVS bridge
Change-Id: I0dc494ae09a15d1433d6b1c09329c735947dd914
Implements:  bp/linux-bonding
2014-04-24 13:44:38 +04:00
Sergey Vasilenko 8b68888bd5 add some minor fixes to the L23 module.
Closes-Bug: #1310655
Change-Id: Ic8fd53e3040577e0ea466767690ce72a39fb45fa
2014-04-22 07:04:45 +00:00
Sergey Vasilenko f47d87b5ce Linux native bonding for Advanced Network Configuration
Creating linux native bonding in a "transformation" section of network_schema.
Also creates configuration records for all slave interfaces.

blueprint linux-bonding
Change-Id: Ifc69aab96555ae34fe9c0f0fe0c2789d538c8bfc
2014-04-14 13:59:56 +04:00
Sergey Vasilenko 964808cdc6 Add ethtool support to the L23network module
Change-Id: I5c74b503b13847eac5176b7e0561fcc0a95e0822
Partial-bug: #1275650
Implements: blueprint ethtool-at-boot-by-l23network
2014-03-18 14:34:07 +04:00
Jenkins 701cb554d0 Merge "Get Ordering of ifconfig operations from transformation order if it possible." 2014-02-13 09:21:41 +00:00
Sergey Vasilenko 48e8c25aa4 Get Ordering of ifconfig operations from transformation order if it possible.
Add unordered interfaces and endpoints to the end of list in alphabetical order.

Closes-bug: #1278718
Change-Id: I0519de41c875d50758908974e8e04f014f27831c
2014-02-12 19:58:22 +04:00
Sergey Vasilenko b8105f58bc L23network: allow setup MTU in the network_schema
This commit allow define MTU for interfaces and endpoints

Change-Id: I0038286fc75a6935cfcd6fefcfa6acd071a66f59
Blueprint: set-mtu-for-interfaces
BUG: 1274789
2014-02-07 17:04:18 +04:00
Sergey Vasilenko 244acdaab1 Allow more than two interfaces in the OVS bonds.
Change-Id: I2bc106a4d9ed6f95fe9802b8ab6342db1652cd6a
Closes-bug: 1271274
2014-02-03 19:19:19 +04:00
Sergey Vasilenko 71935ec7c3 FIX: bug/1257904
puppet send non-boolean value instead true/false
2013-12-05 01:21:24 +04:00
Sergey Vasilenko 9110cd9ace Enabling vlan_splinters
https://blueprints.launchpad.net/fuel/+spec/ovs-vlan-splinters
(porting from 3.2.1)
2013-12-03 20:10:01 +04:00
Sergey Vasilenko 13142ff5f5 FIX: Wild IP bug. 2013-11-12 01:12:17 +04:00
Sergey Vasilenko fb26996b3c revert. Use high-priority operation with puppet so scareful... 2013-10-07 21:23:55 +04:00
Sergey Vasilenko fc306e313f ruby style 2013-10-07 17:59:04 +04:00