FTUE: Error messages about securitycontextconstraints, clusterpolicybindings and keycloak
Opened this issue · 2 comments
I'm trying to use fabric8 for the first time, and the first time user experience produces a lot of warnings and error messages, especially when re-running cluster-start.
This message gets repeated a lot in messages about securitycontextconstraints andclusterpolicybindings: User "developer" cannot create securitycontextconstraints at the cluster scope
There are also a lot of error messages about 'keycloak' services not being found.
Also, each time cluster-start
fails I have to clean up manually before I can try again (cluster-stop
doesn't work).
I'm running Fedora 26, Maven 3.5.2.
$ mvn fabric8:cluster-start -Dfabric8.cluster.kind=openshift
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the SmartBuilder implementation with a thread count of 8
[INFO] STARTED build of project org.example:build-tools
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Build Tools 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project *
[WARNING] * contains the following plugin(s) that have goals not marked *
[WARNING] * as @threadSafe to support parallel building. *
[WARNING] * While this /may/ work fine, please look for plugin updates *
[WARNING] * and/or request plugins be made thread-safe. *
[WARNING] * If reporting an issue, report it against the plugin in *
[WARNING] * question, not against maven-core *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in Build Tools:
[WARNING] io.fabric8:fabric8-maven-plugin:3.5.34
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.34:cluster-start (default-cli) @ build-tools ---
[INFO] F8: Found /home/sflaniga/.fabric8/bin/gofabric8
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 version --batch
[INFO] F8:gofabric8 foo' v1.5.0+031cbe4'
[INFO] F8:gofabric8 gofabric8, version 0.4.176 (branch: 'master', revision: '22de39d49')
[INFO] F8:gofabric8 build date: '20171110-16:40:44'
[INFO] F8:gofabric8 go version: '1.8.1'
[INFO] F8:gofabric8 oc version: 'v1.5.0+031cbe4'
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 start --minishift --console --batch
[INFO] F8:gofabric8 running: /home/sflaniga/.fabric8/bin/minishift start --vm-driver=kvm --memory=7168 --cpus=5 --disk-size=50g
[INFO] F8:gofabric8 -- Starting profile 'minishift'
[INFO] F8:gofabric8 -- Checking if requested hypervisor 'kvm' is supported on this platform ... OK
[INFO] F8:gofabric8 -- Checking if KVM driver is installed ...
[INFO] F8:gofabric8 Driver is available at /usr/local/bin/docker-machine-driver-kvm ...
[INFO] F8:gofabric8 Checking driver binary is executable ... OK
[INFO] F8:gofabric8 -- Checking if Libvirt is installed ... OK
[INFO] F8:gofabric8 -- Checking if Libvirt default network is present ... OK
[INFO] F8:gofabric8 -- Checking if Libvirt default network is active ... OK
[INFO] F8:gofabric8 -- Checking the ISO URL ... OK
[INFO] F8:gofabric8 -- Starting local OpenShift cluster using 'kvm' hypervisor ...
[INFO] F8:gofabric8 -- Minishift VM will be configured with ...
[INFO] F8:gofabric8 Memory: 7 GB
[INFO] F8:gofabric8 vCPUs : 5
[INFO] F8:gofabric8 Disk size: 50 GB
[INFO] F8:gofabric8 -- Starting Minishift VM ...................... OK
[INFO] F8:gofabric8 -- Checking for IP address ... OK
[INFO] F8:gofabric8 -- Checking if external host is reachable from the Minishift VM ...
[INFO] F8:gofabric8 Pinging 8.8.8.8 ... OK
[INFO] F8:gofabric8 -- Checking HTTP connectivity from the VM ...
[INFO] F8:gofabric8 Retrieving http://minishift.io/index.html ... OK
[INFO] F8:gofabric8 -- Checking if persistent storage volume is mounted ... OK
[INFO] F8:gofabric8 -- Checking available disk space ... 0% used OK
[INFO] F8:gofabric8 -- Downloading OpenShift binary 'oc' version 'v3.6.1'
[INFO] F8:gofabric8
[INFO] F8:gofabric8 0 B / 34.76 MiB [---------------------------------------------------------------------------------------------------------------------] 0.00%
...
[INFO] F8:gofabric8 34.76 MiB / 34.76 MiB [============================================================================================================] 100.00% 0s-- Downloading OpenShift v3.6.1 checksums ... OK
[INFO] F8:gofabric8 -- OpenShift cluster will be configured with ...
[INFO] F8:gofabric8 Version: v3.6.1
[INFO] F8:gofabric8 -- Checking `oc` support for startup flags ...
[INFO] F8:gofabric8 host-config-dir ... OK
[INFO] F8:gofabric8 host-data-dir ... OK
[INFO] F8:gofabric8 host-pv-dir ... OK
[INFO] F8:gofabric8 host-volumes-dir ... OK
[INFO] F8:gofabric8 routing-suffix ... OK
[INFO] F8:gofabric8 Starting OpenShift using openshift/origin:v3.6.1 ...
[INFO] F8:gofabric8 Pulling image openshift/origin:v3.6.1
[INFO] F8:gofabric8 Pulled 1/4 layers, 26% complete
[INFO] F8:gofabric8 Pulled 2/4 layers, 59% complete
[INFO] F8:gofabric8 Pulled 3/4 layers, 77% complete
[INFO] F8:gofabric8 Pulled 4/4 layers, 100% complete
[INFO] F8:gofabric8 Extracting
[INFO] F8:gofabric8 Image pull complete
[INFO] F8:gofabric8 OpenShift server started.
[INFO] F8:gofabric8
[INFO] F8:gofabric8 The server is accessible via web console at:
[INFO] F8:gofabric8 https://192.168.42.134:8443
[INFO] F8:gofabric8
[INFO] F8:gofabric8 You are logged in as:
[INFO] F8:gofabric8 User: developer
[INFO] F8:gofabric8 Password: <any value>
[INFO] F8:gofabric8
[INFO] F8:gofabric8 To login as administrator:
[INFO] F8:gofabric8 oc login -u system:admin
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Deploying fabric8 to your OpenShift installation at https://192.168.42.134:8443 for domain 192.168.42.134.nip.io in namespace myproject
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Loading fabric8 releases from maven repository:https://repo1.maven.org/maven2/
[INFO] F8:gofabric8 SecurityContextConstraints restricted.........................................✘ User "developer" cannot create securitycontextconstraints at the cluster scope
[INFO] F8:gofabric8 Cannot create SecurityContextConstraints: User "developer" cannot create securitycontextconstraints at the cluster scope
[INFO] F8:gofabric8 Failed to create SecurityContextConstraints {{ } {fabric8-myproject 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] } 0xc4204dd420 true [] [] [] [*] true true false false {RunAsAny <nil>} {RunAsAny <nil> <nil> <nil>} { []} { []} false [] [system:serviceaccount:openshift-infra:build-controller system:serviceaccount:myproject:default system:serviceaccount:myproject:fabric8 system:serviceaccount:myproject:gerrit system:serviceaccount:myproject:jenkins system:serviceaccount:myproject:router system:serviceaccount:myproject:registry system:serviceaccount:myproject:gogs system:serviceaccount:myproject:fluentd] [system:cluster-admins system:nodes]} in namespace myproject: User "developer" cannot create securitycontextconstraints at the cluster scope
[INFO] F8:gofabric8 SecurityContextConstraints fabric8............................................✘ User "developer" cannot create securitycontextconstraints at the cluster scope
[INFO] F8:gofabric8 Cannot create SecurityContextConstraints: User "developer" cannot create securitycontextconstraints at the cluster scope
[INFO] F8:gofabric8 Failed to create SecurityContextConstraints {{ } {fabric8-sa-group 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] } <nil> false [] [] [] [gitRepo configMap secret emptyDir] false false false false {RunAsAny <nil>} {RunAsAny <nil> <nil> <nil>} { []} { []} false [] [] [system:serviceaccounts]} in namespace myproject: User "developer" cannot create securitycontextconstraints at the cluster scope
[INFO] F8:gofabric8 SecurityContextConstraints fabric8-sa-group...................................✘ User "developer" cannot create securitycontextconstraints at the cluster scope
[INFO] F8:gofabric8 addClusterRoleToUser cluster-admin system:serviceaccount:myproject:fabric8....✘ User "developer" cannot get clusterpolicybindings at the cluster scope
[INFO] F8:gofabric8 addClusterRoleToUser cluster-admin system:serviceaccount:myproject:jenkins....✘ User "developer" cannot get clusterpolicybindings at the cluster scope
[INFO] F8:gofabric8 addClusterRoleToUser cluster-admin system:serviceaccount:myproject:configmapcontroller✘ User "developer" cannot get clusterpolicybindings at the cluster scope
[INFO] F8:gofabric8 addClusterRoleToUser cluster-admin system:serviceaccount:myproject:exposecontroller✘ User "developer" cannot get clusterpolicybindings at the cluster scope
[INFO] F8:gofabric8 addClusterRoleToUser cluster-reader system:serviceaccount:myproject:metrics...✘ User "developer" cannot get clusterpolicybindings at the cluster scope
[INFO] F8:gofabric8 addClusterRoleToUser cluster-reader system:serviceaccount:myproject:fluentd...✘ User "developer" cannot get clusterpolicybindings at the cluster scope
[INFO] F8:gofabric8 addClusterRoleToGroup cluster-reader system:serviceaccounts...................✘ User "developer" cannot get clusterpolicybindings at the cluster scope
[INFO] F8:gofabric8 addServiceAccount fluentd.....................................................✔
[INFO] F8:gofabric8 addServiceAccount registry....................................................✔
[INFO] F8:gofabric8 addServiceAccount router......................................................✔
[INFO] F8:gofabric8 Deploying package: console version: 2.4.24
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Template OAUTH_AUTHORIZE_PORT = 8443
[INFO] F8:gofabric8 Template DOMAIN = 192.168.42.134.nip.io
[INFO] F8:gofabric8 Template NAMESPACE = myproject
[INFO] F8:gofabric8 Template EXPOSER = Route
[INFO] F8:gofabric8 Template APISERVER_HOSTPORT = 192.168.42.134:8443
[INFO] F8:gofabric8 Template APISERVER = 192.168.42.134
[INFO] F8:gofabric8 Template NODE_IP = 192.168.42.134
[INFO] F8:gofabric8 Processing resource kind: ProjectRequest in namespace myproject name user-secrets-source-admin
[INFO] F8:gofabric8 Processing resource kind: ServiceAccount in namespace myproject name fabric8
[INFO] F8:gofabric8 Processing resource kind: OAuthClient in namespace myproject name fabric8
[INFO] F8:gofabric8 Failed to create OAuthClient: Failed to create OAuthClient: User "developer" cannot create oauthclients at the cluster scope
[INFO] F8:gofabric8 Processing resource kind: Service in namespace myproject name fabric8
[INFO] F8:gofabric8 Processing resource kind: Service in namespace myproject name jenkinshift
[INFO] F8:gofabric8 Processing resource kind: ConfigMap in namespace myproject name fabric8
[INFO] F8:gofabric8 Processing resource kind: ConfigMap in namespace myproject name fabric8-environments
[INFO] F8:gofabric8 Processing resource kind: DeploymentConfig in namespace myproject name fabric8
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name apiman
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name apiman-gateway
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name artifactory
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name cd-pipeline
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name chaos-monkey
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name chat-irc
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name chat-letschat
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name chat-slack
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name configmapcontroller
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name content-repository
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name elasticsearch
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name elasticsearch-v1
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name exposecontroller
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name fabric8-docker-registry
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name fabric8-forge
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name fluentd
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name funktion
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name funktion-operator
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name funktion-runtimes
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name gerrit
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name git-collector
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name gitlab
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name gogs
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name grafana
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name ingress-nginx
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name jenkins
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name keycloak
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name kibana
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name kiwiirc
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name kubeflix
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name letschat
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name logging
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name manageiq
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name management
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name maven-shell
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name message-broker
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name message-gateway
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name messaging
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name metrics
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name nexus
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name prometheus
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name prometheus-blackbox-exporter
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name prometheus-node-exporter
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name social
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name taiga
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name turbine-server
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name zipkin
[INFO] F8:gofabric8 Processing resource kind: Template in namespace myproject name zookeeper
[INFO] F8:gofabric8 console.......................................................................✔
[INFO] F8:gofabric8
[INFO] F8:gofabric8 -------------------------
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Default GOGS admin username/password = gogsadmin/RedHat$1
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Checking if PersistentVolumeClaims bind to a PersistentVolume
[INFO] F8:gofabric8 Downloading images and waiting to open the fabric8 console...
[INFO] F8:gofabric8
[INFO] F8:gofabric8 -------------------------
[INFO] F8:gofabric8 If this your first deployment then it may take a while to download the docker images, please be patient.
[INFO] F8:gofabric8 To track progress run the following command in a new terminal session:
[INFO] F8:gofabric8 watch oc get pods -n myproject
At this point the log messages stop. It's unclear if the cluster has started successfully, but oc get pods
shows a Running pod fabric8-1-vkk5q
.
18 hours later (probably when my laptop was woken up), it decides to shut down with a lot of errors:
[INFO] F8:gofabric8 Could not find finalized endpoint being pointed to by keycloak: services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
[INFO] F8:gofabric8 services "keycloak" not found
.
.
.
[INFO] FAILURE build of project org.example:build-tools
[INFO] Builder state: blocked=0 finished=1 ready-or-running=0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18:33 h (Wall Clock)
[INFO] Finished at: 2018-02-09T11:46:41+10:00
[INFO] Final Memory: 23M/422M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.34:cluster-start (default-cli) on project build-tools: Failed to execute gofabric8 start --minishift --console --batch result was: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
mvn fabric8:cluster-start -Dfabric8.cluster.kind=openshift 16.26s user 5.97s system 0% cpu 18:33:12.93 total
These are the sort of things I had to do to clean up between attempts:
$ minishift delete
You are deleting the Minishift VM: 'minishift'. Do you want to continue [y/N]?: y
Deleting the Minishift VM...
Minishift VM deleted.
$ mvn fabric8:cluster-start -Dfabric8.cluster.kind=openshift
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the SmartBuilder implementation with a thread count of 8
[INFO] STARTED build of project org.example:build-tools
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Build Tools 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project *
[WARNING] * contains the following plugin(s) that have goals not marked *
[WARNING] * as @threadSafe to support parallel building. *
[WARNING] * While this /may/ work fine, please look for plugin updates *
[WARNING] * and/or request plugins be made thread-safe. *
[WARNING] * If reporting an issue, report it against the plugin in *
[WARNING] * question, not against maven-core *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in Build Tools:
[WARNING] io.fabric8:fabric8-maven-plugin:3.5.34
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.34:cluster-start (default-cli) @ build-tools ---
[INFO] F8: Found /home/sflaniga/.fabric8/bin/gofabric8
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 version --batch
[INFO] F8:gofabric8 Error while running cmd: /home/sflaniga/bin/oc Output:
[INFO] F8:gofabric8
[INFO] FAILURE build of project org.example:build-tools
[INFO] Builder state: blocked=0 finished=1 ready-or-running=0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.608 s (Wall Clock)
[INFO] Finished at: 2018-02-09T13:12:59+10:00
[INFO] Final Memory: 26M/298M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.34:cluster-start (default-cli) on project build-tools: Failed to execute gofabric8 version --batch result was: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
$ oc version
oc v1.5.0+031cbe4
kubernetes v1.5.2+43a9be4
features: Basic-Auth GSSAPI Kerberos SPNEGO
Unable to connect to the server: dial tcp 192.168.42.134:8443: getsockopt: no route to host
$ oc config delete-cluster 192.168.42.134:8443
error: cannot delete cluster 192.168.42.134:8443, not in /home/sflaniga/.kube/config
$ oc config get-clusters
NAME
192-168-42-134:8443
.
.
.
$ oc config delete-cluster 192-168-42-134:8443
deleted cluster 192-168-42-134:8443 from /home/sflaniga/.kube/config
$ oc version
oc v1.5.0+031cbe4
kubernetes v1.5.2+43a9be4
features: Basic-Auth GSSAPI Kerberos SPNEGO
Perhaps I should have reported this against fabric8-maven-plugin
, but it looks like it's just invoking gofabric8 start --minishift --console --batch
in this case.
I see that I should have used mvn fabric8:cluster-stop -Dfabric8.cluster.delete=true
instead of having to use minishift delete
, but it just produces a help message and apparently doesn't delete anything:
$ mvn fabric8:cluster-stop -Dfabric8.cluster.delete=true
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the SmartBuilder implementation with a thread count of 8
[INFO] STARTED build of project org.zanata:build-tools
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Build Tools 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project *
[WARNING] * contains the following plugin(s) that have goals not marked *
[WARNING] * as @threadSafe to support parallel building. *
[WARNING] * While this /may/ work fine, please look for plugin updates *
[WARNING] * and/or request plugins be made thread-safe. *
[WARNING] * If reporting an issue, report it against the plugin in *
[WARNING] * question, not against maven-core *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in Build Tools:
[WARNING] io.fabric8:fabric8-maven-plugin:3.5.34
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.34:cluster-stop (default-cli) @ build-tools ---
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 delete --batch
[INFO] F8:gofabric8 You must specify the type of resource to get. Valid resource types include:
[INFO] F8:gofabric8 * cluster.
[INFO] F8:gofabric8 * environ.
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Usage:
[INFO] F8:gofabric8 gofabric8 delete [command]
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Available Commands:
[INFO] F8:gofabric8 cluster Delete a local cluster
[INFO] F8:gofabric8 env Delete environment from fabric8-environments configmap
[INFO] F8:gofabric8 tenant Deletes all your tenant resources
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Global Flags:
[INFO] F8:gofabric8 --as string Username to impersonate for the operation
[INFO] F8:gofabric8 -b, --batch export FABRIC8_BATCH=true Run in batch mode to avoid prompts. Can also be enabled via export FABRIC8_BATCH=true
[INFO] F8:gofabric8 --certificate-authority string Path to a cert. file for the certificate authority
[INFO] F8:gofabric8 --client-certificate string Path to a client certificate file for TLS
[INFO] F8:gofabric8 --client-key string Path to a client key file for TLS
[INFO] F8:gofabric8 --cluster string The name of the kubeconfig cluster to use
[INFO] F8:gofabric8 --context string The name of the kubeconfig context to use
[INFO] F8:gofabric8 --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
[INFO] F8:gofabric8 --kubeconfig string Path to the kubeconfig file to use for CLI requests.
[INFO] F8:gofabric8 --match-server-version Require server version to match client version
[INFO] F8:gofabric8 -n, --namespace string If present, the namespace scope for this CLI request
[INFO] F8:gofabric8 --password string Password for basic authentication to the API server
[INFO] F8:gofabric8 --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
[INFO] F8:gofabric8 -s, --server string The address and port of the Kubernetes API server
[INFO] F8:gofabric8 --token string Bearer token for authentication to the API server
[INFO] F8:gofabric8 --user string The name of the kubeconfig user to use
[INFO] F8:gofabric8 --username string Username for basic authentication to the API server
[INFO] F8:gofabric8 --version-console string fabric8 version (default "latest")
[INFO] F8:gofabric8 --work-project string The work project (default "autodetect")
[INFO] F8:gofabric8 -y, --yes Assume yes
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Use "gofabric8 delete [command] --help" for more information about a command.
[INFO] SUCCESS build of project org.zanata:build-tools
[INFO] Builder state: blocked=0 finished=1 ready-or-running=0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.960 s (Wall Clock)
[INFO] Finished at: 2018-02-09T16:45:37+10:00
[INFO] Final Memory: 27M/422M
[INFO] ------------------------------------------------------------------------
This is what happens when I try to restart the existing cluster (unless I use minishift delete
and oc config delete-cluster
):
$ mvn fabric8:cluster-start -Dfabric8.cluster.kind=openshift
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the SmartBuilder implementation with a thread count of 8
[INFO] STARTED build of project org.zanata:build-tools
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Build Tools 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project *
[WARNING] * contains the following plugin(s) that have goals not marked *
[WARNING] * as @threadSafe to support parallel building. *
[WARNING] * While this /may/ work fine, please look for plugin updates *
[WARNING] * and/or request plugins be made thread-safe. *
[WARNING] * If reporting an issue, report it against the plugin in *
[WARNING] * question, not against maven-core *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in Build Tools:
[WARNING] io.fabric8:fabric8-maven-plugin:3.5.34
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.34:cluster-start (default-cli) @ build-tools ---
[INFO] F8: Found /home/sflaniga/.fabric8/bin/gofabric8
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 version --batch
[INFO] F8:gofabric8 foo' v1.5.0+031cbe4'
[INFO] F8:gofabric8 gofabric8, version 0.4.176 (branch: 'master', revision: '22de39d49')
[INFO] F8:gofabric8 build date: '20171110-16:40:44'
[INFO] F8:gofabric8 go version: '1.8.1'
[INFO] F8:gofabric8 oc version: 'v1.5.0+031cbe4'
[INFO] F8:gofabric8
[INFO] F8:gofabric8
[INFO] F8:gofabric8
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Minishift: 'v1.12.0+daa0943'
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 start --minishift --console --batch
[INFO] F8:gofabric8 minishift already running
[INFO] F8:gofabric8 minishift is already running, you can switch to the context
[INFO] F8:gofabric8 Cannot connect to api server, retrying...
[INFO] F8:gofabric8 Cannot connect to api server, retrying...
[INFO] F8:gofabric8 Cannot connect to api server, retrying...
[INFO] F8:gofabric8 Cannot connect to api server, retrying...