Migration of Interdomain component and OECC/PSC'22 test to Release 2

Common:

  • Added .dockerignore file

Proto files:

  • Added DeleteSlice method to interdomain.proto

Scripts:

  • Added interdomain helper test scripts

Common - Tools - Context Queries:

  • Added field name to create context methods
  • Updated and improved Interdomain query methods

Common - Tools - Object Factory:

  • Added field name to Device and Link composers

Context component:

  • Changed internal queue of EventsCollector to PriorityQueue ordered by event timestamp

Interdomain component:

  • Migrated to Release 2
  • Added client and server implementation of DeleteSlice RPC method
  • Added configuration of remote domains through descriptor files
  • Added basic unitary tests

PathComp component - Frontend:

  • Corrected PathComp to use admin topology (interdomain is deprecated)
  • Corrected SubService computation when remote networks are in the computed path

Service component:

  • Improved SettingsHandler class
  • Extended L2NMEmulatedServiceHandler to update SettingsHandler with endpoint settings defined in the device descriptor

Slice component:

  • Fixed identification of interdomain slices
  • Fixed management of slice name

Tests - OECC/PSC'22:

  • Updated descriptors
  • Moved unused manifests to folder "old"
  • Updated deploy specs scripts
  • Updated dump_logs.sh script
  • Added expose_interdomain_dom2.sh script
Edited by Lluis Gifre Renom

Merge request reports

Loading
+24 −24
Changes for manifests/contextservice.yaml: 24 added lines, 24 removed lines.
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ spec:
        - name: MB_BACKEND
          value: "nats"
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        envFrom:
        - secretRef:
            name: crdb-data
@@ -54,7 +54,7 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:1010"]
        resources:
          requests:
            cpu: 250m
            cpu: 125m
            memory: 128Mi
          limits:
            cpu: 1000m
@@ -79,25 +79,25 @@ spec:
    protocol: TCP
    port: 9192
    targetPort: 9192
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: contextservice-hpa
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: contextservice
  minReplicas: 1
  maxReplicas: 20
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 80
  #behavior:
  #  scaleDown:
  #    stabilizationWindowSeconds: 30
#---
#apiVersion: autoscaling/v2
#kind: HorizontalPodAutoscaler
#metadata:
#  name: contextservice-hpa
#spec:
#  scaleTargetRef:
#    apiVersion: apps/v1
#    kind: Deployment
#    name: contextservice
#  minReplicas: 1
#  maxReplicas: 20
#  metrics:
#  - type: Resource
#    resource:
#      name: cpu
#      target:
#        type: Utilization
#        averageUtilization: 80
#  #behavior:
#  #  scaleDown:
#  #    stabilizationWindowSeconds: 30
+2 −2
Changes for manifests/deviceservice.yaml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ spec:
        - containerPort: 9192
        env:
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        readinessProbe:
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:2020"]
@@ -48,7 +48,7 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:2020"]
        resources:
          requests:
            cpu: 250m
            cpu: 125m
            memory: 128Mi
          limits:
            cpu: 1000m
+4 −2
Changes for manifests/interdomainservice.yaml: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -35,7 +35,9 @@ spec:
        - containerPort: 9192
        env:
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        - name: TOPOLOGY_ABSTRACTOR
          value: "DISABLE"
        readinessProbe:
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:10010"]
@@ -44,7 +46,7 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:10010"]
        resources:
          requests:
            cpu: 250m
            cpu: 125m
            memory: 64Mi
          limits:
            cpu: 1000m
+27 −27
Changes for manifests/pathcompservice.yaml: 27 added lines, 27 removed lines.
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ spec:
        - containerPort: 9192
        env:
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        readinessProbe:
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:10020"]
@@ -45,11 +45,11 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:10020"]
        resources:
          requests:
            cpu: 50m
            memory: 64Mi
            cpu: 125m
            memory: 128Mi
          limits:
            cpu: 500m
            memory: 512Mi
            cpu: 1000m
            memory: 1024Mi
      - name: backend
        image: labs.etsi.org:5050/tfs/controller/pathcomp-backend:latest
        imagePullPolicy: Always
@@ -98,25 +98,25 @@ spec:
    protocol: TCP
    port: 9192
    targetPort: 9192
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: pathcompservice-hpa
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: pathcompservice
  minReplicas: 1
  maxReplicas: 20
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 80
  #behavior:
  #  scaleDown:
  #    stabilizationWindowSeconds: 30
#---
#apiVersion: autoscaling/v2
#kind: HorizontalPodAutoscaler
#metadata:
#  name: pathcompservice-hpa
#spec:
#  scaleTargetRef:
#    apiVersion: apps/v1
#    kind: Deployment
#    name: pathcompservice
#  minReplicas: 1
#  maxReplicas: 20
#  metrics:
#  - type: Resource
#    resource:
#      name: cpu
#      target:
#        type: Utilization
#        averageUtilization: 80
#  #behavior:
#  #  scaleDown:
#  #    stabilizationWindowSeconds: 30
+24 −24
Changes for manifests/serviceservice.yaml: 24 added lines, 24 removed lines.
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ spec:
        - containerPort: 9192
        env:
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        readinessProbe:
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:3030"]
@@ -45,7 +45,7 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:3030"]
        resources:
          requests:
            cpu: 250m
            cpu: 125m
            memory: 128Mi
          limits:
            cpu: 1000m
@@ -70,25 +70,25 @@ spec:
    protocol: TCP
    port: 9192
    targetPort: 9192
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: serviceservice-hpa
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: serviceservice
  minReplicas: 1
  maxReplicas: 20
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 80
  #behavior:
  #  scaleDown:
  #    stabilizationWindowSeconds: 30
#---
#apiVersion: autoscaling/v2
#kind: HorizontalPodAutoscaler
#metadata:
#  name: serviceservice-hpa
#spec:
#  scaleTargetRef:
#    apiVersion: apps/v1
#    kind: Deployment
#    name: serviceservice
#  minReplicas: 1
#  maxReplicas: 20
#  metrics:
#  - type: Resource
#    resource:
#      name: cpu
#      target:
#        type: Utilization
#        averageUtilization: 80
#  #behavior:
#  #  scaleDown:
#  #    stabilizationWindowSeconds: 30
Loading
Loading