Bug 2025592 - ODC 4.9 supports invalid devfiles only
Summary: ODC 4.9 supports invalid devfiles only
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.10.0
Assignee: Rohit Rai
QA Contact: Mohammed Saud
URL:
Whiteboard:
Depends On:
Blocks: 2029861
TreeView+ depends on / blocked
 
Reported: 2021-11-22 14:43 UTC by Mario Loriedo
Modified: 2022-03-10 16:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2029861 (view as bug list)
Environment:
Last Closed: 2022-03-10 16:30:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
devconsole samples with invalid devfiles (365.89 KB, image/png)
2021-11-22 14:43 UTC, Mario Loriedo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10394 0 None Merged update to pull samples from devfile registry 2021-12-07 14:20:55 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:30:26 UTC

Description Mario Loriedo 2021-11-22 14:43:58 UTC
Created attachment 1843026 [details]
devconsole samples with invalid devfiles

Created attachment 1843026 [details]
devconsole samples with invalid devfiles

## Description of problem:

The devfiles that are included in 4 ODC samples are invalid. 

The component image build guidance has an invalid container image:

```
  - name: buildguidance
    attributes:
      tool: console-import
    container:
      image: buildguidanceimage-placeholder
      memoryLimit: 1024Mi
      endpoints:
        - name: http-3001
          targetPort: 3001
```

The problem is that Eclipse Che (or any tool that supports devfile v2) will try to pull the image and fail when trying to start a workspace based on those samples.

We have opened an issue on the [devfile registry side](https://github.com/devfile/api/issues/666) but if the fix happens on the devfile registry repo only, OSD will get broken. A fix should be provided OSD-side as well. 

## Prerequisites (if any, like setup, operators/versions):

OCP 4.9 (and previous releases of ODC that support devfiles)

## Steps to Reproduce

Deploy Eclipse Che on an OCP cluster
Create an application from one of the samples with at devfile
Click on the Eclipse Che link on the topology view

### Actual results: Che workspace startup fails.
### Expected results: Che workspace should start successfully.

## Reproducibility (Always/Intermittent/Only Once):

Always

## Additional info:

Eclipse Che versions prior to 7.39 and CodeReady Workspaces before 2.13 didn't support devfile v2. But that got fixed.
https://issues.redhat.com/browse/CRW-2411

Comment 1 Mohammed Saud 2021-12-07 14:21:54 UTC
Verified on:
Build:   4.10.0-0.ci-2021-12-06-061923
Browser: Firefox 94

Comment 4 errata-xmlrpc 2022-03-10 16:30:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056


Note You need to log in before you can comment on or make changes to this bug.