Error during installing fabric8 0.4.48 with cd-pipeline app on Openshift cdk

23 views
Skip to first unread message

jan.van...@itris.nl

unread,
Sep 8, 2016, 5:51:45 AM9/8/16
to fabric8
Hello,
  I ran into a problem during installing Fabric8 v 0.4.48 on the Openshift CDK 2.

I got this error stack (see the red part at the end of the log) :


jan@lt235:~/openshift-vagrant-master/fabric8$ oc login 10.1.2.2:8443 -u=admin -p=admin
Login successful.

You have access to the following projects and can switch between them with 'oc project <projectname>':

  * default
  * openshift
  * openshift-infra
  * sample-project (current)

Using project "sample-project".
jan@lt235:~/openshift-vagrant-master/fabric8$ gofabric8 deploy -y --domain=openshift.10.1.2.2.xip.io --app=cd-pipeline
             ▄▄▄▄▄▄▄        
             ███████        
     ▄▄▄▄▄▄▄ ▄▄▄▄▄▄█        
     ███████ ▀▀▀▀▀▀▀ ▄▄▄▄▄▄ 
     ▄▄▄▄▄▄▄         ██████ 
   ▄▄▄▄▄             ▄▄▄▄▄▄ 
   ▀▄▄▄▄▄      ▄▄▄       ▄▄▄
    ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄   ▄▄▄▄▄▀
      ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▄▄▀
        ▀▀▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▀  
          ▄█▄▄▄█▄▄▄█▄▄▄     
          ▄█▄▄▄▄▄▄▄▄▄▄▄     
           ▄▄█▄▄▄▄▄▄▄▄      
            ▄▄▄▄▀▀▄█▄       
         ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    
         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀     
Deploying fabric8 to your OpenShift installation at https://10.1.2.2:8443 for domain openshift.10.1.2.2.xip.io in namespace sample-project

Loading fabric8 releases from maven repository:https://repo1.maven.org/maven2/

Starting fabric8 console deployment using 2.2.174...

