Skip to content

Dev Workspace Controller Loop with Identical Endpoint Names on DevWorkspace #23231

Open
devfile/devworkspace-operator
#1521

Description

@eye0fra

Describe the bug

If I start two workspaces containing an endpoint with the same name, the dev workspace controller enters a loop. As a result, both namespaces do not start and remain stuck on "Preparing Service".

sample devfile

schemaVersion: 2.3.0
metadata:
  name: endpoints-issue
components:
  - name: tools
    container:
      image: quay.io/devfile/universal-developer-image:ubi8-latest
      memoryRequest: 1G
      memoryLimit: 4G
      cpuRequest: '1'
      cpuLimit: '2'
  - name: data
    volume:
      size: 256Mi
  - name: postgresql
    container:
      image: quay.io/fedora/postgresql-12:latest
      cpuLimit: "1"
      cpuRequest: 50m
      memoryLimit: 512Mi
      memoryRequest: 64Mi
      endpoints:
        - exposure: internal
          targetPort: 5432
          name: postgresql
          protocol: tcp
          attributes:
            discoverable: true
      env:
        - name: POSTGRESQL_USER
          value: user
        - name: POSTGRESQL_PASSWORD
          value: pass
        - name: POSTGRESQL_ROOT_PASSWORD
          value: root
        - name: POSTGRESQL_DATABASE
          value: db
      volumeMounts:
        - name: data
          path: /var/lib/pgsql/data

Che version

7.93@latest

Steps to reproduce

  1. Create two workspaces with endpoints having the same name.
  2. Start both workspaces.
  3. Observe that the dev workspace controller goes into a loop and both namespaces remain stuck on "Preparing Service".

Expected behavior

Both workspaces should start without any issues

Runtime

OpenShift

Screenshots

Screenshot 2024-11-04 at 15 15 26 Screenshot 2024-11-04 at 15 16 28 Screenshot 2024-10-31 at 11 44 26

Installation method

OperatorHub

Environment

other (please specify in additional context)

Eclipse Che Logs

No response

Additional context

Environment:
DevSpaces Version: 3.16.1
DevWorkspaces Operator Version: 0.30.2

Activity

  1. added
    kind/bugOutline of a bug - must adhere to the bug report template.
    on Nov 4, 2024
  2. added
    status/need-triageAn issue that needs to be prioritized by the curator responsible for the triage. See https://github.
    on Nov 4, 2024
  3. moved this to 📅 Planned for this Sprint in Eclipse Che Team B Backlogon Nov 4, 2024
  4. AObuchow commented on Nov 4, 2024

    @AObuchow

    @eye0fra Thank you for reporting this. For what its worth, this is an internally known DWO issue that's currently only documented as a TODO.

    I'm not sure if there's any effective way for us to solve this: discoverable endpoints are intended to have services with a static, predefined name so that you can predict what the service will be called. If we add some level of randomization to the service's name, then it will no longer have a static name.

    When starting up a workspace, we might be able to check if another workspace defines a service with the same name and fail the workspace if so, to alert the user that they need to use a different discoverable endpoint name?

    Additionally, it should be documented that different devfiles used by the same user cannot define discoverable endpoints with the same name.

  5. eye0fra commented on Nov 4, 2024

    @eye0fra
    Author

    Hi @AObuchow ,

    I agree that notifying the user is the best approach for now. This way, they can make the necessary edits to the DW/devfile accordingly.

  6. removed
    status/need-triageAn issue that needs to be prioritized by the curator responsible for the triage. See https://github.
    on Nov 5, 2024
  7. self-assigned this
    on Nov 20, 2024
  8. moved this from 📅 Planned for this Sprint to No status in Eclipse Che Team B Backlogon Mar 26, 2025
  9. moved this to 🚧 In Progress in Eclipse Che Team B Backlogon Apr 14, 2025
  10. moved this from 🚧 In Progress to 📅 Planned for this Sprint in Eclipse Che Team B Backlogon Apr 14, 2025
  11. moved this from 📅 Planned for this Sprint to 🚧 In Progress in Eclipse Che Team B Backlogon Aug 12, 2025
  12. moved this from 🚧 In Progress to Ready for Review in Eclipse Che Team B Backlogon Oct 8, 2025
  13. che-bot commented on Nov 22, 2025

    @che-bot
    Contributor

    Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

    Mark the issue as fresh with /remove-lifecycle stale in a new comment.

    If this issue is safe to close now please do so.

    Moderators: Add lifecycle/frozen label to avoid stale mode.

  14. added
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Nov 22, 2025
  15. moved this from Ready for Review to ✅ Done in Eclipse Che Team B Backlogon Nov 29, 2025
  16. reopened this on Dec 2, 2025
  17. added
    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.
    and removed
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Dec 2, 2025
  18. dkwon17 commented on Dec 2, 2025

    @dkwon17
    Contributor

    After discussion with @akurinnoy we decided to merge devfile/devworkspace-operator#1521 after we have implemented load tests that stress the DWO webhook deployment.

  19. moved this from ✅ Done to Blocked in Eclipse Che Team B Backlogon Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/devworkspace-operatorkind/bugOutline of a bug - must adhere to the bug report template.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions