Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #75 from open-ness/openness_release_2012
Browse files Browse the repository at this point in the history
Openness release 2012
  • Loading branch information
cjnolan authored Dec 18, 2020
2 parents a51b96e + 998cf9c commit f5c28d4
Show file tree
Hide file tree
Showing 321 changed files with 12,430 additions and 2,722 deletions.
2 changes: 1 addition & 1 deletion .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ exclude_paths:
- roles/nfd/files/
- roles/kubernetes/cni/sriov/controlplane/files
- roles/telemetry/opentelemetry/controlplane/charts
- roles/fpga_cfg/charts
- roles/bb_config/charts
- cloud
4 changes: 4 additions & 0 deletions action_plugins/yum.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
class ActionModule(ansible.plugins.action.ActionBase):
"""Ansible plugin wrapping the ansible yum module to make package
installation more network error resistant"""

task_vars = None
module_args = None

def get_variable(self, arg):
"""get_variable will find value for provided argument arg may be 'retries' or 'delay'"""
def_val = DEFAULT_VALUES.get(arg)
Expand Down
49 changes: 47 additions & 2 deletions cleanup_ne.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,54 @@ source scripts/ansible-precheck.sh
source scripts/task_log_file.sh
source scripts/parse_args.sh

flavor=""
while getopts ":f:" o; do
case "${o}" in
f)
flavor=${OPTARG}
;;
*)
echo "Invalid flag"
exit 1
;;
esac
done
shift $((OPTIND-1))

# Remove all previous flavors
find "${PWD}/group_vars/" -type l -name "30_*_flavor.yml" -delete

if [[ -z "${flavor}" ]]; then
echo "No flavor provided"
echo -e " $0 [-f <flavor>] <filter>. Available flavors: $(ls -m flavors)"
else
flavor_path="${PWD}/flavors/${flavor}"
if [[ ! -d "${flavor_path}" ]]; then
echo "Flavor ${flavor} does not exist[${flavor_path}]"
exit 1
fi

