Skip to content

[odo] Failure to fetch extra stack files along with Devfile from the staging registry #1089

@valaparthvi

Description

@valaparthvi

Which area this feature is related to?

/kind bug

Which area this bug is related to?

/area api

/area ci
/area api
/area library
/area registry
/area devworkspace
/area integration-tests
/area test-automation
/area releng
/area landing-page

What versions of software are you using?

Go project

Operating System and version:

Go Pkg Version:

Node.js project

Operating System and version:

Node.js version:

Yarn version:

Project.json:

Web browser

Operating System and version:

Browser name and version:

Bug Summary

Describe the bug:
odo uses the Staging Registry to fetch Devfiles for it's integration test on CI.

https://github.com/redhat-developer/odo/blob/08c3904ff249f1eb0a937152e01bd38ee9e7ce42/tests/helper/helper_generic.go#L376

Things were working as expected until March 29, when we were able to fetch the extra stack files along with the Devfile (e.g. go:latest, java-springboot:latest, python:latest), but we can't seem to fetch it now, and this is blocking us (We are in the process of using an alternate solution, but the issue still remains if one wants to use the staging registry).

To Reproduce:

  1. odo preference add registry StagingDevfileRegistry https://registry.stage.devfile.io
  2. odo init --devfile go --devfile-version 2.0.0 --name my-go-app --devfile-registry StagingDevfileRegistry --starter go-starter

Expected behavior

It should be possible to fetch the extra stack files.

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

➜  odo preference view
[...]
Devfile registries:
 NAME                    URL                                SECURE
 StagingDevfileRegistry  https://registry.stage.devfile.io/  No
 DefaultDevfileRegistry  https://registry.devfile.io/        No

➜  odo init --devfile go --devfile-version 2.0.0 --name my-go-app --devfile-registry StagingDevfileRegistry
  __
 /  \__     Initializing a new component
 \__/  \
 /  \__/    odo version: v3.8.0
 \__/

 ✓  Downloading devfile "go:2.0.0" from registry "StagingDevfileRegistry" [3s]
 ✗  unable to parse devfile: failed to convert kubernetes uri to inlined for component 'deploy': failed to read kubernetes resources definition from path '/tmp/nodejs-debug/kubernetes/deploy.yaml': open /tmp/nodejs-debug/kubernetes/deploy.yaml: no such file or directory
the command failed, the devfile has been removed from current directory

Additional context

Any workaround?

Suggestion on how to fix the bug

Target Date: April 4, 2023

Metadata

Metadata

Assignees

Labels

area/apiEnhancement or issue related to the api/devfile specificationkind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions