# OSM_HELM_OPTS="${OSM_HELM_OPTS} --set nbi.useOsmSecret=false"
OSM_HELM_OPTS="${OSM_HELM_OPTS} --set global.image.repositoryBase=${DOCKER_REGISTRY_URL}${DOCKER_USER}"
- [ ! "$OSM_DOCKER_TAG" == "testing-daily" ] && OSM_HELM_OPTS="${OSM_HELM_OPTS} --set-string global.image.tag=${OSM_DOCKER_TAG}"
- [ ! "$OSM_DOCKER_TAG" == "testing-daily" ] && OSM_HELM_OPTS="${OSM_HELM_OPTS} --set prometheus.server.sidecarContainers.prometheus-config-sidecar.image=${DOCKER_REGISTRY_URL}${DOCKER_USER}/prometheus:${OSM_DOCKER_TAG}"
+ [ ! "$OSM_DOCKER_TAG" == "17" ] && OSM_HELM_OPTS="${OSM_HELM_OPTS} --set-string global.image.tag=${OSM_DOCKER_TAG}"
+ [ ! "$OSM_DOCKER_TAG" == "17" ] && OSM_HELM_OPTS="${OSM_HELM_OPTS} --set prometheus.server.sidecarContainers.prometheus-config-sidecar.image=${DOCKER_REGISTRY_URL}${DOCKER_USER}/prometheus:${OSM_DOCKER_TAG}"
OSM_HELM_OPTS="${OSM_HELM_OPTS} --set global.hostname=${OSM_K8S_EXTERNAL_IP}.nip.io"
OSM_HELM_OPTS="${OSM_HELM_OPTS} --set grafana.ingress.hosts={grafana.${OSM_K8S_EXTERNAL_IP}.nip.io}"
#deploy mongodb
function deploy_mongodb() {
[ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function
- MONGO_OPTS="-d ${OSM_HELM_WORK_DIR} -D ${OSM_DEVOPS} -s ${OSM_NAMESPACE} -t ${OSM_DOCKER_TAG} -U ${DOCKER_USER} ${DEBUG_INSTALL}"
+ MONGO_OPTS="-d ${OSM_HELM_WORK_DIR} -D ${OSM_DEVOPS} -s ${OSM_NAMESPACE} -U ${DOCKER_USER} ${DEBUG_INSTALL}"
[ -n "${DOCKER_REGISTRY_URL}" ] && MONGO_OPTS="${MONGO_OPTS} -r ${DOCKER_REGISTRY_URL}"
$OSM_DEVOPS/installers/install_mongodb.sh ${MONGO_OPTS} || \
FATAL_TRACK install_osm_mongodb_service "install_mongodb.sh failed"
arrange_docker_default_network_policy
fi
- wget -q -O- https://osm-download.etsi.org/ftp/osm-16.0-sixteen/README2.txt &> /dev/null
+ wget -q -O- https://osm-download.etsi.org/ftp/osm-17.0-seventeen/README2.txt &> /dev/null
track end
sudo find /etc/osm
[ -z "${DEBUG_INSTALL}" ] || DEBUG end of function
APT_PROXY_URL=""
K8S_CLUSTER_ENGINE="k3s"
DEBUG_INSTALL=""
-RELEASE="testing-daily"
-REPOSITORY="testing"
+RELEASE="ReleaseSEVENTEEN"
+REPOSITORY="stable"
INSTALL_K8S_MONITOR=""
INSTALL_NGSA="y"
INSTALL_PLA=""
OSM_HELM_WORK_DIR="${OSM_WORK_DIR}/helm"
OSM_HOST_VOL="/var/lib/osm"
OSM_NAMESPACE_VOL="${OSM_HOST_VOL}/${OSM_NAMESPACE}"
-OSM_DOCKER_TAG="testing-daily"
+OSM_DOCKER_TAG="17"
DOCKER_USER=opensourcemano
PULL_IMAGES="y"
KAFKA_TAG=2.11-1.0.2
# Installation starts here
# Get README and create OSM_TRACK_INSTALLATION_ID
-wget -q -O- https://osm-download.etsi.org/ftp/osm-16.0-sixteen/README.txt &> /dev/null
+wget -q -O- https://osm-download.etsi.org/ftp/osm-17.0-seventeen/README.txt &> /dev/null
export OSM_TRACK_INSTALLATION_ID="$(date +%s)-$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16)"
# Get OS info to be tracked
sudo snap install jq || FATAL "Could not install jq (snap package). Make sure that snap works"
${OSM_DEVOPS}/installers/charmed_install.sh --tag $OSM_DOCKER_TAG "$@" || \
FATAL_TRACK charmed_install "charmed_install.sh failed"
- wget -q -O- https://osm-download.etsi.org/ftp/osm-16.0-sixteen/README2.txt &> /dev/null
+ wget -q -O- https://osm-download.etsi.org/ftp/osm-17.0-seventeen/README2.txt &> /dev/null
echo -e "\nDONE"
exit 0
elif [ -n "$INSTALL_TO_OPENSTACK" ]; then
description: A Helm chart for Open Source MANO (OSM)
type: application
icon: https://www.etsi.org/images/articles/logos/OSM.png
-version: 0.0.1
-appVersion: "16"
+version: "17.0.0"
+appVersion: "17.0.0"
dependencies:
- name: mysql
repository: "https://charts.bitnami.com/bitnami"
repositoryBase: docker.io/opensourcemano
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
- tag: "testing-daily"
+ tag: "17"
imagePullSecrets: []
nameOverride: ""
port: 5000
image: {}
# repository: opensourcemano/keystone
- # tag: "testing-daily"
+ # tag: "17"
# replicaCount: 1
useOsmSecret: true
# secretName: "keystone-secret"
logLevel: DEBUG
image: {}
# repository: opensourcemano/lcm
- # tag: "testing-daily"
+ # tag: "17"
# replicaCount: 1
useOsmSecret: true
# secretName: "lcm-secret"
# logLevel: DEBUG
image: {}
# repository: opensourcemano/mon
- # tag: "testing-daily"
+ # tag: "17"
# replicaCount: 1
useOsmSecret: true
# secretName: "mon-secret"
# nodePort: 9999
image: {}
# repository: opensourcemano/nbi
- # tag: "testing-daily"
+ # tag: "17"
# replicaCount: 1
useOsmSecret: true
# secretName: "nbi-secret"
# host: <IP_ADDRESS>.nip.io
image: {}
# repository: opensourcemano/ng-ui
- # tag: "testing-daily"
+ # tag: "17"
# replicaCount: 1
# pla module is disabled by default unless global.oldServiceAssurance and pla.enabled are set to true
# logLevel: DEBUG
image: {}
# repository: opensourcemano/pla
- # tag: "testing-daily"
+ # tag: "17"
# replicaCount: 1
# pol module is disabled by default unless global.oldServiceAssurance and pol.enabled are set to true
# logLevel: DEBUG
image: {}
# repository: opensourcemano/pol
- # tag: "testing-daily"
+ # tag: "17"
# replicaCount: 1
useOsmSecret: true
# secretName: "pol-secret"
# readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
# runAsNonRoot: true
- image: opensourcemano/prometheus:testing-daily
+ image: opensourcemano/prometheus:17
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args: ["sleep 50; python -u ./app.py"]
port: 9090
image: {}
# repository: opensourcemano/ro
- # tag: "testing-daily"
+ # tag: "17"
# replicaCount: 1
useOsmSecret: true
# secretName: "ro-secret"
# replicaCount: 1
image: {}
# repository: opensourcemano/webhook
- # tag: "testing-daily"
+ # tag: "17"
ingress: {}
# host: webhook.<IP_ADDRESS>.nip.io
# replicaCount: 1
worker_concurrency: 2
dags_folder: "/home/airflow/.local/lib/python3.10/site-packages/osm_ngsa"
defaultAirflowRepository: opensourcemano/airflow
-defaultAirflowTag: "testing-daily"
+defaultAirflowTag: "17"
executor: LocalExecutor
extraEnv: |
- name: AIRFLOW__API__AUTH_BACKENDS
}
# main
-while getopts ":D:d:s:t:r:U:-: " o; do
+while getopts ":D:d:s:r:U:-: " o; do
case "${o}" in
D)
OSM_DEVOPS="${OPTARG}"
s)
OSM_NAMESPACE="${OPTARG}"
;;
- t)
- OSM_DOCKER_TAG="${OPTARG}"
- ;;
r)
DOCKER_REGISTRY_URL="${OPTARG}"
;;
DEBUG_INSTALL=${DEBUG_INSTALL:-}
OSM_DEVOPS=${OSM_DEVOPS:-"/usr/share/osm-devops"}
-OSM_DOCKER_TAG=${OSM_DOCKER_TAG:-"testing-daily"}
OSM_HELM_WORK_DIR=${OSM_HELM_WORK_DIR:-"/etc/osm/helm"}
OSM_NAMESPACE=${OSM_NAMESPACE:-"osm"}
DOCKER_REGISTRY_URL=${DOCKER_REGISTRY_URL:-}
DOCKER_USER=${DOCKER_USER:-"opensourcemano"}
echo "DEBUG_INSTALL=$DEBUG_INSTALL"
echo "OSM_DEVOPS=$OSM_DEVOPS"
-echo "OSM_DOCKER_TAG=$OSM_DOCKER_TAG"
echo "OSM_HELM_WORK_DIR=$OSM_HELM_WORK_DIR"
echo "OSM_NAMESPACE=$OSM_NAMESPACE"
echo "DOCKER_REGISTRY_URL=$DOCKER_REGISTRY_URL"
# limitations under the License.
#
REPOSITORY_BASE=https://osm-download.etsi.org/repository/osm/debian
-RELEASE=ReleaseSIXTEEN
+RELEASE=ReleaseSEVENTEEN
REPOSITORY=stable
DOCKER_TAG="testing-daily"
DEVOPS_PATH=/usr/share/osm-devops
value: "sw-catalogs-osm"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: CRED_SECRET_CONTENT
value: "sw-catalogs-osm"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: CRED_SECRET_CONTENT
value: "fleet-osm"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: DEBUG
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: PRIVATE_KEY_NEW_CLUSTER
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: PRIVATE_KEY_NEW_CLUSTER
persistentVolumeClaim:
claimName: '{{inputs.parameters.sw_catalogs_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
# securityContext:
# runAsUser: 10000
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: PRIVATE_KEY_NEW_CLUSTER
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: DEBUG
value: "{{inputs.parameters.fleet_repo_dir}}/{{inputs.parameters.project_name}}/managed-resources/_management"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
command: ["/app/scripts/entrypoint.sh"]
args:
- name: debug
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: SECRET_VALUES
- name: debug
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: SECRET_VALUES
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: SECRET_VALUES
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: SECRET_VALUES
- name: debug
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: DEBUG
- name: debug
value: "false"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: DEBUG
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/resourcelist.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: INFILE
- name: output_file
value: "/results/manifest.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: INSTREAM
- name: output_file
value: "/results/manifest.{{inputs.parameters.rand_str}}.yaml"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: INSTREAM
value: "/oka"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: DEBUG
value: "/oka"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: DEBUG
value: "sw-catalogs-osm"
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
env:
- name: DEBUG
persistentVolumeClaim:
claimName: '{{inputs.parameters.fleet_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
volumeMounts:
- name: fleet-repo-volume
persistentVolumeClaim:
claimName: '{{inputs.parameters.fleet_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
volumeMounts:
- name: fleet-repo-volume
persistentVolumeClaim:
claimName: '{{inputs.parameters.fleet_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
volumeMounts:
- name: fleet-repo-volume
persistentVolumeClaim:
claimName: '{{inputs.parameters.fleet_volume_name}}'
container:
- image: opensourcemano/osm-krm-functions:testing-daily
+ image: opensourcemano/osm-krm-functions:17
# imagePullPolicy: Always
volumeMounts:
- name: fleet-repo-volume
]
sshCommand remote: remote, command: '''
- wget https://osm-download.etsi.org/ftp/osm-16.0-sixteen/install_osm.sh
+ wget https://osm-download.etsi.org/ftp/osm-17.0-seventeen/install_osm.sh
chmod +x ./install_osm.sh
sed -i '1 i\\export PATH=/snap/bin:\$PATH' ~/.bashrc
'''
// Parameters to define the specific OSM version to test
// --> Defaults to latest stable version of Release FOURTEEN
- string(defaultValue: 'https://osm-download.etsi.org/ftp/osm-16.0-sixteen/install_osm.sh', description: 'URL to OSM installer', name: 'INSTALLER_URL')
- string(defaultValue: 'testing-daily', description: 'Release for OSM binaries (REPO_BASE)', name: 'REPO_BASE')
- string(defaultValue: 'testing-daily', description: 'OSM docker tag (DOCKER_TAG)', name: 'DOCKER_TAG')
+ string(defaultValue: 'https://osm-download.etsi.org/ftp/osm-17.0-seventeen/install_osm.sh', description: 'URL to OSM installer', name: 'INSTALLER_URL')
+ string(defaultValue: 'releaseseventeen-daily', description: 'Release for OSM binaries (REPO_BASE)', name: 'REPO_BASE')
+ string(defaultValue: 'releaseseventeen-daily', description: 'OSM docker tag (DOCKER_TAG)', name: 'DOCKER_TAG')
string(defaultValue: 'testing', description: 'Repository name for OSM packages (REPO_NAME)', name: 'REPO_NAME')
// Parameters for docker run
string(defaultValue: 'opensourcemano/tests', description: 'Name of docker image for client-side of Robot tests', name: 'TEST_IMAGE')
- string(defaultValue: 'testing-daily', description: 'Tag of docker image for client-side', name: 'TEST_TAG')
+ string(defaultValue: 'releaseseventeen-daily', description: 'Tag of docker image for client-side', name: 'TEST_TAG')
// Parameters to define SSH keys (Jenkins secret) used when creating VMs
string(defaultValue: '', description: 'Jenkins credential containing SSH private key used in VMs', name: 'SSH_PRIVATE_KEY')
if [ "$#" -ne 2]; then
echo "Usage: $0 <NEW_VERSION> <USER>"
- echo "Exapmle: $0 v16.0.0 garciadeblas"
- echo "Exapmle: $0 v15.0.7 vegall"
+ echo "Example: $0 16.0.0 garciadeblas"
+ echo "Example: $0 15.0.7 vegall"
exit 1
fi
git checkout $BRANCH_NAME
-sed -i -E "0,/^version: .*/s//version: $NEW_VERSION/" installers/osm/Chart.yaml
+sed -i -E "0,/^version: .*/s//version: \"$NEW_VERSION\"/" installers/osm/Chart.yaml
sed -i -E "0,/^appVersion: .*/s//appVersion: \"$NEW_VERSION\"/" installers/helm/osm/Chart.yaml
git add installers/helm/osm/Chart.yaml
git push origin $BRANCH_NAME
commit=$(git show --summary | grep commit | awk '{print $2}')
-echo "The commit is $commit"
\ No newline at end of file
+echo "The commit is $commit"