fabric8io / fabric8

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
http://fabric8.io/
1.76k stars 504 forks source link

failed to create app from 'Import from git' #6372

Open minikiller opened 8 years ago

minikiller commented 8 years ago

hi I use 'import from git' to create my app, i input my github url and press next. It show following errors:

Failed to load resource: the server responded with a status of 404 (Not Found)
https://vagrant.f8:8443/api/v1/proxy/namespaces/default/services/jenkinshift:80/oapi/v1/namespaces/kalix/buildconfigs

and page is holding.

christian-posta commented 8 years ago

is this with the fabric8 vagrant image that uses openshift? jenkinshift is applicable only on vanilla kubernetes systems afaik.. maybe there's a bug in detecting whether running in openshift...

christian-posta commented 8 years ago

yah i can reproduce this; seems like the openshift/jenkinshift api is always looking for jenkinshift. maybe @jstrachan can take a look when he's back from holiday on Monday?

minikiller commented 8 years ago

thanks!I worked under openshift environment. When i create a new app and select integration camel type. Under next page i select canary. But build failed to create spring container.

ibzx commented 8 years ago

I too am experiencing this issue. I cannot do a git import nor can i create a new application. I am running openshift origin 1.3. I have tried fabric8 console images from 2.2.181 and 2.2.173.

rawlingsj commented 8 years ago

I think this issue https://github.com/fabric8io/fabric8/issues/6391#issuecomment-250148621 is the same

ibzx commented 8 years ago

@rawlingsj Yes i am experiencing both.

I am in the IRC Channel if that helps

ibzx commented 8 years ago

@rawlingsj this occurs even when I spin up a LVM minishift locally and run gofabric8 deploy.

OpenShift Master: v1.3.0 Kubernetes Master: v1.3.0+52492b4

`Deploying fabric8 to your OpenShift installation at https://192.168.42.56:8443 for domain 192.168.42.56.xip.io in namespace default

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

Starting fabric8 console deployment using 2.2.181...

SecurityContextConstraints restricted is updated to enable fabric8 SecurityContextConstraints restricted.........................................✔ SecurityContextConstraints fabric8 is setup correctly SecurityContextConstraints fabric8............................................✔ SecurityContextConstraints fabric8-sa-group is setup correctly SecurityContextConstraints fabric8-sa-group...................................✔ addClusterRoleToUser cluster-admin system:serviceaccount:default:fabric8......✔ addClusterRoleToUser cluster-admin system:serviceaccount:default:jenkins......✔ addClusterRoleToUser cluster-admin system:serviceaccount:default:exposecontroller✔ addClusterRoleToUser cluster-reader system:serviceaccount:default:metrics.....✔ addClusterRoleToUser cluster-reader system:serviceaccount:default: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://192.168.42.56:31446 Created fabric8 console Installing templates! Downloading apps from: https://repo1.maven.org/maven2/io/fabric8/forge/distro/distro/2.3.39/distro-2.3.39-templates.zip Loading template openshift/main/cd-pipeline.yml Loading template openshift/microservices/hubot-notifier.yml Loading template openshift/microservices/hubot-irc.yml Loading template openshift/microservices/hubot-letschat.yml Loading template openshift/microservices/exposecontroller.yml Loading template openshift/microservices/git-collector.yml Loading template openshift/microservices/ingress-nginx.yml Loading template openshift/microservices/kibana.yml Loading template openshift/microservices/prometheus.yml Loading template openshift/microservices/gogs.yml Loading template openshift/microservices/manageiq.yml Loading template openshift/microservices/fabric8-forge.yml Loading template openshift/main/chat-irc.yml Loading template openshift/main/chat-slack.yml Loading template openshift/main/logging.yml Loading template openshift/main/metrics.yml Loading template openshift/microservices/hubot-slack.yml Loading template openshift/microservices/fabric8-docker-registry.yml Loading template openshift/microservices/gitlab.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/grafana.yml Loading template openshift/microservices/artifactory.yml Loading template openshift/microservices/jenkins.yml Loading template openshift/microservices/content-repository.yml Loading template openshift/main/chat-letschat.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/gerrit.yml Loading template openshift/microservices/prometheus-blackbox-exporter.yml Loading template openshift/microservices/chaos-monkey.yml Loading template openshift/microservices/kiwiirc.yml Loading template openshift/microservices/letschat.yml Loading template openshift/microservices/maven-shell.yml Loading template openshift/microservices/nexus.yml Install DevOps templates......................................................✔ Downloading apps from: https://repo1.maven.org/maven2/io/fabric8/ipaas/distro/distro/2.2.153/distro-2.2.153-templates.zip Loading template openshift/microservices/cassandra.yml Loading template openshift/microservices/zookeeper.yml Loading template openshift/microservices/message-broker.yml Loading template openshift/microservices/example-message-consumer.yml Loading template openshift/microservices/example-message-producer.yml Loading template openshift/microservices/message-gateway.yml Loading template openshift/main/messaging.yml Loading template openshift/microservices/kafka.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

Loaded template with 2 objectsCreating exposecontroller template resources from 2 objects Processing resource kind: ServiceAccount Processing resource kind: DeploymentConfig

Installing: cd-pipeline

Loaded template with 29 objectsCreating cd-pipeline template resources from 29 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: ConfigMap Processing resource kind: ConfigMap Processing resource kind: ConfigMap Processing resource kind: DeploymentConfig Processing resource kind: DeploymentConfig Converted DeploymentConfig to avoid the use of PersistentVolumeClaim Processing resource kind: DeploymentConfig Converted DeploymentConfig to avoid the use of PersistentVolumeClaim Processing resource kind: DeploymentConfig Converted DeploymentConfig to avoid the use of PersistentVolumeClaim Processing resource kind: DeploymentConfig


Default GOGS admin username/password = gogsadmin/RedHat$1

Downloading images and waiting to open the fabric8 console...


Opening URL http://192.168.42.56:31446`

ibzx commented 8 years ago

KUBERNETES_MASTER=https://kubernetes.default.svc

ibzx commented 8 years ago

@rawlingsj @rawlingsj

RE: Importing always triggering jenkinshift url

It appears the hawto plugins interleave

Kubernetes.isOpenShift
KubernertesAPI.isOpenShift

And KubernertesAPI.isOpenShift never actually attempts to detect openshift. Nor does it try to sync with Kubernetes.isOpenShift.

I've opened an issue with the hawtio project here:

https://github.com/hawtio/hawtio-kubernetes-api/issues/8

gashcrumb commented 8 years ago

@ibzx thanks for spotting that! Have fixed hawtio-kubernetes-api so it probes the API server to see if it's openshift or not and change the code in hawtio-kubernetes to use that probed value, hopefully that'll help with this issue.