Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
b8e3120d
Commit
b8e3120d
authored
2 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
OFC25 tests:
- Updated deploy script
parent
886ebcc5
No related branches found
No related tags found
3 merge requests
!359
Release TeraFlowSDN 5.0
,
!328
Resolve "(CTTC) Update recommendations to use SocketIO on NBI and E2E Orch components"
,
!286
Resolve "(CTTC) Implement integration test between E2E-IP-Optical SDN Controllers"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tests/ofc25/deploy.sh
+47
-49
47 additions, 49 deletions
src/tests/ofc25/deploy.sh
with
47 additions
and
49 deletions
src/tests/ofc25/deploy.sh
+
47
−
49
View file @
b8e3120d
...
@@ -14,28 +14,26 @@
...
@@ -14,28 +14,26 @@
# limitations under the License.
# limitations under the License.
# ===== Check Microk8s is ready ==============================
# ===== Check Microk8s is ready ==============================
microk8s status
--wait-ready
#
microk8s status --wait-ready
kubectl get pods
--all-namespaces
#
kubectl get pods --all-namespaces
# ===== Cleanup old deployments ==============================
# ===== Cleanup old deployments ==============================
helm3 uninstall
--namespace
nats-e2e nats-e2e 2>/dev/null
||
true
#helm3 uninstall --namespace nats-e2e nats-e2e 2>/dev/null || true
helm3 uninstall
--namespace
nats-ip nats-ip 2>/dev/null
||
true
#helm3 uninstall --namespace nats-ip nats-ip 2>/dev/null || true
helm3 uninstall
--namespace
nats-opt nats-opt 2>/dev/null
||
true
#helm3 uninstall --namespace nats-opt nats-opt 2>/dev/null || true
helm3 uninstall
--namespace
nats nats 2>/dev/null
||
true
#helm3 uninstall --namespace nats nats 2>/dev/null || true
kubectl delete namespaces tfs tfs-ip tfs-opt tfs-e2e
--ignore-not-found
#kubectl delete namespaces tfs tfs-ip tfs-opt tfs-e2e --ignore-not-found
kubectl delete namespaces qdb qdb-e2e qdb-opt qdb-ip
--ignore-not-found
#kubectl delete namespaces qdb qdb-e2e qdb-opt qdb-ip --ignore-not-found
kubectl delete namespaces kafka kafka-ip kafka-opt kafka-e2e
--ignore-not-found
#kubectl delete namespaces kafka kafka-ip kafka-opt kafka-e2e --ignore-not-found
kubectl delete namespaces nats nats-ip nats-opt nats-e2e
--ignore-not-found
#kubectl delete namespaces nats nats-ip nats-opt nats-e2e --ignore-not-found
#kubectl delete -f src/tests/ofc25/nginx-ingress-controller-opt.yaml --ignore-not-found
kubectl delete
-f
src/tests/ofc25/nginx-ingress-controller-opt.yaml
--ignore-not-found
#kubectl delete -f src/tests/ofc25/nginx-ingress-controller-ip.yaml --ignore-not-found
kubectl delete
-f
src/tests/ofc25/nginx-ingress-controller-ip.yaml
--ignore-not-found
#kubectl delete -f src/tests/ofc25/nginx-ingress-controller-e2e.yaml --ignore-not-found
kubectl delete
-f
src/tests/ofc25/nginx-ingress-controller-e2e.yaml
--ignore-not-found
#sleep 5
sleep
5
# ===== Check Microk8s is ready ==============================
# ===== Check Microk8s is ready ==============================
microk8s status
--wait-ready
#
microk8s status --wait-ready
kubectl get pods
--all-namespaces
#
kubectl get pods --all-namespaces
# Configure TeraFlowSDN deployment
# Configure TeraFlowSDN deployment
# Uncomment if DEBUG log level is needed for the components
# Uncomment if DEBUG log level is needed for the components
...
@@ -49,9 +47,9 @@ kubectl get pods --all-namespaces
...
@@ -49,9 +47,9 @@ kubectl get pods --all-namespaces
#yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/vntmservice.yaml
#yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/vntmservice.yaml
# Create secondary ingress controllers
# Create secondary ingress controllers
kubectl apply
-f
src/tests/ofc25/nginx-ingress-controller-opt.yaml
#
kubectl apply -f src/tests/ofc25/nginx-ingress-controller-opt.yaml
kubectl apply
-f
src/tests/ofc25/nginx-ingress-controller-ip.yaml
#
kubectl apply -f src/tests/ofc25/nginx-ingress-controller-ip.yaml
kubectl apply
-f
src/tests/ofc25/nginx-ingress-controller-e2e.yaml
#
kubectl apply -f src/tests/ofc25/nginx-ingress-controller-e2e.yaml
cp
manifests/contextservice.yaml manifests/contextservice.yaml.bak
cp
manifests/contextservice.yaml manifests/contextservice.yaml.bak
...
@@ -71,36 +69,36 @@ sed -i '/name: CRDB_DATABASE/{n;s/value: .*/value: "tfs_opt_context"/}' manifest
...
@@ -71,36 +69,36 @@ sed -i '/name: CRDB_DATABASE/{n;s/value: .*/value: "tfs_opt_context"/}' manifest
mv
tfs_runtime_env_vars.sh tfs_runtime_env_vars_opt.sh
mv
tfs_runtime_env_vars.sh tfs_runtime_env_vars_opt.sh
## ===== Deploy IP TeraFlowSDN ==============================
# ===== Deploy IP TeraFlowSDN ==============================
#source src/tests/ofc25/deploy_specs_ip.sh
source
src/tests/ofc25/deploy_specs_ip.sh
#cp manifests/contextservice.yaml.bak manifests/contextservice.yaml
cp
manifests/contextservice.yaml.bak manifests/contextservice.yaml
#sed -i '/name: CRDB_DATABASE/{n;s/value: .*/value: "tfs_ip_context"/}' manifests/contextservice.yaml
sed
-i
'/name: CRDB_DATABASE/{n;s/value: .*/value: "tfs_ip_context"/}'
manifests/contextservice.yaml
#
#./deploy/crdb.sh
#./deploy/nats.sh
#./deploy/kafka.sh
##./deploy/qdb.sh
##./deploy/expose_dashboard.sh
#./deploy/tfs.sh
#./deploy/show.sh
#
#mv tfs_runtime_env_vars.sh tfs_runtime_env_vars_ip.sh
./deploy/crdb.sh
./deploy/nats.sh
./deploy/kafka.sh
#./deploy/qdb.sh
#./deploy/expose_dashboard.sh
./deploy/tfs.sh
./deploy/show.sh
## ===== Deploy End-to-End TeraFlowSDN ====================
mv
tfs_runtime_env_vars.sh tfs_runtime_env_vars_ip.sh
#source src/tests/ofc25/deploy_specs_e2e.sh
#cp manifests/contextservice.yaml.bak manifests/contextservice.yaml
#sed -i '/name: CRDB_DATABASE/{n;s/value: .*/value: "tfs_e2e_context"/}' manifests/contextservice.yaml
# ===== Deploy End-to-End TeraFlowSDN ====================
#
source
src/tests/ofc25/deploy_specs_e2e.sh
#./deploy/crdb.sh
cp
manifests/contextservice.yaml.bak manifests/contextservice.yaml
#./deploy/nats.sh
sed
-i
'/name: CRDB_DATABASE/{n;s/value: .*/value: "tfs_e2e_context"/}'
manifests/contextservice.yaml
#./deploy/kafka.sh
##./deploy/qdb.sh
./deploy/crdb.sh
##./deploy/expose_dashboard.sh
./deploy/nats.sh
#./deploy/tfs.sh
./deploy/kafka.sh
#./deploy/show.sh
#./deploy/qdb.sh
#
#./deploy/expose_dashboard.sh
#mv tfs_runtime_env_vars.sh tfs_runtime_env_vars_e2e.sh
./deploy/tfs.sh
./deploy/show.sh
mv
tfs_runtime_env_vars.sh tfs_runtime_env_vars_e2e.sh
# ===== Recovering files =========================
# ===== Recovering files =========================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment