Hide Forgot
Description of problem: 'oc new-app --template cakephp-mysql-persistent' failed. Result: error: The template contained an object type unknown to oc new-app. Use oc process -f <template> | oc create -f - instead. Error details: no kind "DeploymentConfig" is registered for version "apps.openshift.io/v1v1" in scheme "k8s.io/kubectl/pkg/scheme/scheme.go:28" The template has a duplicated v1 in apiVersion for DeploymentConfig. % oc get template cakephp-mysql-persistent -n openshift -o yaml | grep v1v1 -A 1 - apiVersion: apps.openshift.io/v1v1 kind: DeploymentConfig Version-Release number of selected component (if applicable): 4.10 How reproducible: Every time Steps to Reproduce: 1.oc new-app --template cakephp-mysql-persistent Actual results: Can not install cakephp-mysql-persistent with 'oc new-app' command. Expected results: Install cakephp-mysql-persistent with 'oc new-app' command successfully. Additional info:
Sent PR for the source of the problem so that new library sync will not carry this issue: https://github.com/sclorg/cakephp-ex/pull/131
Also sent the PR to fix in library repo: https://github.com/openshift/library/pull/306
@qili can you set the severity of this bug as you see it, any customer affected by this?
*** Bug 2117516 has been marked as a duplicate of this bug. ***
@igreen Have made changes https://github.com/openshift/cluster-samples-operator/pull/466 to bacport this to 4.10 this will reflect once there is a next release for ocp4.10.z(probably around mid october)
Verified with the changes on 4.10 Server Version: 4.10.0-0.ci.test-2022-10-08-145331-ci-ln-00iy2xb-latest Kubernetes Version: v1.23.5-rc.0.2080+84715916456c9a-dirty $ oc new-app --template cakephp-mysql-persistent -n mysqlns --> Deploying template "openshift/cakephp-mysql-persistent" to project mysqlns CakePHP + MySQL --------- An example CakePHP application with a MySQL database. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/cakephp-ex/blob/master/README.md. The following service(s) have been created in your project: cakephp-mysql-persistent, mysql. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/cakephp-ex/blob/master/README.md. $ oc get route -n mysqlns NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD cakephp-mysql-persistent cakephp-mysql-persistent-mysqlns.apps.ci-ln-00iy2xb-76ef8.origin-ci-int-aws.dev.rhcloud.com cakephp-mysql-persistent <all> None $ $ curl cakephp-mysql-persistent-mysqlns.apps.ci-ln-00iy2xb-76ef8.origin-ci-int-aws.dev.rhcloud.com -I HTTP/1.1 200 OK date: Sat, 08 Oct 2022 16:16:33 GMT server: Apache/2.4.37 (Red Hat Enterprise Linux) OpenSSL/1.1.1k content-type: text/html; charset=UTF-8 set-cookie: baac3147a2580433bb8e37a8ca0c5f0c=3985f59e2a532420c08f68c3335f4b18; path=/; HttpOnly cache-control: private $
This will be picked up for - Planned: 4.10.37 - Ship date: 18-Oct @smulje, we have moved from Bugzilla to Jira for bug please track this in Jira - https://issues.redhat.com/browse/OCPBUGS-2132 Thanks