Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Start Dev action on quarkus component until an OpenShift Project is created #2581

Closed
odockal opened this issue Oct 20, 2022 · 8 comments · Fixed by #3847
Closed

Cannot Start Dev action on quarkus component until an OpenShift Project is created #2581

odockal opened this issue Oct 20, 2022 · 8 comments · Fixed by #3847
Assignees
Milestone

Comments

@odockal
Copy link
Contributor

odockal commented Oct 20, 2022

Env. Linux, Fedora 36, OCP: local CRC 2.9.0.

  1. Connect to the cluster (crc)
  2. Create a quarkus component
  3. Run start Dev on the component
  4. Assert: Component is being "pushed" to the cluster
    Actual result: Nothing happens, just Starting odo dev put to console. After the project is created this works.

Maybe it is simply not that clear to me, but I could not execute (it does nothing, just wrote out Starting odo dev but nothing else) Start Dev operation on created quarkus component, until a project is created on OpenShift connection.

@dgolovin dgolovin self-assigned this Oct 20, 2022
@dgolovin dgolovin added this to the 1.0.0 milestone Oct 28, 2022
@dgolovin
Copy link
Collaborator

dgolovin commented Nov 5, 2022

@odockal It now works differently and reports the problem. The error message does not mention missing project, but at least the terminal output is not totally empty. See screenshot below.
@mohitsuman it can be improved by checking if project exists before running the 'odo dev'. Not blocking v1.0.0 IMO.

Screenshot from 2022-11-04 23-13-09

@odockal
Copy link
Contributor Author

odockal commented Nov 7, 2022

@dgolovin Much better with error reported. I would consider this use case to be corner one, not blocking anything.

@mohitsuman
Copy link
Collaborator

I am moving this to next milestone.

@mohitsuman mohitsuman modified the milestones: 1.0.0, 1.1.0 Nov 7, 2022
@mohitsuman mohitsuman modified the milestones: 1.1.0, 1.2.0 Dec 14, 2022
@mohitsuman mohitsuman modified the milestones: 1.2.0, 1.3.0 Jan 4, 2023
@mohitsuman mohitsuman modified the milestones: 1.3.0, 1.5.0 Mar 23, 2023
@mohitsuman mohitsuman modified the milestones: 1.6.0, 1.7.0 Jun 2, 2023
@mohitsuman mohitsuman modified the milestones: 1.7.0, 1.9.0 Aug 31, 2023
@mohitsuman mohitsuman modified the milestones: 1.9.0, 1.10.0 Sep 25, 2023
@mohitsuman
Copy link
Collaborator

@datho7561 can you please verify if this error still persists with the latest release. And if we can add any resolution to it if needed.

@datho7561
Copy link
Contributor

I don't know how to trigger the 'Create new or set project' tree item anymore. Even when I manually modify my ~/.kube/config to not have a namespace, OpenShift Toolkit picks up default as the current namespace.

@datho7561 datho7561 modified the milestones: 1.10.0, 1.11.0 Nov 3, 2023
@datho7561
Copy link
Contributor

datho7561 commented Nov 3, 2023

I reproduced the project not being set. Not sure what I did to get to that state though.

It complains about not being logged into a cluster, I think there is another issue opened by Lukas about this.

@mohitsuman
Copy link
Collaborator

@datho7561 is this still an issue with latest release ?

@datho7561
Copy link
Contributor

Yes, this is still an issue. Here is how to reproduce it:

  1. Modify your ~/.kube/config so that the current context points to a namespace that doesn't exist on the cluster you are working on
  2. Open vscode-openshift-toolkit and verify that the "project" item in the application explorer has a warning symbol and the description "Missing Project. Create new or set active Project"
  3. Right click on a component in the "Components" sidebar section and click "Start Dev"
  4. The OpenShift terminal should appear. There will be text that says "Error occured on push" in the output. The component is erroneously listed as running in the "Components" section of the sidebar.

In order to fix it, we should check if the current project exists before running odo dev. Maybe we should show an error popup, or maybe we should display a prompt to select a project.

datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this issue Jan 26, 2024
When trying to run "Start Dev", "Manually Start Dev",
"Create" (to create resources from a YAML file),
or "Delete" (to delete resources from a YAML file),
if the current project doesn't exist,
display a notification initicating that a project needs to be selected
or created,
with a button that opens the wizard to do this.

Fixes redhat-developer#2581

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this issue Jan 29, 2024
When trying to run "Start Dev", "Manually Start Dev",
"Create" (to create resources from a YAML file),
or "Delete" (to delete resources from a YAML file),
if the current project doesn't exist,
display a notification initicating that a project needs to be selected
or created,
with a button that opens the wizard to do this.

Fixes redhat-developer#2581

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit that referenced this issue Jan 29, 2024
When trying to run "Start Dev", "Manually Start Dev",
"Create" (to create resources from a YAML file),
or "Delete" (to delete resources from a YAML file),
if the current project doesn't exist,
display a notification initicating that a project needs to be selected
or created,
with a button that opens the wizard to do this.

Fixes #2581

Signed-off-by: David Thompson <davthomp@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants