Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start OpenShift Origin with service catalog #18288

Closed
galderz opened this issue Jan 25, 2018 · 5 comments
Closed

Unable to start OpenShift Origin with service catalog #18288

galderz opened this issue Jan 25, 2018 · 5 comments

Comments

@galderz
Copy link

galderz commented Jan 25, 2018

Hi,

I'm using OpenShift Origin 3.7.1 and I'm getting this error when trying to start with service catalog:

+ oc cluster down
+ oc cluster up --service-catalog
Starting OpenShift using openshift/origin:v3.7.1 ...
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for openshift/origin:v3.7.1 image ... OK
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... OK
-- Checking type of volume mount ...
   Using Docker shared volumes for OpenShift volumes
-- Creating host directories ... OK
-- Finding server IP ...
   Using 127.0.0.1 as the server IP
-- Checking service catalog version requirements ... OK
-- Starting OpenShift container ...
   Creating initial OpenShift configuration
   Starting OpenShift using container 'origin'
   Waiting for API server to start listening
   OpenShift server started
-- Adding default OAuthClient redirect URIs ... OK
-- Installing registry ...
   scc "privileged" added to: ["system:serviceaccount:default:registry"]
-- Installing router ... OK
-- Importing image streams ... OK
-- Importing templates ... OK
-- Importing service catalog templates ... OK
-- Installing service catalog ... OK
-- Installing template service broker ... OK
-- Registering template service broker with service catalog ... FAIL
   Error: cannot register the template service broker
   Caused By:
     Error: cannot create objects from template openshift-infra/template-service-broker-registration
     Caused By:
       Error: unable to recognize servicecatalog.k8s.io/v1beta1, Kind=ClusterServiceBroker: no matches for servicecatalog.k8s.io/, Kind=ClusterServiceBroker

This has started appearing after starting to play with minishift and minikube for other projects. Do you know what could be causing this or how to workaround it?

I have kubectl 1.7.12 in the path when using OpenShift Origin 3.7.1. I'm wondering if my minikube installation is getting the way? Or is there some other problem? How to debug this further?

Cheers,
Galder

@pmorie
Copy link
Contributor

pmorie commented Jan 30, 2018

I got a different error while trying to reproduce this:

$ oc cluster up --service-catalog=true  --version=v3.7.1                                                 
Starting OpenShift using openshift/origin:v3.7.1 ...                                                     
Pulling image openshift/origin:v3.7.1               
Pulled 2/4 layers, 51% complete                     
Pulled 2/4 layers, 60% complete                     
Pulled 2/4 layers, 68% complete                                     
Pulled 2/4 layers, 77% complete                                                                          
Pulled 3/4 layers, 87% complete                                                                          
Pulled 3/4 layers, 92% complete                                                                          
Pulled 3/4 layers, 97% complete                                                                          
Pulled 4/4 layers, 100% complete                    
Extracting                                          
Image pull complete                                 
-- Checking OpenShift client ... OK                                                                                                                                                                                
-- Checking Docker client ... OK                                                                                                                                                                                   
-- Checking Docker version ... OK                                                                        
-- Checking for existing OpenShift container ... OK                                                      
-- Checking for openshift/origin:v3.7.1 image ...                                                        
   Pulling image openshift/origin:v3.7.1                            
   Pulled 2/4 layers, 51% complete                                                                                                      
   Pulled 2/4 layers, 60% complete                                  
   Pulled 2/4 layers, 68% complete                                  
   Pulled 2/4 layers, 77% complete                                  
   Pulled 3/4 layers, 87% complete                                  
   Pulled 3/4 layers, 92% complete                                  
   Pulled 3/4 layers, 97% complete                                  
   Pulled 4/4 layers, 100% complete                                 
   Extracting                                                       
   Image pull complete                                              
-- Checking Docker daemon configuration ... OK                      
-- Checking for available ports ...                                 
   WARNING: Binding DNS on port 8053 instead of 53, which may not be resolvable from all clients.                                       
-- Checking type of volume mount ...                                
   Using nsenter mounter for OpenShift volumes                      
-- Creating host directories ... OK                                 
-- Finding server IP ...                                            
   Using 127.0.0.1 as the server IP                                 
-- Checking service catalog version requirements ... OK             
-- Starting OpenShift container ...                                 
   Creating initial OpenShift configuration                         
   Starting OpenShift using container 'origin'                      
   Waiting for API server to start listening                        
   OpenShift server started                                         
-- Adding default OAuthClient redirect URIs ... OK                  
-- Installing registry ...                                          
   scc "privileged" added to: ["system:serviceaccount:default:registry"]                                                                
-- Installing router ... OK                                         
-- Importing image streams ... OK                                   
-- Importing templates ... OK                                       
-- Importing internal templates ... OK                              
-- Installing service catalog ... FAIL                              
   Error: could not reconcile service catalog cluster role system:openshift:service-catalog:aggregate-to-admin                          
   Caused By:                                                       
     Error: the server could not find the requested resource    

@galderz
Copy link
Author

galderz commented Jan 31, 2018

It appears this is known issue when redeploying applications using Fabric8 Maven Plugin S2I in OpenShift 3.7. It's yet unknown whether the issue is an maven plugin issue or OpenShift one.

The service catalog is not required AFAIK to replicate the issue.

@wtrocki
Copy link
Contributor

wtrocki commented Feb 5, 2018

Verified oc cluster up --service-catalog=true on last release.
Service catalog started with success, I was able to provision pods using sample apb.

@galderz are you ok to close this issue?

@jim-minter
Copy link
Contributor

@pmorie's error, at least, is caused by using the latest (to be v3.9) oc to provision a previous version of openshift (v3.7.1). It does not work because the server APIs are incompatible between the two versions. See https://bugzilla.redhat.com/show_bug.cgi?id=1530069. Download a v3.7.1 oc from https://github.com/openshift/origin/releases/tag/v3.7.1 then run oc cluster up --service-catalog. This works for me.

@galderz
Copy link
Author

galderz commented Feb 11, 2018

Hmmm, I think something else got on the way, maybe my minikube set up. Anyway, I've stopped using the service catalog since I don't actually need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants