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

[BUG] Errors displayed at end of --list-targets: "failed to remove network" & "failed to remove volume" #239

Closed
1 task done
jwmatthews opened this issue May 17, 2024 · 4 comments · Fixed by #247 or #258
Closed
1 task done
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-priority Indicates an issue or PR lacks a `priority/foo` label and requires one. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@jwmatthews
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Konveyor version

latest, SHA: 0f878a7

Priority

Minor

Current Behavior

I see some errors at end of list-targets, perhaps Kantra is expecting podman to be at "/usr/bin/podman" and on MacOS it may be elsewhere:

$ which podman
/opt/homebrew/bin/podman
$ ./kantra version               
version: latest
SHA: 0f878a7539b9d0b50d271cfb26a96c6ddb5c0427
image: quay.io/konveyor/kantra


 $ ./kantra analyze --list-targets
available target technologies:
azure-aks
azure-appservice
azure-container-apps
azure-spring-apps
camel
camel2
camel3
camel3.1
camel3.10
camel3.11
camel3.12
camel3.13
camel3.14
camel3.15
camel3.16
camel3.17
camel3.18
camel3.19
camel3.2
camel3.20
camel3.21
camel3.3
camel3.4
camel3.5
camel3.6
camel3.7
camel3.8
camel3.9
camel4
camel4.1
cloud-readiness
discovery
drools
drools6
eap
eap6
eap7
eap7.1
eap8
eapxp
eapxp2
eapxp3
eapxp5
fsw
fsw6
fuse
fuse6
hibernate
hibernate-search
hibernate-search5
hibernate4
hibernate5
hibernate5.1
hibernate5.3
hibernate6
hibernate6.1
hibernate6.2
jakarta-ee
jakarta-ee8
jakarta-ee9
java-ee
java-ee6
java-ee7
jbpm
jbpm6
jws
jws6
linux
openjdk
openjdk11
openjdk17
openjdk18
openjdk19
openjdk20
openjdk21
openjdk7
openliberty
quarkus
quarkus3
resteasy
resteasy3
rhr
time="2024-05-17T14:45:00Z" level=error msg="failed to remove network" error="fork/exec /usr/bin/podman: no such file or directory" network=
time="2024-05-17T14:45:00Z" level=error msg="failed to remove volume" error="fork/exec /usr/bin/podman: no such file or directory" volume=
ERRO[0000] failed to remove network                      error="exit status 125" network=
ERRO[0000] failed to remove volume                       error="exit status 125" volume=
$ which podman
/opt/homebrew/bin/podman

Expected Behavior

No error

How Reproducible

Always (Default)

Steps To Reproduce

  1. In MacOS
  2. kantra analyze --list-targets

Environment

- OS: MacOS

Anything else?

No response

@jwmatthews jwmatthews added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. kind/bug Categorizes issue or PR as related to a bug. labels May 17, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Planning May 17, 2024
@konveyor-ci-bot
Copy link

This issue is currently awaiting triage.
If contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.
The triage/accepted label can be added by org members.

@konveyor-ci-bot konveyor-ci-bot bot added the needs-priority Indicates an issue or PR lacks a `priority/foo` label and requires one. label May 17, 2024
@eemcmullan eemcmullan self-assigned this May 21, 2024
@eemcmullan eemcmullan added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 21, 2024
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Planning May 30, 2024
@jwmatthews
Copy link
Member Author

I am seeing this with latest Kantra I can download as of June 12

Running on MacOS arm64

./kantra version
version: latest
SHA: a89ffa3bce466bb46ecc658a2b07e7d2bec69af1
image: quay.io/konveyor/kantra
$ ./kantra analyze --list-targets
/opt/homebrew/bin/podman run --rm --name tbFNxfUXCQaIVPEk --entrypoint /usr/local/bin/kantra --env RUN_MODE=container quay.io/konveyor/kantra:latest analyze --list-targetsavailable target technologies:
azure-aks
azure-appservice
azure-container-apps
azure-spring-apps
camel
camel2
camel3
camel3.1
camel3.10
camel3.11
camel3.12
camel3.13
camel3.14
camel3.15
camel3.16
camel3.17
camel3.18
camel3.19
camel3.2
camel3.20
camel3.21
camel3.3
camel3.4
camel3.5
camel3.6
camel3.7
camel3.8
camel3.9
camel4
camel4.1
cloud-readiness
discovery
drools
drools6
eap
eap6
eap7
eap7.1
eap8
eapxp
eapxp2
eapxp3
eapxp5
fsw
fsw6
fuse
fuse6
hibernate
hibernate-search
hibernate-search5
hibernate4
hibernate5
hibernate5.1
hibernate5.3
hibernate6
hibernate6.1
hibernate6.2
jakarta-ee
jakarta-ee8
jakarta-ee9
java-ee
java-ee6
java-ee7
jbpm
jbpm6
jws
jws6
linux
openjdk
openjdk11
openjdk17
openjdk18
openjdk19
openjdk20
openjdk21
openjdk7
openliberty
quarkus
quarkus3
resteasy
resteasy3
rhr
time="2024-06-12T14:55:29Z" level=error msg="failed to remove network" error="fork/exec /usr/bin/podman: no such file or directory" network=
time="2024-06-12T14:55:29Z" level=error msg="failed to remove volume" error="fork/exec /usr/bin/podman: no such file or directory" volume=
ERRO[0000] failed to remove network                      error="exit status 125" network=
ERRO[0000] failed to remove volume                       error="exit status 125" volume=


$ podman version
Client:       Podman Engine
Version:      5.0.2
API Version:  5.0.2
Go Version:   go1.22.2
Git Commit:   3304dd95b8978a8346b96b7d43134990609b3b29
Built:        Wed Apr 17 10:22:43 2024
OS/Arch:      darwin/arm64

Server:       Podman Engine
Version:      5.0.3
API Version:  5.0.3
Go Version:   go1.22.2
Built:        Thu May  9 20:00:00 2024
OS/Arch:      linux/arm64

@jwmatthews jwmatthews reopened this Jun 12, 2024
@shawn-hurley
Copy link
Contributor

@eemcmullan I bet this is my bad, will take this

@eemcmullan
Copy link
Collaborator

@shawn-hurley I think we just need to swap these two things: https://github.com/konveyor/kantra/blob/main/cmd/analyze.go#L135-L147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-priority Indicates an issue or PR lacks a `priority/foo` label and requires one. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: ✅ Done
3 participants