Bug 2076619 - Could not create deployment with an unknown git repo and builder image build strategy
Summary: Could not create deployment with an unknown git repo and builder image build ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.13.0
Assignee: Lokananda Prabhu
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-19 13:59 UTC by Christoph Jerolimov
Modified: 2023-05-17 22:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-17 22:46:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11493 0 None open Bug 2076619: Modified git import flow module to handle create button enable-disable issue 2022-05-13 07:52:34 UTC
Red Hat Product Errata RHSA-2023:1326 0 None None None 2023-05-17 22:47:39 UTC

Description Christoph Jerolimov 2022-04-19 13:59:15 UTC
Description of problem:
When the user enters an unknown git repo like https://mysupersecretgit.example.com/org/repo and keep the Builder Image it is not possible to create the Deployment successfully also if everything else is entered correctly.

The create button is only enabled when switching to Dockerfile and back to Builder image.

Also when switching to Devfile the form could not be submitted when entering a Devfile.


Version-Release number of selected component (if applicable):
4.9 and above


How reproducible:
Always


Steps to Reproduce:
CASE A
1. Switch to developer perspective, add page > import from Git
2. Enter URL https://mysupersecretgit.example.com/org/repo
3. Select Builder image (node.js for example), enter a name. Now all required fields are filled.

CASE B
1. Switch to developer perspective, add page > import from Git
2. Enter URL https://mysupersecretgit.example.com/org/repo
3. Select Devfile, enter "Devfile", a name. Now all required fields are filled.


Actual results:
CASE A) The user can not import the Deployment

CASE B) Devfile shows an validation error "Devfile not detected". The user can not import the Deployment


Expected results:
CASE A) Could import the Deployment also with Git Type=Other and without switching to Dockerfile and back to Builder Image.

CASE B) The Devfile validation error is fine. We can not fetch Devfiles for unknown providers. If possible we should show another error message if the provider is "Other" and we couldn't load it at all.

The user should also not have the option to submit the form if there is a Devfile error (aka disable 'Create' button).


Additional info:
On 4.9 similar issue happens with the Devfile. When switching from the default Devfile to Builder image and back, the form can be submitted.

When updating the Devfile input again, the form could not be submitted again,

Comment 4 Christoph Jerolimov 2023-03-03 19:28:57 UTC
Verified on 4.13.0-0.nightly-2023-02-27-101545

Comment 7 errata-xmlrpc 2023-05-17 22:46:32 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 (Important: OpenShift Container Platform 4.13.0 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-2023:1326


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