SecurityContextConstraints restricted is updated to enable fabric8
SecurityContextConstraints restricted.........................................✔
SecurityContextConstraints fabric8-sample-project is setup correctly
SecurityContextConstraints fabric8............................................✔
SecurityContextConstraints fabric8-sa-group is setup correctly
SecurityContextConstraints fabric8-sa-group...................................✔
addClusterRoleToUser cluster-admin system:serviceaccount:sample-project:fabric8✔
addClusterRoleToUser cluster-admin system:serviceaccount:sample-project:jenkins✔
addClusterRoleToUser cluster-admin system:serviceaccount:sample-project:exposecontroller✔
addClusterRoleToUser cluster-reader system:serviceaccount:sample-project:metrics✔
addClusterRoleToUser cluster-reader system:serviceaccount:sample-project:fluentd✔
addClusterRoleToGroup cluster-reader system:serviceaccounts...................✔
addServiceAccount fluentd.....................................................✔
addServiceAccount registry....................................................✔
addServiceAccount router......................................................✔
Creating fabric8 console template resources from 4 objects
Processing resource kind: ServiceAccount
Processing resource kind: OAuthClient
Processing resource kind: Service
Processing resource kind: ReplicationController
fabric8 console...............................................................✔
Adding OAuthClient redirectURL: http://openshift.10.1.2.2.xip.io:31186
Created fabric8 console
Installing templates!
Downloading apps from: https://repo1.maven.org/maven2/io/fabric8/forge/distro/distro/2.3.26/distro-2.3.26-templates.zip
Loading template openshift/main/chat-irc.yml
Loading template openshift/main/social.yml
Processing resource of kind: List version: v1
Cannot yet process kind List, kind for social
Loading template openshift/main/management.yml
Loading template openshift/microservices/prometheus-blackbox-exporter.yml
Loading template openshift/microservices/artifactory.yml
Loading template openshift/microservices/jenkins.yml
Loading template openshift/main/cd-pipeline.yml
Loading template openshift/microservices/exposecontroller.yml
Loading template openshift/microservices/git-collector.yml
Loading template openshift/microservices/elasticsearch.yml
Loading template openshift/microservices/fluentd.yml
Loading template openshift/microservices/prometheus-node-exporter.yml
Loading template openshift/microservices/chaos-monkey.yml
Loading template openshift/microservices/gogs.yml
Loading template openshift/main/chat-slack.yml
Loading template openshift/main/logging.yml
Loading template openshift/microservices/hubot-notifier.yml
Loading template openshift/microservices/hubot-irc.yml
Loading template openshift/microservices/hubot-slack.yml
Loading template openshift/microservices/fabric8-docker-registry.yml
Loading template openshift/microservices/gerrit.yml
Loading template openshift/microservices/prometheus.yml
Loading template openshift/microservices/maven-shell.yml
Loading template openshift/microservices/manageiq.yml
Loading template openshift/microservices/fabric8-forge.yml
Loading template openshift/main/chat-letschat.yml
Loading template openshift/main/metrics.yml
Loading template openshift/microservices/hubot-letschat.yml
Loading template openshift/microservices/gitlab.yml
Loading template openshift/microservices/ingress-nginx.yml
Loading template openshift/microservices/kibana.yml
Loading template openshift/microservices/grafana.yml
Loading template openshift/microservices/kiwiirc.yml
Loading template openshift/microservices/letschat.yml
Loading template openshift/microservices/nexus.yml
Loading template openshift/microservices/content-repository.yml
Install DevOps templates......................................................✔
Downloading apps from: https://repo1.maven.org/maven2/io/fabric8/ipaas/distro/distro/2.2.152/distro-2.2.152-templates.zip
Loading template openshift/microservices/message-gateway.yml
Loading template openshift/microservices/message-broker.yml
Loading template openshift/main/messaging.yml
Loading template openshift/microservices/example-message-producer.yml
Loading template openshift/microservices/example-message-consumer.yml
Loading template openshift/microservices/kafka.yml
Loading template openshift/microservices/cassandra.yml
Loading template openshift/microservices/zookeeper.yml
Install iPaaS templates.......................................................✔
Downloading apps from: https://repo1.maven.org/maven2/io/fabric8/kubeflix/distro/distro/1.0.20/distro-1.0.20-templates.zip
Loading template openshift/main/kubeflix.yml
Loading template openshift/microservices/turbine-server.yml
Loading template openshift/microservices/hystrix-dashboard.yml
Install Kubeflix templates....................................................✔
Downloading apps from: https://repo1.maven.org/maven2/io/fabric8/zipkin/packages/distro/0.0.8/distro-0.0.8-templates.zip
Loading template main/zipkin-0.0.8.json
Install Zipkin templates......................................................✔


Installing: exposecontroller

Creating exposecontroller template resources from 2 objects
Processing resource kind: ServiceAccount
Processing resource kind: DeploymentConfig
exposecontroller..............................................................✔


Installing: cd-pipeline

Creating cd-pipeline template resources from 30 objects
Creating new Project: user-secrets-source-admin
Processing resource kind: Secret
Processing resource kind: Secret
Processing resource kind: Secret
Processing resource kind: Secret
Processing resource kind: Secret
Processing resource kind: Secret
Processing resource kind: Secret
Processing resource kind: Secret
Processing resource kind: ServiceAccount
Processing resource kind: ServiceAccount
Processing resource kind: Service
Processing resource kind: Service
Processing resource kind: Service
Processing resource kind: Service
Processing resource kind: Service
Processing resource kind: Service
Processing resource kind: Service
Processing resource kind: PersistentVolumeClaim
Processing resource kind: PersistentVolumeClaim
Processing resource kind: PersistentVolumeClaim
Processing resource kind: PersistentVolumeClaim
Processing resource kind: PersistentVolumeClaim
Processing resource kind: ConfigMap
Processing resource kind: ConfigMap
Processing resource kind: ConfigMap
Processing resource kind: DeploymentConfig
Processing resource kind: DeploymentConfig
Processing resource kind: DeploymentConfig
Processing resource kind: DeploymentConfig
Processing resource kind: DeploymentConfig
cd-pipeline...................................................................✔
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x47c4d1]

goroutine 1 [running]:
panic(0x13383a0, 0xc82000e120)
    /mnt/hudson_workspace/tools/org.jenkinsci.plugins.golang.GolangInstallation/1.6.3/src/runtime/panic.go:481 +0x3e6
github.com/fabric8io/gofabric8/cmds.configureHostPathVolume(0xc820448390, 0xc82033b830, 0xe, 0xc8204fd440, 0xf, 0xc8202f1800, 0x0, 0x0)
    /mnt/hudson_workspace/workspace/gofabric8-release/src/github.com/fabric8io/gofabric8/cmds/volumes.go:139 +0x1101
github.com/fabric8io/gofabric8/cmds.createPV(0xc820448390, 0xc82033b830, 0xe, 0xc820152870, 0x5, 0x5, 0xc8202f1800, 0x0, 0x0, 0x0, ...)
    /mnt/hudson_workspace/workspace/gofabric8-release/src/github.com/fabric8io/gofabric8/cmds/volumes.go:105 +0x5bc
github.com/fabric8io/gofabric8/cmds.NewCmdDeploy.func2(0xc8202f1800, 0xc820330090, 0x0, 0x3)
    /mnt/hudson_workspace/workspace/gofabric8-release/src/github.com/fabric8io/gofabric8/cmds/deploy.go:370 +0x3041
github.com/fabric8io/gofabric8/vendor/github.com/spf13/cobra.(*Command).execute(0xc8202f1800, 0xc82030df80, 0x3, 0x3, 0x0, 0x0)
    /mnt/hudson_workspace/workspace/gofabric8-release/src/github.com/fabric8io/gofabric8/vendor/github.com/spf13/cobra/command.go:565 +0x85a
github.com/fabric8io/gofabric8/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc8202f1400, 0xc8202f1800, 0x0, 0x0)
    /mnt/hudson_workspace/workspace/gofabric8-release/src/github.com/fabric8io/gofabric8/vendor/github.com/spf13/cobra/command.go:651 +0x55c
github.com/fabric8io/gofabric8/vendor/github.com/spf13/cobra.(*Command).Execute(0xc8202f1400, 0x0, 0x0)
    /mnt/hudson_workspace/workspace/gofabric8-release/src/github.com/fabric8io/gofabric8/vendor/github.com/spf13/cobra/command.go:610 +0x2d
main.main()
    /mnt/hudson_workspace/workspace/gofabric8-release/src/github.com/fabric8io/gofabric8/gofabric8.go:53 +0x66e
jan@lt235:~/openshift-vagrant-master/fabric8$

The installation has not finished completely and it leaves the following pods in the openshift sample-project:
 
 
- fabric8.openshift            status : up and running
 - fabric8.docker-registry   status : up and running
 - fabric8.forge                 status : up and running
 - exposecontroller      
    status : up and running
 
- gogs-openshift              status : pending      reason
Failed scheduling  PersistentVolume 'gogs-data' is not in cache
 - gogs-ssh-openshift       status : pending      reason Failed scheduling  PersistentVolume 'gogs-data' is not in cache
 - jenkins-openshift         
status : pending      reason Failed scheduling  PersistentVolume 'jenkins-job' is not in cache
 
- jenkins-jnlp.openshift   
status : pending      reason Failed scheduling  PersistentVolume 'jenkins-job' is not in cache
 - nexus-openshift           
status : pending      reason Failed scheduling  PersistentVolume 'jenkins-job' is not in cache
 
 
I just followed the installation instructions. Our  Openshift CDK version is  OpenShift Master:v3.2.0.44  Kubernetes Master:  v1.2.0-36-g4a3f9c5
I assigned 4048Mb internal memory and 3 cpu's  tot the CDK vritual box instead of the advised 6GB and 4 cpu's due to linited resources of my developers machine.

Do these problems relate to the less than minimal resources on the virual box???

Any help is apreciated...

Regards,
Jan van de Klok

Reply all
Reply to author
Forward
0 new messages