Bug 2102090 - After instantiating Template no any message is displayed
Summary: After instantiating Template no any message is displayed
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jaivardhan Kumar
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-29 10:18 UTC by K P
Modified: 2023-03-09 01:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-09 01:22:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description K P 2022-06-29 10:18:49 UTC
## Description of problem:

According to the documentation: https://docs.openshift.com/container-platform/4.10/openshift_images/using-templates.html#templates-writing-description_using-templates
>>An instructional message that is displayed when this template is instantiated. This field should inform the user how to use the newly created resources

Message defined in Template should be displayed after instantiating. However after instantiating a template using Web Console there will be no any messages.

Version-Release number of selected component (if applicable):
4.10.13


## How reproducible:

message field is defined in Template

    $ oc -n openshift get template mariadb-ephemeral -o json | jq .message
    "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${MYSQL_USER}\n       Password: ${MYSQL_PASSWORD}\n  Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.3/root/usr/share/container-scripts/mysql/README.md."

Log in into Console as developer. Pick a mariadb-ephemeral from Developer Catalog. Click Instantiate. Set any "Database Service Name". Press Create. You will be redirected to Topology.

There was no any messages which are defined in template and documentation.


## Steps to Reproduce:
1. In Web Console, from Developer perspective, click +Add.
2. Go to Developer Catalog -> All services
3. Type "Maria" in Filter
4. pick MariaDB (Ephemeral)
5. Click "Instantiate Template"
6. Click "Create"

## Actual results:
Redirected to Topology.

## Expected results:
The message starting with "The following service(s) have been created in your project..." displayed.

## Additional info:
-

Comment 1 David Peraza 2022-10-04 16:33:56 UTC
There does not seem to be any issues with the template itself. I was able to get the message back using the cli:

dperaza@dperaza-mac helm_metric % oc new-app --template mariadb-ephemeral
--> Deploying template "openshift/mariadb-ephemeral" to project default

     MariaDB (Ephemeral)
     ---------
     MariaDB database service, without persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.3/root/usr/share/container-scripts/mysql/README.md.
     
     WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing

     The following service(s) have been created in your project: mariadb.
     
            Username: userEWG
            Password: qb26CX6U3OEUWm11
       Database Name: sampledb
      Connection URL: mysql://mariadb:3306/
     
     For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.3/root/usr/share/container-scripts/mysql/README.md.

     * With parameters:
        * Memory Limit=512Mi
        * Namespace=openshift
        * Database Service Name=mariadb
        * MariaDB Connection Username=userEWG # generated
        * MariaDB Connection Password=qb26CX6U3OEUWm11 # generated
        * MariaDB root Password=DSCVJKK2BOa3DOVS # generated
        * MariaDB Database Name=sampledb
        * Version of MariaDB Image=10.3-el8

--> Creating resources ...
    secret "mariadb" created
    service "mariadb" created
    deploymentconfig.apps.openshift.io "mariadb" created
--> Success
    Application is not exposed. You can expose services to the outside world by executing one or more of the commands below:
     'oc expose service/mariadb' 
    Run 'oc status' to view your app.

Comment 2 David Peraza 2022-10-04 16:34:45 UTC
Moving bug to Console team for investigation why is not the same behavior from UI.

Comment 3 Shiftzilla 2023-03-09 01:22:45 UTC
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira.

https://issues.redhat.com/browse/OCPBUGS-9349


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