for f in "${flavor_path}"/*.yml
do
fname=$(basename "${f}" .yml)
dir="${PWD}/group_vars/${fname}"
if [[ -f "${dir}/30_${flavor}_flavor.yml" ]]; then
rm -f "${dir}/30_${flavor}_flavor.yml"
fi
done
fi

limit=""
filter="${1:-}"
limit=$(get_limit "${filter}")

if [[ "${flavor}" == central_orchestrator ]]; then
playbook="network_edge_orchestrator_cleanup.yml"
limit=$(get_limit "c")
else
playbook="network_edge_cleanup.yml"
limit=$(get_limit "${filter}")
fi

eval ansible-playbook -vv \
./network_edge_cleanup.yml \
"${playbook}" \
--inventory inventory.ini "${limit}"
3 changes: 3 additions & 0 deletions deploy_ne.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ filter="${1:-}"

if [[ "${filter}" == s* ]]; then
playbook="single_node_network_edge.yml"
elif [[ "${flavor}" == central_orchestrator ]]; then
playbook="network_edge_orchestrator.yml"
limit=$(get_limit "c")
else
playbook="network_edge.yml"
limit=$(get_limit "${filter}")
Expand Down
12 changes: 12 additions & 0 deletions flavors/cdn-caching/edgenode_group.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

## Kernel configuration
# Skip kernel configuration
# If true, kernel will not be installed.
# If false, package composed from variables kernel_package and kernel_version will be installed together with it's devel
kernel_skip: true

## Tuned configuration
# Skip tuned configuration
# If true, tuned will not be configured
# If false, tuned_packages will be installed, tuned_profile will be applied with tuned_vars
tuned_skip: true

# Default grub parameters
default_grub_params: ""
12 changes: 12 additions & 0 deletions flavors/cdn-transcode/edgenode_group.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

## Kernel configuration
# Skip kernel configuration
# If true, kernel will not be installed.
# If false, package composed from variables kernel_package and kernel_version will be installed together with it's devel
kernel_skip: true

## Tuned configuration
# Skip tuned configuration
# If true, tuned will not be configured
# If false, tuned_packages will be installed, tuned_profile will be applied with tuned_vars
tuned_skip: true

# Default grub parameters
default_grub_params: ""
19 changes: 19 additions & 0 deletions flavors/central_orchestrator/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

## Kube-ovn with OVS-DPDK
kubeovn_dpdk: false

# Kube-virt settings
kubevirt_enable: false

## Network Edge Processor Counter Monitor (PCM)
telemetry_pcm_enable: false

kubernetes_cnis:
- kubeovn


## emco
emco_db_auth_enable: true
emco_db_password: "{{ lookup('password', '/dev/null length=16 chars=ascii_letters') }}"
5 changes: 5 additions & 0 deletions flavors/central_orchestrator/controller_group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

# Default grub parameters
default_grub_params: ""
17 changes: 17 additions & 0 deletions flavors/central_orchestrator/edgenode_group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

## Kernel configuration
# Skip kernel configuration
# If true, kernel will not be installed.
# If false, package composed from variables kernel_package and kernel_version will be installed together with it's devel
kernel_skip: true

## Tuned configuration
# Skip tuned configuration
# If true, tuned will not be configured
# If false, tuned_packages will be installed, tuned_profile will be applied with tuned_vars
tuned_skip: true

# Default grub parameters
default_grub_params: ""
25 changes: 20 additions & 5 deletions flavors/flexran/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# CNIs are applied in order of definition
# Multus CNI is implicit - it will be applied as 2nd one if list contains more than 1
# Available CNIs:
# - kubeovn (note: must be main/primary/first CNI),
# - kubeovn (note: if the kubeovn CNI is used, then it must be main/primary CNI, i.e. first on the list)
# - weavenet
# - flannel
# - calico
# - calico (note: note: if the calico CNI is used, then it must be main/primary CNI, i.e. first on the list)
# - sriov (note: cannot be main or standalone)
# - userspace (note: cannot be main or standalone)
# NOTE - For VCAC-A setup, use `weavenet` CNI
Expand All @@ -22,6 +22,7 @@ calico_cidr: "10.243.0.0/16"
### SR-IOV CNI
# FPGA SRIOV Userspace
fpga_sriov_userspace_enable: true
acc100_sriov_userspace_enable: false

# FPGA Userspace VF configuration
fpga_userspace_vf:
Expand All @@ -32,6 +33,14 @@ fpga_userspace_vf:
vf_number: "2"
vf_driver: "vfio-pci"

acc100_userspace_vf:
enabled: false
vendor_id: "8086"
vf_device_id: "0d5d"
pf_device_id: "0d5c"
vf_number: "2"
vf_driver: "vfio-pci"

## OPAE FPGA
ne_opae_fpga_enable: True

Expand All @@ -44,8 +53,8 @@ ne_biosfw_enable: true
cpu:
# CPU policy - possible values: none (disabled), static (default)
policy: "static"
# Reserved CPUs
reserved_cpus: 1
# Reserved CPUs for K8s and OS daemons - list of reserved CPUs - adjust according to CPU model, HT enabled/disabled and Single Node enabled/disabled
reserved_cpus: "0,24"

# Kubernetes Topology Manager policy - possible values: none (disabled), best-effort (default), restricted, single-numa-node
topology_manager:
Expand All @@ -56,7 +65,7 @@ ne_nfd_enable: True

###Telemetry
## Network Edge Processor Counter Monitor (PCM)
telemetry_pcm_enable: true
telemetry_pcm_enable: false

## Telemetry flavor - possible values: common (default), flexran, smartcity, corenetwork
telemetry_flavor: flexran
Expand All @@ -67,3 +76,9 @@ telemetry_grafana_enable: True
###RMD
rmd_operator_enable: True

##Path to offline download
_offline_package_path: "/opt/opcdownloads"

offline_tuned_packages:
- tuned-2.11.0-8.el7
- tuned-profiles-realtime-2.11.0-8.el7
10 changes: 8 additions & 2 deletions flavors/flexran/controller_group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Custom FlexRAN flavor configuration
# CPUs to be isolated (for RT procesess)
cpu_isol: "2-23,26-47"
# CPUs not to be isolate (for non-RT processes) - minimum of two OS cores necessary for controller
# CPUs not to be isolated (for non-RT processes) - minimum of two OS cores necessary for controller - adjust according to CPU model, HT enabled/disabled
cpu_os: "0-1,24-25"

## Kernel configuration
Expand All @@ -14,7 +14,13 @@ cpu_os: "0-1,24-25"
kernel_skip: false

# Version of the kernel.
kernel_version: 3.10.0-1062.12.1.rt56.1042.el7.x86_64
kernel_version: 3.10.0-1127.19.1.rt56.1116.el7.x86_64

## Tuned configuration
## Skip tuned configuration
## If true, tuned will not be configured
## If false, tuned_packages will be installed, tuned_profile will be applied with tuned_vars
tuned_skip: true

## GRUB configuration
# Size of a single hugepage (2M or 1G)
Expand Down
4 changes: 2 additions & 2 deletions flavors/flexran/edgenode_group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# CPUs to be isolated (for RT procesess)
# NOTE: If used for single node deployment please make sure that two cores are available to OS and K8s
cpu_isol: "1-23,25-47"
# CPUs not to be isolate (for non-RT processes) - minimum of two OS cores necessary for controller
# CPUs not to be isolate (for non-RT processes) - minimum of two OS cores necessary for controller - adjust according to CPU model, HT enabled/disabled
cpu_os: "0,24"

## Kernel configuration
Expand All @@ -15,7 +15,7 @@ cpu_os: "0,24"
kernel_skip: false

# Version of the kernel.
kernel_version: 3.10.0-1062.12.1.rt56.1042.el7.x86_64
kernel_version: 3.10.0-1127.19.1.rt56.1116.el7.x86_64

## Tuned configuration
# Skip tuned configuration
Expand Down
3 changes: 3 additions & 0 deletions flavors/media-analytics-vca/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ ne_nfd_enable: true

# Deploy Video Analytics services
video_analytics_services_enable: false

# VCA system image force build
force_build_enable: true
13 changes: 6 additions & 7 deletions flavors/media-analytics/all.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

# Kube-ovn with OVS-DPDK
kubeovn_dpdk: false
## Network Edge's Kubernetes CNIs
kubernetes_cnis:
- calico

# Kube-virt settings
kubevirt_enable: false

# Network Edge Processor Counter Monitor (PCM)
telemetry_pcm_enable: false

# Kubernetes device plugins
k8s_device_plugins_enable: true

## Network Edge Node Feature Discovery (NFD)
ne_nfd_enable: true

# Deploy Video Analytics services
# Deploy Video Analytics services
video_analytics_services_enable: true
video_analytics_services_multiinstances: false

# Istio Service Mesh
ne_istio_enable: false
Expand All @@ -28,5 +27,5 @@ istio_deployment_namespace: "default"

# Kiali
istio_kiali_username: "admin"
istio_kiali_password: "admin"
istio_kiali_password: "{{ lookup('password', '/dev/null length=16') }}"
istio_kiali_nodeport: 30001
9 changes: 5 additions & 4 deletions flavors/service-mesh/all.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

## Kube-ovn with OVS-DPDK
kubeovn_dpdk: false
## Network Edge's Kubernetes CNIs
kubernetes_cnis:
- calico

# Kube-virt settings
kubevirt_enable: false
Expand All @@ -19,7 +20,7 @@ istio_deployment_profile: "default"
# Istio is deployed to "default" namespace in the cluster
istio_deployment_namespace: "default"

# Kiali
# Kiali
istio_kiali_username: "admin"
istio_kiali_password: "admin"
istio_kiali_password: "{{ lookup('password', '/dev/null length=16') }}"
istio_kiali_nodeport: 30001
Loading

0 comments on commit f5c28d4

Please sign in to comment.