Skip to content

Allow running multiple parallel Dev sessions on the same platform type #6809

Open
@valaparthvi

Description

@valaparthvi

/kind user-story

User Story

As an odo user, I want to be able to run 2 parallel Dev session on different clusters (or on podman and docker for e.g.), So that I can simultaneously check my application/cluster's behavior instead of having to restart the Dev sessions and moving back and forth between the clusters/Container runtimes.

Acceptance Criteria

  • It should allow to run multiple dev sessions on different clusters.
  • It should allow to run multiple dev sessions on podman and docker or 2 different versions of container runtimes.

Current Behavior:

$ KUBECONFIG=some_config odo dev
  __
 /  \__     Developing using the "springboot" Devfile
 \__/  \    Platform: cluster
 /  \__/    odo version: v3.10.0
 \__/

↪ Running on podman in Dev mode
 ✗  unable to save state file: a session with PID 21535 is already running on platform "cluster"
$ PODMAN_CMD=docker odo dev
  __
 /  \__     Developing using the "springboot" Devfile
 \__/  \    Platform: podman
 /  \__/    odo version: v3.10.0
 \__/

↪ Running on podman in Dev mode
 ✗  unable to save state file: a session with PID 22552 is already running on platform "podman"

Links

  • Related Epic (mandatory):

/kind user-story

Notes

Currently the validation relies on checking for platform in the .odo/devstate.*.json path. This could be fixed by also storing the KUBECONFIG and PODMAN_CMD in the file and additionally relying on their values to determine if the user is trying to run a duplicate session.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/user-storyAn issue of user-story kindlifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/LowNice to have issue. It's not immediately on the project roadmap to get it done.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions