Bug 1876535
Summary: | Instantiation of templates gives no positive (on success) or negative (on instantiation failure) feedback to user | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Andreas Karis <akaris> |
Component: | Dev Console | Assignee: | cvogt |
Status: | CLOSED DEFERRED | QA Contact: | Gajanan More <gamore> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.5 | CC: | aballant, aos-bugs, nmukherj |
Target Milestone: | --- | ||
Target Release: | 4.7.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-23 21:52:58 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Andreas Karis
2020-09-07 12:27:38 UTC
One can see all template instances and their errors: Just for visibility in my lab, do not run this in a prod environment in case you might delete something important: ~~~ oc delete templateinstances --all ~~~ ~~~ $ oc get templateinstances No resources found in default namespace. ~~~ I then repeated these steps: 3. Go to the developer console, "Add": under $URL/add/ns/default Select "From Catalog": under $URL/catalog/ns/default Filter for "namespace-template": under $URL/catalog/ns/default?keyword=namespace-template Click on the item and select "Instantiate template": under $URL/catalog/instantiate-template?template=namespace-template&template-ns=default&preselected-ns=default Under "SERVIE_NAME", type "test" and then click "Create" You will be dropped back to "Topology" with message: --- Topology No workloads found To add content to your project, create an application, component or service using one of these options. --- No new namespace will be created. No message to the user about why this did not work. Repeat the steps for deployment-template-working: under $URL/catalog/ns/default?keyword=deployment-template-working Click on "Instantiate template": under $URL/catalog/instantiate-template?template=deployment-template-working&template-ns=default&preselected-ns=default Under IMAGE_NAME: "ubuntu" and under DEPLOYMENT_SCALE: 2 Click "Create". You will be dropped at the "Deployment" view under: $URL/topology/ns/default/graph And the deployment is created Repeat the steps for deployment-template-failing: under $URL/catalog/ns/default?keyword=deployment-template-failing Click on "Instantiate template": under $URL/catalog/instantiate-template?template=deployment-template-failing&template-ns=default&preselected-ns=default Under IMAGE_NAME: "fedora" and under DEPLOYMENT_SCALE: 2 Click "Create". You will be dropped at the "Deployment" view under: $URL/topology/ns/default/graph The deployment will not be created, nothing happens ~~~ [akaris@linux aws-env]$ oc get templateinstances NAME TEMPLATE deployment-template-failing-tcrbj deployment-template-failing deployment-template-working-m7lxz deployment-template-working namespace-template-8cbmn namespace-template [akaris@linux aws-env]$ oc describe templateinstances deployment-template-failing-tcrbj Name: deployment-template-failing-tcrbj Namespace: default Created: 25 seconds ago Labels: <none> Annotations: <none> Conditions: Type: InstantiateFailure Status: True LastTransitionTime: 2020-09-07 14:45:57 +0200 CEST Reason: Failed Message: Deployment in version "v1" cannot be handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Replicas: readUint32: unexpected character: �, error found in #10 byte of ...|eplicas":"2","select|..., bigger context ...|},"name":"fedora-deployment"},"spec":{"replicas":"2","selector":{"matchLabels":{"app":"fedora-pod"}}|... Objects: Parameters: IMAGE_NAME: 6 bytes DEPLOYMENT_SCALE: 1 bytes [akaris@linux aws-env]$ oc describe templateinstances deployment-template-working-m7lxz Name: deployment-template-working-m7lxz Namespace: default Created: 52 seconds ago Labels: <none> Annotations: <none> Conditions: Type: Ready Status: True LastTransitionTime: 2020-09-07 14:45:43 +0200 CEST Reason: Created Message: <none> Objects: Deployment: default/ubuntu-deployment Parameters: IMAGE_NAME: 6 bytes DEPLOYMENT_SCALE: 1 bytes [akaris@linux aws-env]$ oc describe templateinstances namespace-template-8cbmn Name: namespace-template-8cbmn Namespace: default Created: About a minute ago Labels: <none> Annotations: <none> Conditions: Type: InstantiateFailure Status: True LastTransitionTime: 2020-09-07 14:45:27 +0200 CEST Reason: Failed Message: projectrequests.project.openshift.io is forbidden: User "system:serviceaccount:openshift-infra:template-instance-controller" cannot create resource "projectrequests" in API group "project.openshift.io" at the cluster scope Objects: Parameters: SERVICE_NAME: 4 bytes ~~~ The point is that the GUI / developer console should not just silently fail. It should report the above InstantiateFailures to the user via the web developer console. Closing this in favour of an RFE https://issues.redhat.com/browse/RFE-1423 This functionality will be properly supported in a future release and not something as a bug for 4.7. Please see the RFE ticket for more status updates, closing out this BZ based on request of PM. |