Uploaded image for project: 'RH-SSO'
  1. RH-SSO
  2. RHSSO-1885

no matches for kind "Service" in version "core/v1"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • None
    • None
    • Distribution
    • None
    • False
    • False
    • Hide

      Follow the documentation 3.1. Using the Red Hat Single Sign-On for OpenShift Image Streams and Application Templates

       

      $ for resource in sso74-image-stream.json \
        sso74-https.json \
        sso74-postgresql.json \
        sso74-postgresql-persistent.json \
        sso74-x509-https.json \
        sso74-x509-postgresql-persistent.json
      do
        oc replace -n openshift --force -f \
        https://raw.githubusercontent.com/jboss-container-images/redhat-sso-7-openshift-image/sso74-dev/templates/${resource}
      done
      

      import the imageStream, create the project and deploy

       

      [root@repo ~]# oc new-app --template=sso74-x509-postgresql-persistent
      --> Deploying template "openshift/sso74-x509-postgresql-persistent" to project sso     Red Hat Single Sign-On 7.4 on OpenJDK + PostgreSQL (Persistent)
           ---------
           An example application based on RH-SSO 7.4 on OpenJDK image. For more information about using this template, see https://github.com/jboss-container-images/redhat-sso-7-openshift-image/tree/sso74-dev/docs.     A new persistent RH-SSO service (using PostgreSQL) has been created in your project. The admin username/password for accessing the master realm via the RH-SSO console is yeqlHJmB/QApt5h4MgJPEq1WPiQj6VdC0yeP8MmAW. The username/password for accessing the PostgreSQL database "root" is user03W/KAxnOFKWHe5sNIQthctpRHoOSR2rCHb1. The HTTPS keystore used for serving secure content, the JGroups keystore used for securing JGroups communications, and server truststore used for securing RH-SSO requests were automatically created via OpenShift's service serving x509 certificate secrets.     * With parameters:
              * Application Name=sso
              * Custom RH-SSO Server Hostname=
              * JGroups Cluster Password=f45R0JVSnuObisc3oDU4pAiRB6jL1jDM # generated
              * Database JNDI Name=java:jboss/datasources/KeycloakDS
              * Database Name=root
              * Datasource Minimum Pool Size=
              * Datasource Maximum Pool Size=
              * Datasource Transaction Isolation=
              * PostgreSQL Maximum number of connections=
              * PostgreSQL Shared Buffers=
              * Database Username=user03W # generated
              * Database Password=KAxnOFKWHe5sNIQthctpRHoOSR2rCHb1 # generated
              * Database Volume Capacity=1Gi
              * ImageStream Namespace=openshift
              * RH-SSO Administrator Username=yeqlHJmB # generated
              * RH-SSO Administrator Password=QApt5h4MgJPEq1WPiQj6VdC0yeP8MmAW # generated
              * RH-SSO Realm=
              * RH-SSO Service Username=
              * RH-SSO Service Password=
              * PostgreSQL Image Stream Tag=10
              * Container Memory Limit=1Gi--> Creating resources ...
          route.route.openshift.io "sso" created
          deploymentconfig.apps.openshift.io "sso" created
          deploymentconfig.apps.openshift.io "sso-postgresql" created
          error: no matches for kind "Service" in version "core/v1"
          error: no matches for kind "Service" in version "core/v1"
          error: no matches for kind "Service" in version "core/v1"
          error: no matches for kind "PersistentVolumeClaim" in version "core/v1"
      --> Failed
      

       

      Checking and comparing with the 7.4.8.GA tag:

      working one: https://raw.githubusercontent.com/jboss-container-images/redhat-sso-7-openshift-image/v7.4.8.GA/templates/sso74-ocp4-x509-postgresql-persistent.json

      kind: "Service",apiVersion: "v1",
      apiVersion: "v1",kind: "PersistentVolumeClaim",
      

       

      current failed one: https://raw.githubusercontent.com/jboss-container-images/redhat-sso-7-openshift-image/sso74-dev/templates/sso74-ocp4-x509-postgresql-persistent.json 

      kind: "Service",apiVersion: "core/v1",
      ....
      kind: "PersistentVolumeClaim",apiVersion: "core/v1",

      The  script in the product documentation automatically retrieved the json file from non-released branch sso74-dev 7.4.9 which has "core/v1" unexpectedly. Switching to tag `7.4.8.GA` resolve this issue.

       

      [root@repo ~]# oc version
      oc v3.11.487
      kubernetes v1.11.0+d4cacc0
      features: Basic-Auth GSSAPI Kerberos SPNEGOServer https://lb.ocp.com:443
      openshift v3.11.487
      kubernetes v1.11.0+d4cacc0
      
      Show
      Follow the documentation 3.1. Using the Red Hat Single Sign-On for OpenShift Image Streams and Application Templates   $ for resource in sso74-image-stream.json \ sso74-https.json \ sso74-postgresql.json \ sso74-postgresql-persistent.json \ sso74-x509-https.json \ sso74-x509-postgresql-persistent.json do oc replace -n openshift --force -f \ https: //raw.githubusercontent.com/jboss-container-images/redhat-sso-7-openshift-image/sso74-dev/templates/${resource} done import the imageStream, create the project and deploy   [root@repo ~]# oc new -app --template=sso74-x509-postgresql-persistent --> Deploying template "openshift/sso74-x509-postgresql-persistent" to project sso Red Hat Single Sign-On 7.4 on OpenJDK + PostgreSQL (Persistent) --------- An example application based on RH-SSO 7.4 on OpenJDK image. For more information about using this template, see https: //github.com/jboss-container-images/redhat-sso-7-openshift-image/tree/sso74-dev/docs. A new persistent RH-SSO service (using PostgreSQL) has been created in your project. The admin username/password for accessing the master realm via the RH-SSO console is yeqlHJmB/QApt5h4MgJPEq1WPiQj6VdC0yeP8MmAW. The username/password for accessing the PostgreSQL database "root" is user03W/KAxnOFKWHe5sNIQthctpRHoOSR2rCHb1. The HTTPS keystore used for serving secure content, the JGroups keystore used for securing JGroups communications, and server truststore used for securing RH-SSO requests were automatically created via OpenShift's service serving x509 certificate secrets. * With parameters: * Application Name=sso * Custom RH-SSO Server Hostname= * JGroups Cluster Password=f45R0JVSnuObisc3oDU4pAiRB6jL1jDM # generated * Database JNDI Name=java:jboss/datasources/KeycloakDS * Database Name=root * Datasource Minimum Pool Size= * Datasource Maximum Pool Size= * Datasource Transaction Isolation= * PostgreSQL Maximum number of connections= * PostgreSQL Shared Buffers= * Database Username=user03W # generated * Database Password=KAxnOFKWHe5sNIQthctpRHoOSR2rCHb1 # generated * Database Volume Capacity=1Gi * ImageStream Namespace=openshift * RH-SSO Administrator Username=yeqlHJmB # generated * RH-SSO Administrator Password=QApt5h4MgJPEq1WPiQj6VdC0yeP8MmAW # generated * RH-SSO Realm= * RH-SSO Service Username= * RH-SSO Service Password= * PostgreSQL Image Stream Tag=10 * Container Memory Limit=1Gi--> Creating resources ... route.route.openshift.io "sso" created deploymentconfig.apps.openshift.io "sso" created deploymentconfig.apps.openshift.io "sso-postgresql" created error: no matches for kind "Service" in version "core/v1" error: no matches for kind "Service" in version "core/v1" error: no matches for kind "Service" in version "core/v1" error: no matches for kind "PersistentVolumeClaim" in version "core/v1" --> Failed   Checking and comparing with the 7.4.8.GA tag: working one: https://raw.githubusercontent.com/jboss-container-images/redhat-sso-7-openshift-image/v7.4.8.GA/templates/sso74-ocp4-x509-postgresql-persistent.json kind:  "Service" ,apiVersion:  "v1" , apiVersion:  "v1" ,kind:  "PersistentVolumeClaim" ,   current failed one: https://raw.githubusercontent.com/jboss-container-images/redhat-sso-7-openshift-image/sso74-dev/templates/sso74-ocp4-x509-postgresql-persistent.json   kind:  "Service" ,apiVersion:  "core/v1" , .... kind:  "PersistentVolumeClaim" ,apiVersion:  "core/v1" , The  script in the product documentation automatically retrieved the json file from non-released branch sso74-dev 7.4.9 which has "core/v1" unexpectedly. Switching to tag `7.4.8.GA` resolve this issue.   [root@repo ~]# oc version oc v3.11.487 kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGOServer https: //lb.ocp.com:443 openshift v3.11.487 kubernetes v1.11.0+d4cacc0

    Description

      Follow product documentation to deploy template on OpenShift 3.11, the kind has incorrect value as "core/v1" for Services and PersistentVolumeClaim

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-bihu Bin Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: