Skip to content

podman installed but propose to install podman #3405

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

Closed
jeffmaury opened this issue Oct 6, 2023 · 10 comments · Fixed by #3408
Closed

podman installed but propose to install podman #3405

jeffmaury opened this issue Oct 6, 2023 · 10 comments · Fixed by #3408
Assignees
Labels
Milestone

Comments

@jeffmaury
Copy link
Member

I have podman installed on my machine and wanted to start a component. I got:

image

I don't know if this is related but I have podman installed but no podman machine are defined on my system (Win11Pro)

@datho7561
Copy link
Contributor

We are using odo to check if podman is present. As such, this might be an upstream issue with odo. What does the output of odo version give? I'll try it out on my Windows computer as well.

If this feature of odo isn't working reliably on Windows, we can look into using the which library to search the path for the podman binary.

@jeffmaury
Copy link
Member Author

I have a very old version of odo in the PATH (3.4.0)

@jeffmaury
Copy link
Member Author

But removing this old version from the PATH did not change the behavoir. And I don't know where is located odo binary used by the extension

@jeffmaury
Copy link
Member Author

OK found the odo binary in the $HOME/.vscode/extensions folder hierarchy.

So running odo-windows-amd64 dev --platform podman

gives:

X unable to access podman. Do you have podman client installed and configured correctly? cause: exit status 125

And having a podman machine running fixes the issue.

And having a podman machine but stopped gives the following output:

X unable to access podman. Do you have podman client installed and configured correctly? cause: timeout (1s) while waiting for Podman version

@datho7561
Copy link
Contributor

What does odo version report? This is what we are using to tell if podman is installed on the user's system. If that part of odo is broken, we will migrate off of it, since we already require a library that can tell if a given program is on the PATH.

As a side note, I tend to run into a lot of problems trying to use podman on Windows, I don't know if that's related.

@jeffmaury
Copy link
Member Author

Once I removed my old odo version from PATH, so I had no odo in the PATH and I had to add the one in $HOME/.vscode/extensions/xxxx and it reported:


 !  unable to fetch the cluster server version
odo v3.14.0 (471928fea)

Podman Client: 4.6.2

---
A newer version of odo (v3.15.0) is available,
visit https://github.com/redhat-developer/odo/releases to update.
If you wish to disable this notification, run:
odo preference set UpdateNotification false
---

@datho7561
Copy link
Contributor

I tried using odo 3.4.0, and it doesn't output the podman version when you run odo version.

I tried putting odo 3.4.0 on path, but OpenShift still uses odo 3.14.0.

There is a setting "openshiftToolkit.searchForToolsInPath": true, to force using the odo from PATH, but this setting doesn't seem to work. (it still uses the odo bundled with the extension).

I did this all on Linux, I'll try it on Windows after lunch.

@datho7561
Copy link
Contributor

I couldn't replicate the problem on Windows either

@jeffmaury
Copy link
Member Author

It's not about odo 3.4 0 it's about bad diagnostic if podman is installed but no machine available

@datho7561
Copy link
Contributor

Okay. I understand now and am able to reproduce the issue. I'll take a look into addressing it.

datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this issue Oct 6, 2023
@datho7561 datho7561 added this to the 1.10.0 milestone Oct 6, 2023
@datho7561 datho7561 moved this to 👀 In review in IDE Cloudaptors Oct 6, 2023
datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this issue Oct 26, 2023
@mohitsuman mohitsuman modified the milestones: 1.10.0, 1.11.0 Nov 1, 2023
@mohitsuman mohitsuman modified the milestones: 1.11.0, 1.12.0 Dec 8, 2023
@datho7561 datho7561 moved this from 👀 In review to 🏗 In progress in IDE Cloudaptors Jan 10, 2024
datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this issue Jan 10, 2024
@datho7561 datho7561 moved this from 🏗 In progress to 👀 In review in IDE Cloudaptors Jan 10, 2024
datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this issue Jan 31, 2024
datho7561 added a commit that referenced this issue Feb 14, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in IDE Cloudaptors Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
3 participants