Skip to content
Snippets Groups Projects
Commit 62d6c3d6 authored by Carlos Manso's avatar Carlos Manso
Browse files

small fixes

parent 43844fc4
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!225Resolve "Integrate Support for IP-E2E-Optical SDN controllers to manage hierarchical virtual topologies"
Showing
with 224 additions and 69 deletions
...@@ -176,7 +176,8 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} ...@@ -176,7 +176,8 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"}
./deploy/tfs.sh ./deploy/tfs.sh
#Configure Subscription WS #Configure Subscription WS
#./deploy/subscription_ws.sh ./deploy/subscription_ws_ip.sh
./deploy/subscription_ws_e2e.sh
# Show deploy summary # Show deploy summary
./deploy/show.sh ./deploy/show.sh
......
...@@ -19,13 +19,12 @@ ...@@ -19,13 +19,12 @@
######################################################################################################################## ########################################################################################################################
# If not already set, set the namespace where CockroackDB will be deployed. # If not already set, set the namespace where CockroackDB will be deployed.
export SUBSCRIPTION_WS_NAMESPACE=${SUBSCRIPTION_WS_NAMESPACE:-"tfs"} export SUBSCRIPTION_WS_NAMESPACE=${SUBSCRIPTION_WS_NAMESPACE:-"tfs-e2e"}
# If not already set, set the external port interface will be exposed to. # If not already set, set the external port interface will be exposed to.
export SUBSCRIPTION_WS_EXT_PORT=${SUBSCRIPTION_WS_EXT_PORT:-"8765"} export SUBSCRIPTION_WS_EXT_PORT=${SUBSCRIPTION_WS_EXT_PORT:-"8761"}
# If not already set, set the external port interface will be exposed to.
export SUBSCRIPTION_WS_INT_PORT=${SUBSCRIPTION_WS_INT_PORT:-"8765"}
######################################################################################################################## ########################################################################################################################
# Automated steps start here # Automated steps start here
######################################################################################################################## ########################################################################################################################
...@@ -34,25 +33,13 @@ export SUBSCRIPTION_WS_INT_PORT=${SUBSCRIPTION_WS_INT_PORT:-"8765"} ...@@ -34,25 +33,13 @@ export SUBSCRIPTION_WS_INT_PORT=${SUBSCRIPTION_WS_INT_PORT:-"8765"}
echo "Subscription WebSocket Port Mapping" echo "Subscription WebSocket Port Mapping"
echo ">>> ExposeSubscription WebSocket port (${SUBSCRIPTION_WS_EXT_PORT}->${SUBSCRIPTION_WS_EXT_PORT})" echo ">>> ExposeSubscription WebSocket port (${SUBSCRIPTION_WS_EXT_PORT}->${SUBSCRIPTION_WS_EXT_PORT})"
PATCH='{"data": {"'${SUBSCRIPTION_WS_EXT_PORT}'": "'${SUBSCRIPTION_WS_NAMESPACE}'/nbiservice:'${SUBSCRIPTION_WS_EXT_PORT}'"}}' PATCH='{"data": {"'${SUBSCRIPTION_WS_EXT_PORT}'": "'${SUBSCRIPTION_WS_NAMESPACE}'/nbiservice:'${SUBSCRIPTION_WS_EXT_PORT}'"}}'
kubectl patch configmap nginx-ingress-tcp-microk8s-conf --namespace ingress --patch "${PATCH}" kubectl patch configmap nginx-ingress-tcp-microk8s-conf-e2e --namespace ingress --patch "${PATCH}"
PORT_MAP='{"containerPort": '${SUBSCRIPTION_WS_EXT_PORT}', "hostPort": '${SUBSCRIPTION_WS_EXT_PORT}'}' PORT_MAP='{"containerPort": '${SUBSCRIPTION_WS_EXT_PORT}', "hostPort": '${SUBSCRIPTION_WS_EXT_PORT}'}'
CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}'
PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}'
kubectl patch daemonset nginx-ingress-microk8s-controller --namespace ingress --patch "${PATCH}" kubectl patch daemonset nginx-ingress-microk8s-controller-e2e --namespace ingress --patch "${PATCH}"
echo echo
echo "Subscription WebSocket Port Mapping"
echo ">>> ExposeSubscription WebSocket port (${SUBSCRIPTION_WS_INT_PORT}->${SUBSCRIPTION_WS_INT_PORT})"
PATCH='{"data": {"'${SUBSCRIPTION_WS_INT_PORT}'": "'${SUBSCRIPTION_WS_NAMESPACE}'/nbiservice:'${SUBSCRIPTION_WS_INT_PORT}'"}}'
kubectl patch configmap nginx-ingress-tcp-microk8s-conf --namespace ingress --patch "${PATCH}"
PORT_MAP='{"containerPort": '${SUBSCRIPTION_WS_INT_PORT}', "hostPort": '${SUBSCRIPTION_WS_INT_PORT}'}'
CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}'
PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}'
kubectl patch daemonset nginx-ingress-microk8s-controller --namespace ingress --patch "${PATCH}"
echo
#!/bin/bash
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
########################################################################################################################
# Read deployment settings
########################################################################################################################
# If not already set, set the namespace where CockroackDB will be deployed.
export SUBSCRIPTION_WS_NAMESPACE=${SUBSCRIPTION_WS_NAMESPACE:-"tfs-ip"}
# If not already set, set the external port interface will be exposed to.
export SUBSCRIPTION_WS_INT_PORT=${SUBSCRIPTION_WS_INT_PORT:-"8762"}
########################################################################################################################
# Automated steps start here
########################################################################################################################
echo "Subscription WebSocket Port Mapping"
echo ">>> ExposeSubscription WebSocket port (${SUBSCRIPTION_WS_INT_PORT}->${SUBSCRIPTION_WS_INT_PORT})"
PATCH='{"data": {"'${SUBSCRIPTION_WS_INT_PORT}'": "'${SUBSCRIPTION_WS_NAMESPACE}'/nbiservice:'${SUBSCRIPTION_WS_INT_PORT}'"}}'
kubectl patch configmap nginx-ingress-tcp-microk8s-conf-ip --namespace ingress --patch "${PATCH}"
PORT_MAP='{"containerPort": '${SUBSCRIPTION_WS_INT_PORT}', "hostPort": '${SUBSCRIPTION_WS_INT_PORT}'}'
CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}'
PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}'
kubectl patch daemonset nginx-ingress-microk8s-controller-ip --namespace ingress --patch "${PATCH}"
echo
...@@ -24,8 +24,7 @@ spec: ...@@ -24,8 +24,7 @@ spec:
template: template:
metadata: metadata:
annotations: annotations:
config.linkerd.io/skip-outbound-ports: "8765" config.linkerd.io/skip-outbound-ports: "8761"
config.linkerd.io/skip-inbound-ports: "8765"
labels: labels:
app: e2e-orchestratorservice app: e2e-orchestratorservice
spec: spec:
...@@ -37,7 +36,7 @@ spec: ...@@ -37,7 +36,7 @@ spec:
ports: ports:
- containerPort: 10050 - containerPort: 10050
- containerPort: 9192 - containerPort: 9192
- containerPort: 8765 - containerPort: 8761
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: "DEBUG" value: "DEBUG"
...@@ -73,5 +72,5 @@ spec: ...@@ -73,5 +72,5 @@ spec:
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
- name: ws - name: ws
port: 8765 port: 8761
targetPort: 8765 targetPort: 8761
...@@ -24,8 +24,8 @@ spec: ...@@ -24,8 +24,8 @@ spec:
template: template:
metadata: metadata:
annotations: annotations:
config.linkerd.io/skip-outbound-ports: "8765" config.linkerd.io/skip-inbound-ports: "8762"
config.linkerd.io/skip-inbound-ports: "8765" config.linkerd.io/skip-outbound-ports: "8762"
labels: labels:
app: nbiservice app: nbiservice
spec: spec:
...@@ -38,7 +38,7 @@ spec: ...@@ -38,7 +38,7 @@ spec:
- containerPort: 8080 - containerPort: 8080
- containerPort: 9090 - containerPort: 9090
- containerPort: 9192 - containerPort: 9192
- containerPort: 8765 - containerPort: 8762
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: "INFO" value: "INFO"
...@@ -79,7 +79,19 @@ spec: ...@@ -79,7 +79,19 @@ spec:
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
- name: websocket - name: ws
protocol: TCP protocol: TCP
port: 8765 port: 8762
targetPort: 8765 targetPort: 8762
---
apiVersion: v1
kind: Service
metadata:
name: remote-teraflow
spec:
type: ExternalName
externalName: nbiservice.asdf.svc.cluster.local
ports:
- name: ws
protocol: TCP
port: 8762
...@@ -37,7 +37,6 @@ spec: ...@@ -37,7 +37,6 @@ spec:
ports: ports:
- containerPort: 10070 - containerPort: 10070
- containerPort: 9192 - containerPort: 9192
- containerPort: 8765
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: "INFO" value: "INFO"
...@@ -72,6 +71,3 @@ spec: ...@@ -72,6 +71,3 @@ spec:
- name: metrics - name: metrics
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
- name: ws
port: 8765
targetPort: 8765
...@@ -44,7 +44,7 @@ class E2EOrchestratorServiceServicerImpl(E2EOrchestratorServiceServicer): ...@@ -44,7 +44,7 @@ class E2EOrchestratorServiceServicerImpl(E2EOrchestratorServiceServicer):
LOGGER.debug("Creating Servicer...") LOGGER.debug("Creating Servicer...")
LOGGER.debug("Servicer Created") LOGGER.debug("Servicer Created")
time.sleep(15) time.sleep(5)
try: try:
LOGGER.info("Requesting subscription") LOGGER.info("Requesting subscription")
self.RequestSubscription() self.RequestSubscription()
...@@ -106,18 +106,22 @@ class E2EOrchestratorServiceServicerImpl(E2EOrchestratorServiceServicer): ...@@ -106,18 +106,22 @@ class E2EOrchestratorServiceServicerImpl(E2EOrchestratorServiceServicer):
def RequestSubscription(self): def RequestSubscription(self):
LOGGER.info("Trying to connect...!!!") LOGGER.info("Trying to connect...!!!")
OWN_HOST = "10.1.1.83"
OWN_PORT = "8765"
EXT_HOST = "10.1.1.83" EXT_HOST = "nbiservice.tfs-ip.svc.cluster.local"
EXT_PORT = "8765" EXT_PORT = "8762"
OWN_HOST = "e2e-orchestratorservice.tfs-e2e.svc.cluster.local"
OWN_PORT = "8761"
url = "ws://" + EXT_HOST + ":" + EXT_PORT url = "ws://" + EXT_HOST + ":" + EXT_PORT
request = VNTSubscriptionRequest() request = VNTSubscriptionRequest()
request.host = OWN_HOST request.host = OWN_HOST
request.port = OWN_PORT request.port = OWN_PORT
LOGGER.info("Trying to connect... to {}".format(url)) LOGGER.info("Trying to connect... to {}".format(url))
with connect(url, logger=LOGGER) as websocket: with connect(url) as websocket:
LOGGER.info("CONNECTED!!! {}")
send = grpc_message_to_json_string(request) send = grpc_message_to_json_string(request)
LOGGER.info("Sending {}".format(send)) LOGGER.info("Sending {}".format(send))
websocket.send(send) websocket.send(send)
...@@ -132,7 +136,8 @@ class E2EOrchestratorServiceServicerImpl(E2EOrchestratorServiceServicer): ...@@ -132,7 +136,8 @@ class E2EOrchestratorServiceServicerImpl(E2EOrchestratorServiceServicer):
except Exception as e: except Exception as e:
LOGGER.info('Exception2!: {}'.format(e)) LOGGER.info('Exception2!: {}'.format(e))
with serve(self._event_received, "0.0.0.0", OWN_PORT, logger=LOGGER) as server: with serve(self._event_received, "0.0.0.0", OWN_PORT, logger=LOGGER) as server:
LOGGER.info("Running subscription server...: {}:{}".format("0.0.0.0", OWN_PORT)) LOGGER.info("Running subscription server...: {}:{}".format("0.0.0.0", OWN_PORT))
server.serve_forever() server.serve_forever()
......
...@@ -36,7 +36,7 @@ vnt_manager_client: VNTManagerClient = VNTManagerClient() ...@@ -36,7 +36,7 @@ vnt_manager_client: VNTManagerClient = VNTManagerClient()
context_client: ContextClient = ContextClient() context_client: ContextClient = ContextClient()
HOST = "0.0.0.0" HOST = "0.0.0.0"
PORT = 8765 PORT = 8762
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
......
# Add here your files containing confidential testbed details such as IP addresses, ports, usernames, passwords, etc.
descriptors_real.json
...@@ -25,12 +25,15 @@ kubectl delete -f ./src/tests/ecoc24/nginx-ingress-controller-ip.yaml ...@@ -25,12 +25,15 @@ kubectl delete -f ./src/tests/ecoc24/nginx-ingress-controller-ip.yaml
kubectl apply -f ./src/tests/ecoc24/nginx-ingress-controller-e2e.yaml kubectl apply -f ./src/tests/ecoc24/nginx-ingress-controller-e2e.yaml
kubectl apply -f ./src/tests/ecoc24/nginx-ingress-controller-ip.yaml kubectl apply -f ./src/tests/ecoc24/nginx-ingress-controller-ip.yaml
# Deploy TFS for e2e
source ./src/tests/ecoc24/deploy_specs_e2e.sh
./deploy/all.sh
mv tfs_runtime_env_vars.sh tfs_runtime_env_vars_e2e.sh
# Deploy TFS for ip # Deploy TFS for ip
source ./src/tests/ecoc24/deploy_specs_ip.sh source ./src/tests/ecoc24/deploy_specs_ip.sh
./deploy/all.sh ./deploy/all.sh
mv tfs_runtime_env_vars.sh tfs_runtime_env_vars_ip.sh mv tfs_runtime_env_vars.sh tfs_runtime_env_vars_ip.sh
# Deploy TFS for e2e
source ./src/tests/ecoc24/deploy_specs_e2e.sh
./deploy/all.sh
mv tfs_runtime_env_vars.sh tfs_runtime_env_vars_e2e.sh
{
"services": [
{
"service_id": {
"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "dc-2-dc-svc"}
},
"service_type": 2,
"service_status": {"service_status": 1},
"service_endpoint_ids": [
{"device_id":{"device_uuid":{"uuid":"DC1"}},"endpoint_uuid":{"uuid":"int"}},
{"device_id":{"device_uuid":{"uuid":"DC2"}},"endpoint_uuid":{"uuid":"int"}}
],
"service_constraints": [
{"sla_capacity": {"capacity_gbps": 10.0}},
{"sla_latency": {"e2e_latency_ms": 15.2}}
],
"service_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "/settings", "resource_value": {
"address_families": ["IPV4"], "bgp_as": 65000, "bgp_route_target": "65000:123",
"mtu": 1512, "vlan_id": 300
}}},
{"action": 1, "custom": {"resource_key": "/device[PE1]/endpoint[1/1]/settings", "resource_value": {
"route_distinguisher": "65000:123", "router_id": "10.0.0.1",
"address_ip": "3.3.1.1", "address_prefix": 24, "sub_interface_index": 1, "vlan_id": 300
}}},
{"action": 1, "custom": {"resource_key": "/device[PE2]/endpoint[1/1]/settings", "resource_value": {
"route_distinguisher": "65000:123", "router_id": "10.0.0.2",
"address_ip": "3.3.2.1", "address_prefix": 24, "sub_interface_index": 1, "vlan_id": 300
}}},
{"action": 1, "custom": {"resource_key": "/device[PE3]/endpoint[1/1]/settings", "resource_value": {
"route_distinguisher": "65000:123", "router_id": "10.0.0.3",
"address_ip": "3.3.3.1", "address_prefix": 24, "sub_interface_index": 1, "vlan_id": 300
}}},
{"action": 1, "custom": {"resource_key": "/device[PE4]/endpoint[1/1]/settings", "resource_value": {
"route_distinguisher": "65000:123", "router_id": "10.0.0.4",
"address_ip": "3.3.4.1", "address_prefix": 24, "sub_interface_index": 1, "vlan_id": 300
}}}
]}
}
]
}
{
"contexts": [
{"context_id": {"context_uuid": {"uuid": "admin"}}}
],
"topologies": [
{"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}
],
"devices": [
{
"device_id": {"device_uuid": {"uuid": "TFS-IP"}}, "device_type": "teraflowsdn", "device_drivers": [7],
"device_endpoints": [], "device_operational_status": 0, "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "8002"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {
"scheme": "http", "username": "admin", "password": "admin"
}}}
]}
}
]
}
{
"contexts": [
{"context_id": {"context_uuid": {"uuid": "admin"}}}
],
"topologies": [
{"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}}
],
"devices": [
{
"device_id": {"device_uuid": {"uuid": "PE1"}}, "device_type": "emu-packet-router", "device_drivers": [0],
"device_endpoints": [], "device_operational_status": 0, "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
{"sample_types": [], "type": "copper/internal", "uuid": "1/1"},
{"sample_types": [], "type": "copper/internal", "uuid": "1/2"},
{"sample_types": [], "type": "copper/internal", "uuid": "2/1"},
{"sample_types": [], "type": "copper/internal", "uuid": "2/2"},
{"sample_types": [], "type": "copper/internal", "uuid": "2/3"},
{"sample_types": [], "type": "copper/internal", "uuid": "2/4"}
]}}}
]}
},
{
"device_id": {"device_uuid": {"uuid": "PE2"}}, "device_type": "emu-packet-router", "device_drivers": [0],
"device_endpoints": [], "device_operational_status": 0, "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
{"sample_types": [], "type": "copper/internal", "uuid": "1/1"},
{"sample_types": [], "type": "copper/internal", "uuid": "1/2"},
{"sample_types": [], "type": "copper/internal", "uuid": "2/1"},
{"sample_types": [], "type": "copper/internal", "uuid": "2/2"},
{"sample_types": [], "type": "copper/internal", "uuid": "2/3"},
{"sample_types": [], "type": "copper/internal", "uuid": "2/4"}
]}}}
]}
}
]
}
...@@ -17,37 +17,37 @@ ...@@ -17,37 +17,37 @@
kubectl delete namespace tfs-e2e tfs-ip kubectl delete namespace tfs-e2e tfs-ip
echo "Deploying tfs-e2e ..." echo "Deploying tfs-e2e ..."
kubectl delete -f src/tests/ecoc24/nginx-ingress-controller-e2e.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl delete -f src/tests/ecoc24/nginx-ingress-controller-e2e.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl create namespace tfs-e2e > ./tmp/logs/deploy-tfs-e2e.log kubectl create namespace tfs-e2e > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl apply -f src/tests/ecoc24/nginx-ingress-controller-e2e.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl apply -f src/tests/ecoc24/nginx-ingress-controller-e2e.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl --namespace tfs-e2e apply -f ./tmp/manifests/contextservice.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl --namespace tfs-e2e apply -f ./tmp/tfs-e2e/manifests/contextservice.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl --namespace tfs-e2e apply -f ./tmp/manifests/deviceservice.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl --namespace tfs-e2e apply -f ./tmp/tfs-e2e/manifests/deviceservice.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl --namespace tfs-e2e apply -f ./tmp/manifests/e2eorchestratorservice.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl --namespace tfs-e2e apply -f ./tmp/tfs-e2e/manifests/e2e_orchestratorservice.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl --namespace tfs-e2e apply -f ./tmp/manifests/pathcompservice.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl --namespace tfs-e2e apply -f ./tmp/tfs-e2e/manifests/pathcompservice.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl --namespace tfs-e2e apply -f ./tmp/manifests/serviceservice.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl --namespace tfs-e2e apply -f ./tmp/tfs-e2e/manifests/serviceservice.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl --namespace tfs-e2e apply -f ./tmp/manifests/sliceservice.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl --namespace tfs-e2e apply -f ./tmp/tfs-e2e/manifests/sliceservice.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl --namespace tfs-e2e apply -f ./tmp/manifests/webuiservice.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl --namespace tfs-e2e apply -f ./tmp/tfs-e2e/manifests/webuiservice.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
kubectl --namespace tfs-e2e apply -f ecoc24/tfs-ingress-e2e.yaml > ./tmp/logs/deploy-tfs-e2e.log kubectl --namespace tfs-e2e apply -f src/tests/ecoc24/tfs-ingress-e2e.yaml > ./tmp/tfs-e2e/logs/deploy-tfs-e2e.log
printf "\n" printf "\n"
echo "Deploying tfs-ip ..." echo "Deploying tfs-ip ..."
kubectl delete -f src/tests/ecoc24/nginx-ingress-controller-ip.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl delete -f src/tests/ecoc24/nginx-ingress-controller-ip.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl create namespace tfs-ip > ./tmp/logs/deploy-tfs-ip.log kubectl create namespace tfs-ip > ./tmp/logs/deploy-tfs-ip.log
kubectl apply -f src/tests/ecoc24/nginx-ingress-controller-ip.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl apply -f src/tests/ecoc24/nginx-ingress-controller-ip.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl --namespace tfs-ip apply -f ./tmp/manifests/contextservice.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl --namespace tfs-ip apply -f ./tmp/tfs-ip/manifests/contextservice.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl --namespace tfs-ip apply -f ./tmp/manifests/deviceservice.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl --namespace tfs-ip apply -f ./tmp/tfs-ip/manifests/deviceservice.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl --namespace tfs-ip apply -f ./tmp/manifests/pathcompservice.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl --namespace tfs-ip apply -f ./tmp/tfs-ip/manifests/pathcompservice.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl --namespace tfs-ip apply -f ./tmp/manifests/serviceservice.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl --namespace tfs-ip apply -f ./tmp/tfs-ip/manifests/serviceservice.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl --namespace tfs-ip apply -f ./tmp/manifests/sliceservice.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl --namespace tfs-ip apply -f ./tmp/tfs-ip/manifests/sliceservice.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl --namespace tfs-ip apply -f ./tmp/manifests/vntmanagerservice.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl --namespace tfs-ip apply -f ./tmp/tfs-ip/manifests/vnt_managerservice.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl --namespace tfs-ip apply -f ./tmp/manifests/webuiservice.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl --namespace tfs-ip apply -f ./tmp/tfs-ip/manifests/webuiservice.yaml > ./tmp/logs/deploy-tfs-ip.log
kubectl --namespace tfs-ip apply -f ecoc24/tfs-ingress-ip.yaml > ./tmp/logs/deploy-tfs-ip.log kubectl --namespace tfs-ip apply -f src/tests/ecoc24/tfs-ingress-ip.yaml > ./tmp/logs/deploy-tfs-ip.log
printf "\n" printf "\n"
echo "Waiting tfs-e2e ..." echo "Waiting tfs-e2e ..."
kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/contextservice kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/contextservice
kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/deviceservice kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/deviceservice
kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/e2eorchestratorservice kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/e2e-orchestratorservice
kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/pathcompservice kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/pathcompservice
kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/serviceservice kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/serviceservice
kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/sliceservice kubectl wait --namespace tfs-e2e --for='condition=available' --timeout=300s deployment/sliceservice
...@@ -60,7 +60,7 @@ kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deplo ...@@ -60,7 +60,7 @@ kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deplo
kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/pathcompservice kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/pathcompservice
kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/serviceservice kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/serviceservice
kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/sliceservice kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/sliceservice
kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/vntmanagerservice kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/vnt-managerservice
kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/webuiservice kubectl wait --namespace tfs-ip --for='condition=available' --timeout=300s deployment/webuiservice
printf "\n" printf "\n"
......
...@@ -122,6 +122,10 @@ spec: ...@@ -122,6 +122,10 @@ spec:
containerPort: 10254 containerPort: 10254
hostPort: 12541 hostPort: 12541
protocol: TCP protocol: TCP
- name: ws
containerPort: 8761
hostPort: 8761
protocol: TCP
args: args:
- /nginx-ingress-controller - /nginx-ingress-controller
- --configmap=$(POD_NAMESPACE)/nginx-load-balancer-microk8s-conf-e2e - --configmap=$(POD_NAMESPACE)/nginx-load-balancer-microk8s-conf-e2e
......
...@@ -122,6 +122,10 @@ spec: ...@@ -122,6 +122,10 @@ spec:
containerPort: 10254 containerPort: 10254
hostPort: 12542 hostPort: 12542
protocol: TCP protocol: TCP
- name: ws
containerPort: 8762
hostPort: 8762
protocol: TCP
args: args:
- /nginx-ingress-controller - /nginx-ingress-controller
- --configmap=$(POD_NAMESPACE)/nginx-load-balancer-microk8s-conf-ip - --configmap=$(POD_NAMESPACE)/nginx-load-balancer-microk8s-conf-ip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment