Skip to content

APP definition makes listeners crash #53

@robert-sanfeliu

Description

@robert-sanfeliu

If the user defines an application with the following kubevela using the GUI (cd or prod) and clicks the deploy button, optimiser controller, utility evaluator and other components that are listening to the topic eu.nebulouscloud.ui.dsl.generic crash with:

{"@timestamp":"2025-10-17T14:04:45.089099963Z","@version":"1","message":"Client exception for topic://eu.nebulouscloud.ui.dsl.generic ","logger_name":"eu.nebulouscloud.exn.core.Manager","thread_name":"pool-1-thread-3","level":"ERROR","level_value":40000}

The vela:

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  name: hello-metrics
spec:
  components:
    - name: exporter
      type: webservice
      properties:
        image: python:3.11-slim
        imagePullPolicy: Always
        cpu: "0.5"
        memory: "256Mi"
        ports:
          - port: 8000
            expose: true
        cmd:
          - bash
          - -lc
          - |
            pip install --no-cache-dir prometheus-client >/dev/null 2>&1 && \
            python - <<'PY'
            import time, random
            from prometheus_client import start_http_server, Gauge
            g = Gauge("inference_speed_1", "Synthetic FPS")
            start_http_server(8000)
            while True:
                g.set(18 + 4*random.random())  # ~18–22
                time.sleep(1)
            PY
      traits:
        - type: scaler
          properties:
            replicas: 1

https://gui.cd.nebulouscloud.eu/applications/7fe682d6-959f-4014-bd76-f5ba86d309ff

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdeployed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions