Skip to content

[BUG] M2 cache volume is created and mounted for non java providers #676

@pranavgaikwad

Description

@pranavgaikwad

Is there an existing issue for this?

  • I have searched the existing issues

Konveyor version

v0.9.0-alpha.4 / latest

Priority

Blocker

Current Behavior

I am unable to run nodejs analysis on mac due to 2 reasons:

  1. It seems that kantra is trying to mount .m2 cache volume which is not required for Nodejs.
  2. It seems to be blindly mounting .m2 directory regardless of whether it exists locally or not
    CORRECTION: The .m2 cache does exist locally but I am still seeing an error "does not exist". See logs below.
time="2026-01-16T13:19:15-05:00" level=error msg="failed to run hybrid analysis" error="failed to start providers: failed to start provider nodejs: Trying to pull quay.io/konveyor/generic-external-provider:v0.9.0-alpha.4...
Getting image source signatures
Copying blob sha256:ea442c0634d1ef83ab65b5966b19cde1079e8dc66d9e8a093f1170ea62d6c041
Copying blob sha256:15f4b55884339bddb52ca0550d5b1208576ecf31649e067b468dc4e7b90745bd
Copying config sha256:042526794114a19ecae29deb4f8db09841bcb5038c2a472986b6f4f9545db30f
Writing manifest to image destination
Error: mounting volume maven-cache-volume for container 13b6f835773fc7e443b10c9e384a52a58515251fd8b3e0c5f2592309bfc51357: mount: /var/home/core/.local/share/containers/storage/volumes/maven-cache-volume/_data: special device /Users/pgaikwad/.m2/repository does not exist.
      dmesg(1) may have more information after failed mount system call.

Expected Behavior

  1. m2 cache should not be required for any non java providers.
  2. analysis should succeed

How Reproducible

Always

Steps To Reproduce

  1. Download 0.9.0-alpha.4 from release page and use kantra analyze sub-command to analyze a nodejs app using patternfly rules https://github.com/konveyor/rulesets/tree/main/preview/nodejs/patternfly and any sample app, you may use https://github.com/konveyor/tackle2-ui:
kantra analyze --input <> --output <> --target patternfly-v6 --enable-default-rulesets=false --provider=nodejs

Environment

- OS: macos, arm

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingkind/bugCategorizes issue or PR as related to a bug.needs-priorityIndicates an issue or PR lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

Type

No type

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions