> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/2.9/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/fpp/2.9/releases/1.1.0.md).

# Fast Path Provider Manager 1.1.0

Fast Patch Provider (FPP) Manager in version 1.1.0 provides the bump of the VPP base to version `22.02-rc.1`,
which enables the renaming of the VPP interface. FPP also exposes new functionality of the initial external interface
management and IPFIX capabilities.

This version also makes it obligatory to use hugepages. Make sure to prepare your infrastructure and
provide the proper number of hugepages to be allocated on the node level.

Starting from the 1.1.0 release, the default deployment method for FPP is Helm chart deployment.

For this release, the newer kernel (5.15+) and Kubernetes (1.22+) versions are not supported. For more details, see the
[Known issues](#Known-issues) section.

## Features

### Add external interface configuration
FPP Manager supports using VFs as external network interfaces.
To use it, VPPConfig should contain `externalNetworkConfig` section:

```yaml
apiVersion: fpp-manager.cennso.com/v1alpha1
kind: VPPConfig
(...)
spec:
  externalNetworkConfig:
  - ifacePrefix: ext-net
    bridgeDomain: 31
    # list of IPs that will be populated in VPPInterface object,
    # this supports both IPv4 and IPv6
    ips:
    - 10.0.0.1/24
    MTU: 1500
    # table (VRF) for the external network interface.
    table: 300
    # bond mode, one of LACP / Broadcast / XOR / ActiveBackup / RoundRobin
    bondMode: ActiveBackup
    # bond lb algorithm, one of L2 / L34 / L23 / RR / BC (Broadcast) / AB (ActiveBackup)
    bondLbAlgo: L23
```

- `ifacePrefix` should match one or many interfaces defined in `startup.conf`.
- FPP supports bonding on external interfaces.
- IP assignment should be used with per node targeting label in `VPPConfig`
(`fpp-manager.cennso.com/plumbing-node: <node-name>`)
- Changes in `externalNetworkConfig` will cause manager to restart.

### Use VPP 22.02-rc1 as a base, more extensive usage of hugepages
- In order to support IPFIX, VPP version was upgraded to `22.02-rc1`.
- VPP 22.02-rc1 requires at least 2G of hugepages allocated per fpp-manager
- By default fpp-manager uses hugepages for heap, stats segment and buffers
- The following environment variables can be set to a non-empty value to
selectively disable the use of hugepages for buffers, statseg, and the main
heap, respectively:
  - `FPP_NO_BUFFER_HUGEPAGES`
  - `FPP_NO_STATSEG_HUGEPAGES`
  - `FPP_NO_HEAP_HUGEPAGES`
- Recommended memory settings for fpp `v1.1.0`:
```yaml
resources:
  cpu: "10"
  hugepages-2Mi: 9Gi
  memory: 2Gi
```

### Expose IPFIX capabilities
- To configure IPFIX exporter, IPFIXExporter CR can be used.
Refer to documentation [IPFIXExporter docs](https://docs.cennso.com/components/fpp/2.9/crs.md#ipfixexporter-objects)
for example usage.
- Sending IPFIX data needs to be done over VPP interface. Kubernetes networks
(like Calico) are not supporter yet.
- IPFIX collector needs to be available using FPP-CNI network.

### Expose stats segment utilization metrics
New metrics are exposed:
- Stats segment size, `vpp_stat_seg_total_bytes`
- Stats segment used space, `vpp_stat_seg_used_bytes`
- Stats segment free space `vpp_stat_seg_free_bytes`

### Expose error, performance and connectivity metrics
For better debugging and performance profiling, new metrics are reported:
- `vpp_interface_errors` metric exposes possible issues on interfaces like:
  - interface is down,
  - bond - traffic on passive interface (in active-passive configuration)
  - DPDK TX function error, TX packet drops
  - memif no enough space in TX buffer
  - tap: pending messages in TX ring
- `vpp_interface_no_tx_slots` - per interface  metric that shows performance
bottleneck
- `vpp_arp_sent` and `vpp_arp_hw_addr_not_match_l2_frame` which indicates
connectivity issues, so possible configuration changes needed

### Add interface rename for client's memifs in VPP
VPP 22.02 exposes new functionality for renaming interfaces. In the previous version
of fpp-manager, the interface name in VPP was different from that declared in Network
Attachment Definition. This was making the metrics section misleading, as generated
interface name was exposed instead of that specified in `ifName`.

FPP `v1.1` enables vpp interface rename, so there is a understandable interface
name on vpp CLI level or in metrics.

### Add Helm chart for FPP Manager
- `fpp` helm chart is added to deploy fpp.
- Multiple instances of fpp deployment should instantiate fpp chart multiple times
- CRDs have their own chart `fpp-crd`
- `fpp-support` chart with Service Monitor is added

## Fixes

### Fix fpp-cni binary overwrite conflict
This fixes an issue with FPP Manager pods failing to start when existing fpp-cni
binary was being invoked by kubelet, which manifested itself with this error:
```
cp: cannot create regular file '/opt/cni/bin/fpp-cni': Text file busy
```
This fixes the following bug: [#135](https://github.com/travelping/fpp-manager/issues/135)

### Properly update VPPInterface CR Status field
This fixes an issue with wrong `swIfIndex` in `VPPInterface` `status`. After
fpp-manager restart, `status.swIfIndex` had an old value, causing the following
error during reconciliation:
```
"can't resolve swIfIndex 188 to a VPPInterface"
```
This fixes the following bug: [#138](https://github.com/travelping/fpp-manager/issues/138)

### Remove VPPInterfaces belonging to dead pods
Upon startup, FPP now removes stale `VPPInterface` objects that belong to pods
that no longer exist. This fixes an issue that has been manifesting itself like
this in the FPP Manager logs:
```
Tap creation request failed: VPPApiError: System call error #2
```
This fixes the following bug: [#137](https://github.com/travelping/fpp-manager/issues/137)

### Update VPP to include NAT checksum fix
Bump VPP base image to include fix for NAT-ED code checksum assertion for TCP
RST packet.

### Fix Routing Table reconcile process, enable table 0 manipulation
Do not reconcile VPPInterface with explicit table set to `0`. This reduces
the number of unnecessary network reconfiguration, which caused network
being not reachable because of multiple routing table `0` flush. New approach
adds support to define routes in table `0`.

Routing table reconcile now does not remove routes generated implicitly by VPP.

This fixes following bugs:
- [fpp-manager#90](https://github.com/travelping/fpp-manager/issues/90)
- [fpp-manager#189](https://github.com/travelping/fpp-manager/issues/189)
- [fpp-manager#191](https://github.com/travelping/fpp-manager/issues/191)

## Known issues

### Kernel 5.15 and newer are not supported
FPP 1.1.0 does not work with the newer kernel versions (5.15+), which is related to the constraints of
the new layout for the control groups (cgroups) v2 files. To check if FPP works with your kernel version,
connect to your machine and check if the `/sys/fs/cgroup/cpuset/cpuset.cpus` path
is present. If not, use the newer version of FPP, since your current version will not work.

### Kubernetes 1.22+ is not supported
Since the support for the CustomResourceDefinition (CRD) **apiVersion** of `apiextensions.k8s.io/v1beta1`
was removed from Kubernetes API in release 1.22+, FPP 1.1.0 does not work on that cluster.
Please use the newer versions of FPP.

## Migration guide

### 1.0 -> 1.1
FPP Manager in version 1.0 was advised to be installed using JSONNET library.
FPP 1.1 version provides Helm chart as official and only way of deployment
of `fpp-manager`.

#### Using Helm chart instead of jsonnet lib
Example of converting `fpputils` params to chart `values.yaml`.

As an example deployment using jsonnet:
```
fppParams:: fpputils.DefaultParams + {
  dockerSecret: "CUR",
  images: {
    fppManager: "registry.cennso.com/fpp-manager/fpp-manager:v1.0.0_release"
  },
  uplinkNo: "2",
  uplinkResources: {
    "openshift.io/wl0_vfio": "sriov-network-uplink0",
    "openshift.io/wl1_vfio": "sriov-network-uplink1",
  },
},

fppConfig: fpputils.NodeVPPConfig("fpp-config") + $.metadata {
  spec: {
    uplinkConfig: {
      prefixLen4: 24,
      prefixLen6: 64,
      bondMode: $.fppParams.uplinkBondMode,
    },
  },
},
```

Above settings can be migrated to helm-based deployment with `values.yaml`:

```yaml
image:
  repository: registry.cennso.com/cennso/fpp-manager
  tag: v1.1.0

uplinkResources:
  openshift.io/wl0_vfio: sriov-network-uplink0
  openshift.io/wl1_vfio: sriov-network-uplink1

nodeSelector:
  fpp-manager.cennso.com/vppswitch-uplinks: "2"

buffersPerNuma: 512000

imagePullSecrets:
- name: image-secret

vppConfigs:
- nodeName: ""
  spec:
    uplinkConfig:
      bondMode: ActiveBackup
      prefixLen4: 24
      prefixLen6: 64
```

#### Interface rename in VPP
After starting FPP 1.1 version, all VPPInterface objects will be fetched
and applied on `fpp-manager`. FPP 1.1 enables to rename the VPP interface
on the vpp instance.

To distinguish the tap interfaces on `fpp-manager` side, `fpp-cni` on
`VPPInterface` creation time concatenates generated name (like`tap12`) with NAD
interface name (`sx1`) to create `VPPInterface.spec.ifName` with a name of
`tap12-sx1`.

When `fpp-cni` in version 1.0 created `VPPINterface` object - there will be on
`sx1` in `VPPInterface.spec.ifName`. So that means that there will be multiple
`sx1` interfaces when executing `show interface` inside `fpp-manager` VPP console.

All already running workload on upgraded node will remain the network connectivity.
After workload recreation (delete of a pod), `fpp-cni` in version 1.1 will create
`VPPInterface` objects with distinguishable `spec.ifName` names.
